@agoric/inter-protocol 0.16.2-dev-f8abc2e.0 → 0.16.2-dev-860d051.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 +16 -16
- package/src/auction/auctionBook.d.ts +1 -1
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +1 -1
- package/src/auction/auctioneer.d.ts +21 -7
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +1 -1
- package/src/auction/offerBook.d.ts +2 -2
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/offerBook.js +1 -1
- package/src/auction/params.d.ts +2 -4
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +2 -2
- package/src/auction/scheduleMath.d.ts.map +1 -1
- package/src/auction/scheduler.d.ts +1 -1
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/util.d.ts +4 -4
- package/src/auction/util.d.ts.map +1 -1
- package/src/feeDistributor.d.ts +5 -5
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +2 -3
- package/src/interest.d.ts +4 -5
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +2 -3
- package/src/price/fluxAggregatorContract.d.ts +6 -7
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +2 -3
- package/src/price/fluxAggregatorKit.d.ts +4 -48
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.js +5 -9
- package/src/price/roundsManager.d.ts +37 -14
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +3 -4
- package/src/proposals/addAssetToVault.d.ts +1 -1
- package/src/proposals/addAssetToVault.d.ts.map +1 -1
- package/src/proposals/addAssetToVault.js +1 -1
- package/src/proposals/core-proposal.d.ts.map +1 -1
- package/src/proposals/core-proposal.js +0 -2
- package/src/proposals/econ-behaviors.d.ts +8 -10
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.js +2 -4
- package/src/proposals/startPSM.d.ts +7 -9
- package/src/proposals/startPSM.d.ts.map +1 -1
- package/src/proposals/startPSM.js +4 -4
- package/src/proposals/utils.d.ts +1 -1
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/provisionPoolKit.d.ts +13 -17
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +1 -2
- package/src/psm/psm.d.ts +2 -3
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +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 +1 -1
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +1 -1
- package/src/vaultFactory/liquidation.d.ts +154 -16
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +4 -4
- package/src/vaultFactory/orderedVaultStore.d.ts +225 -17
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.js +2 -2
- package/src/vaultFactory/params.d.ts +14 -9
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +625 -62
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +2 -2
- package/src/vaultFactory/storeUtils.d.ts +1 -2
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/storeUtils.js +1 -1
- package/src/vaultFactory/types.d.ts +120 -11
- package/src/vaultFactory/types.d.ts.map +1 -1
- package/src/vaultFactory/types.js +10 -20
- package/src/vaultFactory/vault.d.ts +63 -5
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +2 -2
- package/src/vaultFactory/vaultDirector.d.ts +34 -34
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +21 -16
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -1
- package/src/vaultFactory/vaultHolder.d.ts +95 -17
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +1 -1
- package/src/vaultFactory/vaultKit.d.ts +74 -4
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +1 -1
- package/src/vaultFactory/vaultManager.d.ts +391 -41
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +3 -3
|
@@ -1,13 +1,259 @@
|
|
|
1
|
-
export function currentDebtToCollateral(vault:
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export function currentDebtToCollateral(vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
2
|
+
getVaultSeat(): ZCFSeat;
|
|
3
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
4
|
+
publicSubscribers: {
|
|
5
|
+
vault: {
|
|
6
|
+
description: string;
|
|
7
|
+
subscriber: Subscriber<VaultNotification>;
|
|
8
|
+
storagePath: Promise<string>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
12
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
13
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
14
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
15
|
+
}>;
|
|
16
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
17
|
+
getPublicTopics(): {
|
|
18
|
+
vault: {
|
|
19
|
+
description: string;
|
|
20
|
+
subscriber: Subscriber<VaultNotification>;
|
|
21
|
+
storagePath: Promise<string>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
25
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
26
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
27
|
+
getCollateralAmount(): Amount<"nat">;
|
|
28
|
+
getCurrentDebt(): Amount<"nat">;
|
|
29
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
30
|
+
}>;
|
|
31
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
32
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
33
|
+
* can be quickly found and liquidated.
|
|
34
|
+
*
|
|
35
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
36
|
+
* previous highest
|
|
37
|
+
*/
|
|
38
|
+
}>;
|
|
39
|
+
liquidating(): void;
|
|
40
|
+
liquidated(): void;
|
|
41
|
+
abortLiquidation(): string;
|
|
42
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
43
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
44
|
+
makeTransferInvitation(): Promise<Invitation<{
|
|
45
|
+
publicSubscribers: {
|
|
46
|
+
vault: {
|
|
47
|
+
description: string;
|
|
48
|
+
subscriber: Subscriber<VaultNotification>;
|
|
49
|
+
storagePath: Promise<string>;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
53
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
54
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
55
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
56
|
+
}>;
|
|
57
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
58
|
+
getPublicTopics(): {
|
|
59
|
+
vault: {
|
|
60
|
+
description: string;
|
|
61
|
+
subscriber: Subscriber<VaultNotification>;
|
|
62
|
+
storagePath: Promise<string>;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
66
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
67
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
68
|
+
getCollateralAmount(): Amount<"nat">;
|
|
69
|
+
getCurrentDebt(): Amount<"nat">;
|
|
70
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
71
|
+
}>;
|
|
72
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
73
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
74
|
+
* can be quickly found and liquidated.
|
|
75
|
+
*
|
|
76
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
77
|
+
* previous highest
|
|
78
|
+
*/
|
|
79
|
+
}, undefined>>;
|
|
80
|
+
getCollateralAmount(): Amount<"nat">;
|
|
81
|
+
getCurrentDebt(): Amount<"nat">;
|
|
82
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
83
|
+
}>): Ratio;
|
|
84
|
+
export function makePrioritizedVaults(store: MapStore<string, import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
85
|
+
getVaultSeat(): ZCFSeat;
|
|
86
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
87
|
+
publicSubscribers: {
|
|
88
|
+
vault: {
|
|
89
|
+
description: string;
|
|
90
|
+
subscriber: Subscriber<VaultNotification>;
|
|
91
|
+
storagePath: Promise<string>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
95
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
96
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
97
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
98
|
+
}>;
|
|
99
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
100
|
+
getPublicTopics(): {
|
|
101
|
+
vault: {
|
|
102
|
+
description: string;
|
|
103
|
+
subscriber: Subscriber<VaultNotification>;
|
|
104
|
+
storagePath: Promise<string>;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
108
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
109
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
110
|
+
getCollateralAmount(): Amount<"nat">;
|
|
111
|
+
getCurrentDebt(): Amount<"nat">;
|
|
112
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
113
|
+
}>;
|
|
114
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
115
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
116
|
+
* can be quickly found and liquidated.
|
|
117
|
+
*
|
|
118
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
119
|
+
* previous highest
|
|
120
|
+
*/
|
|
121
|
+
}>;
|
|
122
|
+
liquidating(): void;
|
|
123
|
+
liquidated(): void;
|
|
124
|
+
abortLiquidation(): string;
|
|
125
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
126
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
127
|
+
makeTransferInvitation(): Promise<Invitation<{
|
|
128
|
+
publicSubscribers: {
|
|
129
|
+
vault: {
|
|
130
|
+
description: string;
|
|
131
|
+
subscriber: Subscriber<VaultNotification>;
|
|
132
|
+
storagePath: Promise<string>;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
136
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
137
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
138
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
139
|
+
}>;
|
|
140
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
141
|
+
getPublicTopics(): {
|
|
142
|
+
vault: {
|
|
143
|
+
description: string;
|
|
144
|
+
subscriber: Subscriber<VaultNotification>;
|
|
145
|
+
storagePath: Promise<string>;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
149
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
150
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
151
|
+
getCollateralAmount(): Amount<"nat">;
|
|
152
|
+
getCurrentDebt(): Amount<"nat">;
|
|
153
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
154
|
+
}>;
|
|
155
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
156
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
157
|
+
* can be quickly found and liquidated.
|
|
158
|
+
*
|
|
159
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
160
|
+
* previous highest
|
|
161
|
+
*/
|
|
162
|
+
}, undefined>>;
|
|
163
|
+
getCollateralAmount(): Amount<"nat">;
|
|
164
|
+
getCurrentDebt(): Amount<"nat">;
|
|
165
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
166
|
+
}>>): {
|
|
167
|
+
addVault: (vaultId: VaultId, vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
168
|
+
getVaultSeat(): ZCFSeat;
|
|
169
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
170
|
+
publicSubscribers: {
|
|
171
|
+
vault: {
|
|
172
|
+
description: string;
|
|
173
|
+
subscriber: Subscriber<VaultNotification>;
|
|
174
|
+
storagePath: Promise<string>;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
178
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
179
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
180
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
181
|
+
}>;
|
|
182
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
183
|
+
getPublicTopics(): {
|
|
184
|
+
vault: {
|
|
185
|
+
description: string;
|
|
186
|
+
subscriber: Subscriber<VaultNotification>;
|
|
187
|
+
storagePath: Promise<string>;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
191
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
192
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
193
|
+
getCollateralAmount(): Amount<"nat">;
|
|
194
|
+
getCurrentDebt(): Amount<"nat">;
|
|
195
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
196
|
+
}>;
|
|
197
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
198
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
199
|
+
* can be quickly found and liquidated.
|
|
200
|
+
*
|
|
201
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
202
|
+
* previous highest
|
|
203
|
+
*/
|
|
204
|
+
}>;
|
|
205
|
+
liquidating(): void;
|
|
206
|
+
liquidated(): void;
|
|
207
|
+
abortLiquidation(): string;
|
|
208
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
209
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
210
|
+
makeTransferInvitation(): Promise<Invitation<{
|
|
211
|
+
publicSubscribers: {
|
|
212
|
+
vault: {
|
|
213
|
+
description: string;
|
|
214
|
+
subscriber: Subscriber<VaultNotification>;
|
|
215
|
+
storagePath: Promise<string>;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
219
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
220
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
221
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
222
|
+
}>;
|
|
223
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
224
|
+
getPublicTopics(): {
|
|
225
|
+
vault: {
|
|
226
|
+
description: string;
|
|
227
|
+
subscriber: Subscriber<VaultNotification>;
|
|
228
|
+
storagePath: Promise<string>;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
232
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
233
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
234
|
+
getCollateralAmount(): Amount<"nat">;
|
|
235
|
+
getCurrentDebt(): Amount<"nat">;
|
|
236
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
237
|
+
}>;
|
|
238
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
239
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
240
|
+
* can be quickly found and liquidated.
|
|
241
|
+
*
|
|
242
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
243
|
+
* previous highest
|
|
244
|
+
*/
|
|
245
|
+
}, undefined>>;
|
|
246
|
+
getCollateralAmount(): Amount<"nat">;
|
|
247
|
+
getCurrentDebt(): Amount<"nat">;
|
|
248
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
249
|
+
}>) => string;
|
|
4
250
|
entries: (keyPatt?: any, valuePatt?: any) => Iterable<[string, import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
5
251
|
getVaultSeat(): ZCFSeat;
|
|
6
252
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
7
253
|
publicSubscribers: {
|
|
8
254
|
vault: {
|
|
9
255
|
description: string;
|
|
10
|
-
subscriber: Subscriber<
|
|
256
|
+
subscriber: Subscriber<VaultNotification>;
|
|
11
257
|
storagePath: Promise<string>;
|
|
12
258
|
};
|
|
13
259
|
};
|
|
@@ -20,7 +266,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
20
266
|
getPublicTopics(): {
|
|
21
267
|
vault: {
|
|
22
268
|
description: string;
|
|
23
|
-
subscriber: Subscriber<
|
|
269
|
+
subscriber: Subscriber<VaultNotification>;
|
|
24
270
|
storagePath: Promise<string>;
|
|
25
271
|
};
|
|
26
272
|
};
|
|
@@ -29,9 +275,15 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
29
275
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
30
276
|
getCollateralAmount(): Amount<"nat">;
|
|
31
277
|
getCurrentDebt(): Amount<"nat">;
|
|
32
|
-
getNormalizedDebt():
|
|
278
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
33
279
|
}>;
|
|
34
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
280
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
281
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
282
|
+
* can be quickly found and liquidated.
|
|
283
|
+
*
|
|
284
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
285
|
+
* previous highest
|
|
286
|
+
*/
|
|
35
287
|
}>;
|
|
36
288
|
liquidating(): void;
|
|
37
289
|
liquidated(): void;
|
|
@@ -42,7 +294,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
42
294
|
publicSubscribers: {
|
|
43
295
|
vault: {
|
|
44
296
|
description: string;
|
|
45
|
-
subscriber: Subscriber<
|
|
297
|
+
subscriber: Subscriber<VaultNotification>;
|
|
46
298
|
storagePath: Promise<string>;
|
|
47
299
|
};
|
|
48
300
|
};
|
|
@@ -55,7 +307,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
55
307
|
getPublicTopics(): {
|
|
56
308
|
vault: {
|
|
57
309
|
description: string;
|
|
58
|
-
subscriber: Subscriber<
|
|
310
|
+
subscriber: Subscriber<VaultNotification>;
|
|
59
311
|
storagePath: Promise<string>;
|
|
60
312
|
};
|
|
61
313
|
};
|
|
@@ -64,25 +316,113 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
64
316
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
65
317
|
getCollateralAmount(): Amount<"nat">;
|
|
66
318
|
getCurrentDebt(): Amount<"nat">;
|
|
67
|
-
getNormalizedDebt():
|
|
319
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
68
320
|
}>;
|
|
69
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
321
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
322
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
323
|
+
* can be quickly found and liquidated.
|
|
324
|
+
*
|
|
325
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
326
|
+
* previous highest
|
|
327
|
+
*/
|
|
70
328
|
}, undefined>>;
|
|
71
329
|
getCollateralAmount(): Amount<"nat">;
|
|
72
330
|
getCurrentDebt(): Amount<"nat">;
|
|
73
|
-
getNormalizedDebt():
|
|
331
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
74
332
|
}>]>;
|
|
75
333
|
getCount: (keyPatt?: any, valuePatt?: any) => number;
|
|
76
334
|
hasVaultByAttributes: (oldDebt: NormalizedDebt, oldCollateral: Amount<'nat'>, vaultId: string) => boolean;
|
|
77
335
|
highestRatio: () => Ratio | undefined;
|
|
78
|
-
removeVault: (key: string) =>
|
|
336
|
+
removeVault: (key: string) => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
337
|
+
getVaultSeat(): ZCFSeat;
|
|
338
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
339
|
+
publicSubscribers: {
|
|
340
|
+
vault: {
|
|
341
|
+
description: string;
|
|
342
|
+
subscriber: Subscriber<VaultNotification>;
|
|
343
|
+
storagePath: Promise<string>;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
347
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
348
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
349
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
350
|
+
}>;
|
|
351
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
352
|
+
getPublicTopics(): {
|
|
353
|
+
vault: {
|
|
354
|
+
description: string;
|
|
355
|
+
subscriber: Subscriber<VaultNotification>;
|
|
356
|
+
storagePath: Promise<string>;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
360
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
361
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
362
|
+
getCollateralAmount(): Amount<"nat">;
|
|
363
|
+
getCurrentDebt(): Amount<"nat">;
|
|
364
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
365
|
+
}>;
|
|
366
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
367
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
368
|
+
* can be quickly found and liquidated.
|
|
369
|
+
*
|
|
370
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
371
|
+
* previous highest
|
|
372
|
+
*/
|
|
373
|
+
}>;
|
|
374
|
+
liquidating(): void;
|
|
375
|
+
liquidated(): void;
|
|
376
|
+
abortLiquidation(): string;
|
|
377
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
378
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
379
|
+
makeTransferInvitation(): Promise<Invitation<{
|
|
380
|
+
publicSubscribers: {
|
|
381
|
+
vault: {
|
|
382
|
+
description: string;
|
|
383
|
+
subscriber: Subscriber<VaultNotification>;
|
|
384
|
+
storagePath: Promise<string>;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
388
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
389
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
390
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
391
|
+
}>;
|
|
392
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
393
|
+
getPublicTopics(): {
|
|
394
|
+
vault: {
|
|
395
|
+
description: string;
|
|
396
|
+
subscriber: Subscriber<VaultNotification>;
|
|
397
|
+
storagePath: Promise<string>;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
401
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
402
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
403
|
+
getCollateralAmount(): Amount<"nat">;
|
|
404
|
+
getCurrentDebt(): Amount<"nat">;
|
|
405
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
406
|
+
}>;
|
|
407
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
408
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
409
|
+
* can be quickly found and liquidated.
|
|
410
|
+
*
|
|
411
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
412
|
+
* previous highest
|
|
413
|
+
*/
|
|
414
|
+
}, undefined>>;
|
|
415
|
+
getCollateralAmount(): Amount<"nat">;
|
|
416
|
+
getCurrentDebt(): Amount<"nat">;
|
|
417
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
418
|
+
}>;
|
|
79
419
|
removeVaultByAttributes: (oldDebt: NormalizedDebt, oldCollateral: Amount<'nat'>, vaultId: string) => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
80
420
|
getVaultSeat(): ZCFSeat;
|
|
81
421
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
82
422
|
publicSubscribers: {
|
|
83
423
|
vault: {
|
|
84
424
|
description: string;
|
|
85
|
-
subscriber: Subscriber<
|
|
425
|
+
subscriber: Subscriber<VaultNotification>;
|
|
86
426
|
storagePath: Promise<string>;
|
|
87
427
|
};
|
|
88
428
|
};
|
|
@@ -95,7 +435,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
95
435
|
getPublicTopics(): {
|
|
96
436
|
vault: {
|
|
97
437
|
description: string;
|
|
98
|
-
subscriber: Subscriber<
|
|
438
|
+
subscriber: Subscriber<VaultNotification>;
|
|
99
439
|
storagePath: Promise<string>;
|
|
100
440
|
};
|
|
101
441
|
};
|
|
@@ -104,9 +444,15 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
104
444
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
105
445
|
getCollateralAmount(): Amount<"nat">;
|
|
106
446
|
getCurrentDebt(): Amount<"nat">;
|
|
107
|
-
getNormalizedDebt():
|
|
447
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
108
448
|
}>;
|
|
109
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
449
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
450
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
451
|
+
* can be quickly found and liquidated.
|
|
452
|
+
*
|
|
453
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
454
|
+
* previous highest
|
|
455
|
+
*/
|
|
110
456
|
}>;
|
|
111
457
|
liquidating(): void;
|
|
112
458
|
liquidated(): void;
|
|
@@ -117,7 +463,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
117
463
|
publicSubscribers: {
|
|
118
464
|
vault: {
|
|
119
465
|
description: string;
|
|
120
|
-
subscriber: Subscriber<
|
|
466
|
+
subscriber: Subscriber<VaultNotification>;
|
|
121
467
|
storagePath: Promise<string>;
|
|
122
468
|
};
|
|
123
469
|
};
|
|
@@ -130,7 +476,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
130
476
|
getPublicTopics(): {
|
|
131
477
|
vault: {
|
|
132
478
|
description: string;
|
|
133
|
-
subscriber: Subscriber<
|
|
479
|
+
subscriber: Subscriber<VaultNotification>;
|
|
134
480
|
storagePath: Promise<string>;
|
|
135
481
|
};
|
|
136
482
|
};
|
|
@@ -139,13 +485,19 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
139
485
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
140
486
|
getCollateralAmount(): Amount<"nat">;
|
|
141
487
|
getCurrentDebt(): Amount<"nat">;
|
|
142
|
-
getNormalizedDebt():
|
|
488
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
143
489
|
}>;
|
|
144
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
490
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
491
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
492
|
+
* can be quickly found and liquidated.
|
|
493
|
+
*
|
|
494
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
495
|
+
* previous highest
|
|
496
|
+
*/
|
|
145
497
|
}, undefined>>;
|
|
146
498
|
getCollateralAmount(): Amount<"nat">;
|
|
147
499
|
getCurrentDebt(): Amount<"nat">;
|
|
148
|
-
getNormalizedDebt():
|
|
500
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
149
501
|
}>;
|
|
150
502
|
removeVaultsBelow: ({ margin, quote, interest }: {
|
|
151
503
|
margin: any;
|
|
@@ -157,7 +509,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
157
509
|
publicSubscribers: {
|
|
158
510
|
vault: {
|
|
159
511
|
description: string;
|
|
160
|
-
subscriber: Subscriber<
|
|
512
|
+
subscriber: Subscriber<VaultNotification>;
|
|
161
513
|
storagePath: Promise<string>;
|
|
162
514
|
};
|
|
163
515
|
};
|
|
@@ -170,7 +522,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
170
522
|
getPublicTopics(): {
|
|
171
523
|
vault: {
|
|
172
524
|
description: string;
|
|
173
|
-
subscriber: Subscriber<
|
|
525
|
+
subscriber: Subscriber<VaultNotification>;
|
|
174
526
|
storagePath: Promise<string>;
|
|
175
527
|
};
|
|
176
528
|
};
|
|
@@ -179,9 +531,15 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
179
531
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
180
532
|
getCollateralAmount(): Amount<"nat">;
|
|
181
533
|
getCurrentDebt(): Amount<"nat">;
|
|
182
|
-
getNormalizedDebt():
|
|
534
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
183
535
|
}>;
|
|
184
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
536
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
537
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
538
|
+
* can be quickly found and liquidated.
|
|
539
|
+
*
|
|
540
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
541
|
+
* previous highest
|
|
542
|
+
*/
|
|
185
543
|
}>;
|
|
186
544
|
liquidating(): void;
|
|
187
545
|
liquidated(): void;
|
|
@@ -192,7 +550,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
192
550
|
publicSubscribers: {
|
|
193
551
|
vault: {
|
|
194
552
|
description: string;
|
|
195
|
-
subscriber: Subscriber<
|
|
553
|
+
subscriber: Subscriber<VaultNotification>;
|
|
196
554
|
storagePath: Promise<string>;
|
|
197
555
|
};
|
|
198
556
|
};
|
|
@@ -205,7 +563,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
205
563
|
getPublicTopics(): {
|
|
206
564
|
vault: {
|
|
207
565
|
description: string;
|
|
208
|
-
subscriber: Subscriber<
|
|
566
|
+
subscriber: Subscriber<VaultNotification>;
|
|
209
567
|
storagePath: Promise<string>;
|
|
210
568
|
};
|
|
211
569
|
};
|
|
@@ -214,24 +572,112 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
214
572
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
215
573
|
getCollateralAmount(): Amount<"nat">;
|
|
216
574
|
getCurrentDebt(): Amount<"nat">;
|
|
217
|
-
getNormalizedDebt():
|
|
575
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
218
576
|
}>;
|
|
219
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
577
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
578
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
579
|
+
* can be quickly found and liquidated.
|
|
580
|
+
*
|
|
581
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
582
|
+
* previous highest
|
|
583
|
+
*/
|
|
220
584
|
}, undefined>>;
|
|
221
585
|
getCollateralAmount(): Amount<"nat">;
|
|
222
586
|
getCurrentDebt(): Amount<"nat">;
|
|
223
|
-
getNormalizedDebt():
|
|
587
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
224
588
|
}>>;
|
|
225
589
|
countVaultsBelow: (crKey: any) => number;
|
|
226
590
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
227
|
-
addVault: (vaultId: VaultId, vault:
|
|
591
|
+
addVault: (vaultId: VaultId, vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
592
|
+
getVaultSeat(): ZCFSeat;
|
|
593
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
594
|
+
publicSubscribers: {
|
|
595
|
+
vault: {
|
|
596
|
+
description: string;
|
|
597
|
+
subscriber: Subscriber<VaultNotification>;
|
|
598
|
+
storagePath: Promise<string>;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
602
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
603
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
604
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
605
|
+
}>;
|
|
606
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
607
|
+
getPublicTopics(): {
|
|
608
|
+
vault: {
|
|
609
|
+
description: string;
|
|
610
|
+
subscriber: Subscriber<VaultNotification>;
|
|
611
|
+
storagePath: Promise<string>;
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
615
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
616
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
617
|
+
getCollateralAmount(): Amount<"nat">;
|
|
618
|
+
getCurrentDebt(): Amount<"nat">;
|
|
619
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
620
|
+
}>;
|
|
621
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
622
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
623
|
+
* can be quickly found and liquidated.
|
|
624
|
+
*
|
|
625
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
626
|
+
* previous highest
|
|
627
|
+
*/
|
|
628
|
+
}>;
|
|
629
|
+
liquidating(): void;
|
|
630
|
+
liquidated(): void;
|
|
631
|
+
abortLiquidation(): string;
|
|
632
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
633
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
634
|
+
makeTransferInvitation(): Promise<Invitation<{
|
|
635
|
+
publicSubscribers: {
|
|
636
|
+
vault: {
|
|
637
|
+
description: string;
|
|
638
|
+
subscriber: Subscriber<VaultNotification>;
|
|
639
|
+
storagePath: Promise<string>;
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
643
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
644
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
645
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
646
|
+
}>;
|
|
647
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
648
|
+
getPublicTopics(): {
|
|
649
|
+
vault: {
|
|
650
|
+
description: string;
|
|
651
|
+
subscriber: Subscriber<VaultNotification>;
|
|
652
|
+
storagePath: Promise<string>;
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
656
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
657
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
658
|
+
getCollateralAmount(): Amount<"nat">;
|
|
659
|
+
getCurrentDebt(): Amount<"nat">;
|
|
660
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
661
|
+
}>;
|
|
662
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
663
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
664
|
+
* can be quickly found and liquidated.
|
|
665
|
+
*
|
|
666
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
667
|
+
* previous highest
|
|
668
|
+
*/
|
|
669
|
+
}, undefined>>;
|
|
670
|
+
getCollateralAmount(): Amount<"nat">;
|
|
671
|
+
getCurrentDebt(): Amount<"nat">;
|
|
672
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
673
|
+
}>) => string;
|
|
228
674
|
entries: (keyPatt?: any, valuePatt?: any) => Iterable<[string, import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
229
675
|
getVaultSeat(): ZCFSeat;
|
|
230
676
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
231
677
|
publicSubscribers: {
|
|
232
678
|
vault: {
|
|
233
679
|
description: string;
|
|
234
|
-
subscriber: Subscriber<
|
|
680
|
+
subscriber: Subscriber<VaultNotification>;
|
|
235
681
|
storagePath: Promise<string>;
|
|
236
682
|
};
|
|
237
683
|
};
|
|
@@ -244,7 +690,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
244
690
|
getPublicTopics(): {
|
|
245
691
|
vault: {
|
|
246
692
|
description: string;
|
|
247
|
-
subscriber: Subscriber<
|
|
693
|
+
subscriber: Subscriber<VaultNotification>;
|
|
248
694
|
storagePath: Promise<string>;
|
|
249
695
|
};
|
|
250
696
|
};
|
|
@@ -253,9 +699,15 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
253
699
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
254
700
|
getCollateralAmount(): Amount<"nat">;
|
|
255
701
|
getCurrentDebt(): Amount<"nat">;
|
|
256
|
-
getNormalizedDebt():
|
|
702
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
257
703
|
}>;
|
|
258
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
704
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
705
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
706
|
+
* can be quickly found and liquidated.
|
|
707
|
+
*
|
|
708
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
709
|
+
* previous highest
|
|
710
|
+
*/
|
|
259
711
|
}>;
|
|
260
712
|
liquidating(): void;
|
|
261
713
|
liquidated(): void;
|
|
@@ -266,7 +718,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
266
718
|
publicSubscribers: {
|
|
267
719
|
vault: {
|
|
268
720
|
description: string;
|
|
269
|
-
subscriber: Subscriber<
|
|
721
|
+
subscriber: Subscriber<VaultNotification>;
|
|
270
722
|
storagePath: Promise<string>;
|
|
271
723
|
};
|
|
272
724
|
};
|
|
@@ -279,7 +731,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
279
731
|
getPublicTopics(): {
|
|
280
732
|
vault: {
|
|
281
733
|
description: string;
|
|
282
|
-
subscriber: Subscriber<
|
|
734
|
+
subscriber: Subscriber<VaultNotification>;
|
|
283
735
|
storagePath: Promise<string>;
|
|
284
736
|
};
|
|
285
737
|
};
|
|
@@ -288,25 +740,113 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
288
740
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
289
741
|
getCollateralAmount(): Amount<"nat">;
|
|
290
742
|
getCurrentDebt(): Amount<"nat">;
|
|
291
|
-
getNormalizedDebt():
|
|
743
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
292
744
|
}>;
|
|
293
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
745
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
746
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
747
|
+
* can be quickly found and liquidated.
|
|
748
|
+
*
|
|
749
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
750
|
+
* previous highest
|
|
751
|
+
*/
|
|
294
752
|
}, undefined>>;
|
|
295
753
|
getCollateralAmount(): Amount<"nat">;
|
|
296
754
|
getCurrentDebt(): Amount<"nat">;
|
|
297
|
-
getNormalizedDebt():
|
|
755
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
298
756
|
}>]>;
|
|
299
757
|
getCount: (keyPatt?: any, valuePatt?: any) => number;
|
|
300
758
|
hasVaultByAttributes: (oldDebt: NormalizedDebt, oldCollateral: Amount<'nat'>, vaultId: string) => boolean;
|
|
301
759
|
highestRatio: () => Ratio | undefined;
|
|
302
|
-
removeVault: (key: string) =>
|
|
760
|
+
removeVault: (key: string) => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
761
|
+
getVaultSeat(): ZCFSeat;
|
|
762
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
763
|
+
publicSubscribers: {
|
|
764
|
+
vault: {
|
|
765
|
+
description: string;
|
|
766
|
+
subscriber: Subscriber<VaultNotification>;
|
|
767
|
+
storagePath: Promise<string>;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
771
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
772
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
773
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
774
|
+
}>;
|
|
775
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
776
|
+
getPublicTopics(): {
|
|
777
|
+
vault: {
|
|
778
|
+
description: string;
|
|
779
|
+
subscriber: Subscriber<VaultNotification>;
|
|
780
|
+
storagePath: Promise<string>;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
784
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
785
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
786
|
+
getCollateralAmount(): Amount<"nat">;
|
|
787
|
+
getCurrentDebt(): Amount<"nat">;
|
|
788
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
789
|
+
}>;
|
|
790
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
791
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
792
|
+
* can be quickly found and liquidated.
|
|
793
|
+
*
|
|
794
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
795
|
+
* previous highest
|
|
796
|
+
*/
|
|
797
|
+
}>;
|
|
798
|
+
liquidating(): void;
|
|
799
|
+
liquidated(): void;
|
|
800
|
+
abortLiquidation(): string;
|
|
801
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
802
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
803
|
+
makeTransferInvitation(): Promise<Invitation<{
|
|
804
|
+
publicSubscribers: {
|
|
805
|
+
vault: {
|
|
806
|
+
description: string;
|
|
807
|
+
subscriber: Subscriber<VaultNotification>;
|
|
808
|
+
storagePath: Promise<string>;
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
812
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
813
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
814
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
815
|
+
}>;
|
|
816
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
817
|
+
getPublicTopics(): {
|
|
818
|
+
vault: {
|
|
819
|
+
description: string;
|
|
820
|
+
subscriber: Subscriber<VaultNotification>;
|
|
821
|
+
storagePath: Promise<string>;
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
825
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
826
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
827
|
+
getCollateralAmount(): Amount<"nat">;
|
|
828
|
+
getCurrentDebt(): Amount<"nat">;
|
|
829
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
830
|
+
}>;
|
|
831
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
832
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
833
|
+
* can be quickly found and liquidated.
|
|
834
|
+
*
|
|
835
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
836
|
+
* previous highest
|
|
837
|
+
*/
|
|
838
|
+
}, undefined>>;
|
|
839
|
+
getCollateralAmount(): Amount<"nat">;
|
|
840
|
+
getCurrentDebt(): Amount<"nat">;
|
|
841
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
842
|
+
}>;
|
|
303
843
|
removeVaultByAttributes: (oldDebt: NormalizedDebt, oldCollateral: Amount<'nat'>, vaultId: string) => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
304
844
|
getVaultSeat(): ZCFSeat;
|
|
305
845
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
306
846
|
publicSubscribers: {
|
|
307
847
|
vault: {
|
|
308
848
|
description: string;
|
|
309
|
-
subscriber: Subscriber<
|
|
849
|
+
subscriber: Subscriber<VaultNotification>;
|
|
310
850
|
storagePath: Promise<string>;
|
|
311
851
|
};
|
|
312
852
|
};
|
|
@@ -319,7 +859,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
319
859
|
getPublicTopics(): {
|
|
320
860
|
vault: {
|
|
321
861
|
description: string;
|
|
322
|
-
subscriber: Subscriber<
|
|
862
|
+
subscriber: Subscriber<VaultNotification>;
|
|
323
863
|
storagePath: Promise<string>;
|
|
324
864
|
};
|
|
325
865
|
};
|
|
@@ -328,9 +868,15 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
328
868
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
329
869
|
getCollateralAmount(): Amount<"nat">;
|
|
330
870
|
getCurrentDebt(): Amount<"nat">;
|
|
331
|
-
getNormalizedDebt():
|
|
871
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
332
872
|
}>;
|
|
333
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
873
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
874
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
875
|
+
* can be quickly found and liquidated.
|
|
876
|
+
*
|
|
877
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
878
|
+
* previous highest
|
|
879
|
+
*/
|
|
334
880
|
}>;
|
|
335
881
|
liquidating(): void;
|
|
336
882
|
liquidated(): void;
|
|
@@ -341,7 +887,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
341
887
|
publicSubscribers: {
|
|
342
888
|
vault: {
|
|
343
889
|
description: string;
|
|
344
|
-
subscriber: Subscriber<
|
|
890
|
+
subscriber: Subscriber<VaultNotification>;
|
|
345
891
|
storagePath: Promise<string>;
|
|
346
892
|
};
|
|
347
893
|
};
|
|
@@ -354,7 +900,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
354
900
|
getPublicTopics(): {
|
|
355
901
|
vault: {
|
|
356
902
|
description: string;
|
|
357
|
-
subscriber: Subscriber<
|
|
903
|
+
subscriber: Subscriber<VaultNotification>;
|
|
358
904
|
storagePath: Promise<string>;
|
|
359
905
|
};
|
|
360
906
|
};
|
|
@@ -363,13 +909,19 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
363
909
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
364
910
|
getCollateralAmount(): Amount<"nat">;
|
|
365
911
|
getCurrentDebt(): Amount<"nat">;
|
|
366
|
-
getNormalizedDebt():
|
|
912
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
367
913
|
}>;
|
|
368
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
914
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
915
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
916
|
+
* can be quickly found and liquidated.
|
|
917
|
+
*
|
|
918
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
919
|
+
* previous highest
|
|
920
|
+
*/
|
|
369
921
|
}, undefined>>;
|
|
370
922
|
getCollateralAmount(): Amount<"nat">;
|
|
371
923
|
getCurrentDebt(): Amount<"nat">;
|
|
372
|
-
getNormalizedDebt():
|
|
924
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
373
925
|
}>;
|
|
374
926
|
removeVaultsBelow: ({ margin, quote, interest }: {
|
|
375
927
|
margin: any;
|
|
@@ -381,7 +933,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
381
933
|
publicSubscribers: {
|
|
382
934
|
vault: {
|
|
383
935
|
description: string;
|
|
384
|
-
subscriber: Subscriber<
|
|
936
|
+
subscriber: Subscriber<VaultNotification>;
|
|
385
937
|
storagePath: Promise<string>;
|
|
386
938
|
};
|
|
387
939
|
};
|
|
@@ -394,7 +946,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
394
946
|
getPublicTopics(): {
|
|
395
947
|
vault: {
|
|
396
948
|
description: string;
|
|
397
|
-
subscriber: Subscriber<
|
|
949
|
+
subscriber: Subscriber<VaultNotification>;
|
|
398
950
|
storagePath: Promise<string>;
|
|
399
951
|
};
|
|
400
952
|
};
|
|
@@ -403,9 +955,15 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
403
955
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
404
956
|
getCollateralAmount(): Amount<"nat">;
|
|
405
957
|
getCurrentDebt(): Amount<"nat">;
|
|
406
|
-
getNormalizedDebt():
|
|
958
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
407
959
|
}>;
|
|
408
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
960
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
961
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
962
|
+
* can be quickly found and liquidated.
|
|
963
|
+
*
|
|
964
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
965
|
+
* previous highest
|
|
966
|
+
*/
|
|
409
967
|
}>;
|
|
410
968
|
liquidating(): void;
|
|
411
969
|
liquidated(): void;
|
|
@@ -416,7 +974,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
416
974
|
publicSubscribers: {
|
|
417
975
|
vault: {
|
|
418
976
|
description: string;
|
|
419
|
-
subscriber: Subscriber<
|
|
977
|
+
subscriber: Subscriber<VaultNotification>;
|
|
420
978
|
storagePath: Promise<string>;
|
|
421
979
|
};
|
|
422
980
|
};
|
|
@@ -429,7 +987,7 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
429
987
|
getPublicTopics(): {
|
|
430
988
|
vault: {
|
|
431
989
|
description: string;
|
|
432
|
-
subscriber: Subscriber<
|
|
990
|
+
subscriber: Subscriber<VaultNotification>;
|
|
433
991
|
storagePath: Promise<string>;
|
|
434
992
|
};
|
|
435
993
|
};
|
|
@@ -438,16 +996,21 @@ export function makePrioritizedVaults(store: MapStore<string, Vault>): {
|
|
|
438
996
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
439
997
|
getCollateralAmount(): Amount<"nat">;
|
|
440
998
|
getCurrentDebt(): Amount<"nat">;
|
|
441
|
-
getNormalizedDebt():
|
|
999
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
442
1000
|
}>;
|
|
443
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
1001
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>; /**
|
|
1002
|
+
* Vaults, ordered by their debt ratio so that all the vaults below a threshold
|
|
1003
|
+
* can be quickly found and liquidated.
|
|
1004
|
+
*
|
|
1005
|
+
* @param {MapStore<string, Vault>} store vault has a higher debt ratio than the
|
|
1006
|
+
* previous highest
|
|
1007
|
+
*/
|
|
444
1008
|
}, undefined>>;
|
|
445
1009
|
getCollateralAmount(): Amount<"nat">;
|
|
446
1010
|
getCurrentDebt(): Amount<"nat">;
|
|
447
|
-
getNormalizedDebt():
|
|
1011
|
+
getNormalizedDebt(): NormalizedDebt;
|
|
448
1012
|
}>>;
|
|
449
1013
|
countVaultsBelow: (crKey: any) => number;
|
|
450
1014
|
}>;
|
|
451
|
-
|
|
452
|
-
export type NormalizedDebt = import('./storeUtils.js').NormalizedDebt;
|
|
1015
|
+
import type { NormalizedDebt } from './storeUtils.js';
|
|
453
1016
|
//# sourceMappingURL=prioritizedVaults.d.ts.map
|