@agoric/inter-protocol 0.16.2-dev-4e00bdd.0 → 0.16.2-dev-b13743a.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/auctioneer.d.ts +16 -2
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/params.d.ts +1 -1
- package/src/econCommitteeCharter.d.ts +7 -1
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.d.ts +12 -2
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.d.ts +13 -1
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.d.ts +52 -12
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/provisionPool.d.ts +1 -1
- package/src/provisionPoolKit.d.ts +7 -7
- package/src/psm/psm.d.ts +6 -6
- package/src/reserve/assetReserve.d.ts +5 -2
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.d.ts +7 -2
- package/src/reserve/assetReserveKit.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.js +4 -2
- package/src/vaultFactory/orderedVaultStore.d.ts +76 -18
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/params.d.ts +17 -3
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +228 -54
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/vault.d.ts +14 -14
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +2 -2
- package/src/vaultFactory/vaultDirector.d.ts +153 -24
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +84 -12
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.d.ts +134 -24
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.d.ts +6 -6
- package/src/vaultFactory/vaultManager.d.ts +104 -17
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
|
@@ -14,7 +14,19 @@ export const provideDirector: (baggage: import("@agoric/vat-data").Baggage, zcf:
|
|
|
14
14
|
getDiscountStep: () => bigint;
|
|
15
15
|
getAuctionStartDelay: () => import("@agoric/time").RelativeTime;
|
|
16
16
|
getPriceLockPeriod: () => import("@agoric/time").RelativeTime;
|
|
17
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<
|
|
17
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
18
|
+
maxBuy: Amount<"nat">;
|
|
19
|
+
} & {
|
|
20
|
+
exitAfterBuy?: boolean | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
offerPrice: Ratio;
|
|
23
|
+
}) | ({
|
|
24
|
+
maxBuy: Amount<"nat">;
|
|
25
|
+
} & {
|
|
26
|
+
exitAfterBuy?: boolean | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
offerBidScaling: Ratio;
|
|
29
|
+
})>>;
|
|
18
30
|
getSchedules(): {
|
|
19
31
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
20
32
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
@@ -26,7 +38,9 @@ export const provideDirector: (baggage: import("@agoric/vat-data").Baggage, zcf:
|
|
|
26
38
|
} | {
|
|
27
39
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
28
40
|
};
|
|
29
|
-
makeDepositInvitation: () => Promise<Invitation<
|
|
41
|
+
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
42
|
+
goal: Amount<"nat">;
|
|
43
|
+
}>>;
|
|
30
44
|
}>>, storageNode: ERef<StorageNode>, marshaller: ERef<Marshaller<unknown>>, makeRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>, makeERecorderKit: <T_1>(storageNodeP: ERef<StorageNode>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T_1> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").EventualRecorderKit<T_1>) => ReturnType<ReturnType<typeof prepareVaultDirector>>;
|
|
31
45
|
export type MetricsNotification = {
|
|
32
46
|
collaterals: Brand[];
|
|
@@ -81,7 +95,7 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
81
95
|
}>;
|
|
82
96
|
}>;
|
|
83
97
|
/** @param {string} name */
|
|
84
|
-
getInvitation(name: string): Promise<Invitation<
|
|
98
|
+
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
85
99
|
getLimitedCreatorFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
86
100
|
/**
|
|
87
101
|
* @param {Issuer<'nat'>} collateralIssuer
|
|
@@ -99,9 +113,9 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
99
113
|
};
|
|
100
114
|
};
|
|
101
115
|
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
102
|
-
AdjustBalances(): Promise<Invitation<
|
|
103
|
-
CloseVault(): Promise<Invitation<
|
|
104
|
-
TransferVault(): Promise<Invitation<
|
|
116
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
117
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
118
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
105
119
|
}>;
|
|
106
120
|
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
107
121
|
getPublicTopics(): {
|
|
@@ -111,9 +125,9 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
111
125
|
storagePath: Promise<string>;
|
|
112
126
|
};
|
|
113
127
|
};
|
|
114
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<
|
|
115
|
-
makeCloseInvitation(): Promise<Invitation<
|
|
116
|
-
makeTransferInvitation(): Promise<Invitation<
|
|
128
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
129
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
130
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
117
131
|
getCollateralAmount(): Amount<"nat">;
|
|
118
132
|
getCurrentDebt(): Amount<"nat">;
|
|
119
133
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
@@ -122,7 +136,36 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
122
136
|
}>;
|
|
123
137
|
getCollateralQuote(): PriceQuote;
|
|
124
138
|
getPublicFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
125
|
-
makeVaultInvitation(): Promise<Invitation<
|
|
139
|
+
makeVaultInvitation(): Promise<Invitation<{
|
|
140
|
+
publicSubscribers: {
|
|
141
|
+
vault: {
|
|
142
|
+
description: string;
|
|
143
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
144
|
+
storagePath: Promise<string>;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
148
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
149
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
150
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
151
|
+
}>;
|
|
152
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
153
|
+
getPublicTopics(): {
|
|
154
|
+
vault: {
|
|
155
|
+
description: string;
|
|
156
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
157
|
+
storagePath: Promise<string>;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
161
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
162
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
163
|
+
getCollateralAmount(): Amount<"nat">;
|
|
164
|
+
getCurrentDebt(): Amount<"nat">;
|
|
165
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
166
|
+
}>;
|
|
167
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
168
|
+
}, undefined>>;
|
|
126
169
|
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
127
170
|
getCompoundedInterest(): Ratio;
|
|
128
171
|
getPublicTopics(): {
|
|
@@ -140,7 +183,19 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
140
183
|
getDiscountStep: () => bigint;
|
|
141
184
|
getAuctionStartDelay: () => import("@agoric/time").RelativeTime;
|
|
142
185
|
getPriceLockPeriod: () => import("@agoric/time").RelativeTime;
|
|
143
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<
|
|
186
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
187
|
+
maxBuy: Amount<"nat">;
|
|
188
|
+
} & {
|
|
189
|
+
exitAfterBuy?: boolean | undefined;
|
|
190
|
+
} & {
|
|
191
|
+
offerPrice: Ratio;
|
|
192
|
+
}) | ({
|
|
193
|
+
maxBuy: Amount<"nat">;
|
|
194
|
+
} & {
|
|
195
|
+
exitAfterBuy?: boolean | undefined;
|
|
196
|
+
} & {
|
|
197
|
+
offerBidScaling: Ratio;
|
|
198
|
+
})>>;
|
|
144
199
|
getSchedules(): {
|
|
145
200
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
146
201
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
@@ -152,10 +207,12 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
152
207
|
} | {
|
|
153
208
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
154
209
|
};
|
|
155
|
-
makeDepositInvitation: () => Promise<Invitation<
|
|
210
|
+
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
211
|
+
goal: Amount<"nat">;
|
|
212
|
+
}>>;
|
|
156
213
|
}>>): Promise<void>;
|
|
157
214
|
}>>;
|
|
158
|
-
makeCollectFeesInvitation(): Promise<Invitation<
|
|
215
|
+
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
159
216
|
getRewardAllocation(): AmountKeywordRecord;
|
|
160
217
|
makeLiquidationWaker(): {
|
|
161
218
|
wake: (timestamp: any) => any;
|
|
@@ -195,9 +252,9 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
195
252
|
};
|
|
196
253
|
};
|
|
197
254
|
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
198
|
-
AdjustBalances(): Promise<Invitation<
|
|
199
|
-
CloseVault(): Promise<Invitation<
|
|
200
|
-
TransferVault(): Promise<Invitation<
|
|
255
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
256
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
257
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
201
258
|
}>;
|
|
202
259
|
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
203
260
|
getPublicTopics(): {
|
|
@@ -207,9 +264,9 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
207
264
|
storagePath: Promise<string>;
|
|
208
265
|
};
|
|
209
266
|
};
|
|
210
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<
|
|
211
|
-
makeCloseInvitation(): Promise<Invitation<
|
|
212
|
-
makeTransferInvitation(): Promise<Invitation<
|
|
267
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
268
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
269
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
213
270
|
getCollateralAmount(): Amount<"nat">;
|
|
214
271
|
getCurrentDebt(): Amount<"nat">;
|
|
215
272
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
@@ -218,7 +275,36 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
218
275
|
}>;
|
|
219
276
|
getCollateralQuote(): PriceQuote;
|
|
220
277
|
getPublicFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
221
|
-
makeVaultInvitation(): Promise<Invitation<
|
|
278
|
+
makeVaultInvitation(): Promise<Invitation<{
|
|
279
|
+
publicSubscribers: {
|
|
280
|
+
vault: {
|
|
281
|
+
description: string;
|
|
282
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
283
|
+
storagePath: Promise<string>;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
287
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
288
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
289
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
290
|
+
}>;
|
|
291
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
292
|
+
getPublicTopics(): {
|
|
293
|
+
vault: {
|
|
294
|
+
description: string;
|
|
295
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
296
|
+
storagePath: Promise<string>;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
300
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
301
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
302
|
+
getCollateralAmount(): Amount<"nat">;
|
|
303
|
+
getCurrentDebt(): Amount<"nat">;
|
|
304
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
305
|
+
}>;
|
|
306
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
307
|
+
}, undefined>>;
|
|
222
308
|
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
223
309
|
getCompoundedInterest(): Ratio;
|
|
224
310
|
getPublicTopics(): {
|
|
@@ -236,7 +322,19 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
236
322
|
getDiscountStep: () => bigint;
|
|
237
323
|
getAuctionStartDelay: () => import("@agoric/time").RelativeTime;
|
|
238
324
|
getPriceLockPeriod: () => import("@agoric/time").RelativeTime;
|
|
239
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<
|
|
325
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
326
|
+
maxBuy: Amount<"nat">;
|
|
327
|
+
} & {
|
|
328
|
+
exitAfterBuy?: boolean | undefined;
|
|
329
|
+
} & {
|
|
330
|
+
offerPrice: Ratio;
|
|
331
|
+
}) | ({
|
|
332
|
+
maxBuy: Amount<"nat">;
|
|
333
|
+
} & {
|
|
334
|
+
exitAfterBuy?: boolean | undefined;
|
|
335
|
+
} & {
|
|
336
|
+
offerBidScaling: Ratio;
|
|
337
|
+
})>>;
|
|
240
338
|
getSchedules(): {
|
|
241
339
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
242
340
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
@@ -248,10 +346,12 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
248
346
|
} | {
|
|
249
347
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
250
348
|
};
|
|
251
|
-
makeDepositInvitation: () => Promise<Invitation<
|
|
349
|
+
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
350
|
+
goal: Amount<"nat">;
|
|
351
|
+
}>>;
|
|
252
352
|
}>>): Promise<void>;
|
|
253
353
|
}>>;
|
|
254
|
-
makeCollectFeesInvitation(): Promise<Invitation<
|
|
354
|
+
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
255
355
|
getRewardAllocation(): AmountKeywordRecord;
|
|
256
356
|
makeLiquidationWaker(): {
|
|
257
357
|
wake: (timestamp: any) => any;
|
|
@@ -272,7 +372,36 @@ declare function prepareVaultDirector(baggage: import('@agoric/ertp').Baggage, z
|
|
|
272
372
|
public: {
|
|
273
373
|
/** @param {Brand} brandIn */
|
|
274
374
|
getCollateralManager(brandIn: Brand): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
275
|
-
makeVaultInvitation(): Promise<Invitation<
|
|
375
|
+
makeVaultInvitation(): Promise<Invitation<{
|
|
376
|
+
publicSubscribers: {
|
|
377
|
+
vault: {
|
|
378
|
+
description: string;
|
|
379
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
380
|
+
storagePath: Promise<string>;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
384
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
385
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
386
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
387
|
+
}>;
|
|
388
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
389
|
+
getPublicTopics(): {
|
|
390
|
+
vault: {
|
|
391
|
+
description: string;
|
|
392
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
393
|
+
storagePath: Promise<string>;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
397
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
398
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
399
|
+
getCollateralAmount(): Amount<"nat">;
|
|
400
|
+
getCurrentDebt(): Amount<"nat">;
|
|
401
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
402
|
+
}>;
|
|
403
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
404
|
+
}, undefined>>;
|
|
276
405
|
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
277
406
|
getCompoundedInterest(): Ratio;
|
|
278
407
|
getPublicTopics(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultDirector.d.ts","sourceRoot":"","sources":["vaultDirector.js"],"names":[],"mappings":"AAigBA;;;;;;GAMG;AACH
|
|
1
|
+
{"version":3,"file":"vaultDirector.d.ts","sourceRoot":"","sources":["vaultDirector.js"],"names":[],"mappings":"AAigBA;;;;;;GAMG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8rBAFQ,WAAW,WAAW,2BAA2B,CAAC,CAAC,CAQzD;kCAjeW;IACZ,WAAe,EAAE,KAAK,EAAE,CAAC;IACzB,oBAAwB,EAAE,mBAAmB,CAAC;CAC3C;6BAES,SAAS,EAAE,CAAC;2BAEZ,EAAE;oBAEF,cAAc,GAAG,YAAY;;cAG3B,QAAQ;yCAEC,KAAK,KACnB,OAAO,mBAAmB,EAAE,oBAAoB;qBACpC,eAAe;0BACV,MAAM,QAChC,OAAa,4BAA4B,EAAE,iBAAiB,CACvD;;4BAGO,SAAS;IACrB,KAAS,EAAE,KAAK,CAAC;CACd,CAAC;wCAEQ,OAAO,gEAAgE,EAAE,iBAAiB,CACtG,OAAa,aAAa,EAAE,mBAAmB,CAC1C;AAKN;;;;;;;;;;;GAWG;AACH,+CAXW,OAAO,cAAc,EAAE,OAAO,OAC9B,OAAO,mBAAmB,EAAE,eAAe,wBAC3C,yBAAyB,YACzB,QAAQ,KAAK,CAAC,SACd,KAAK,OAAO,cAAc,EAAE,YAAY,CAAC,cACzC,KAAK,OAAO,0BAA0B,EAAE,qBAAqB,CAAC,eAC9D,KAAK,WAAW,CAAC,cACjB,KAAK,UAAU,CAAC,mBAChB,OAAO,6CAA6C,EAAE,eAAe,oBACrE,OAAO,6CAA6C,EAAE,gBAAgB;;;YAwOrE,+CAA+C;8BAAnC,qBAAqB;;;;;;;;;YAAjC,+CAA+C;8BAAnC,qBAAqB;;;;;;;;;QAarC,2BAA2B;4BAAf,MAAM;;YAmBlB;;;;eAIG;2CAHQ,OAAO,KAAK,CAAC,qBACb,OAAO,sBACP,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAflC,oCAAoC;2BAAtB,KAAK,YAAY,CAAC;;;;;QAYhC;;;;WAIG;uCAHQ,OAAO,KAAK,CAAC,qBACb,OAAO,sBACP,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsFlC,6BAA6B;sCAAjB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAUjB;;;;WAIG;6CADQ;YAAE,eAAe,EAAE,KAAK,CAAA;SAAE;;;;QAQrC,0EAA0E;;QAI1E,mDAAmD;+CAAvC;YAAE,eAAe,EAAE,KAAK,CAAA;SAAE;QAKtC,2BAA2B;kCAAf,MAAM;;;;QAoBlB,2EAA2E;;;GAmBlF"}
|
|
@@ -37,7 +37,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
37
37
|
MintFee: "ratio";
|
|
38
38
|
}>;
|
|
39
39
|
}>;
|
|
40
|
-
getInvitation(name: string): Promise<Invitation<
|
|
40
|
+
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
41
41
|
getLimitedCreatorFacet(): import("@agoric/vats").Board<{
|
|
42
42
|
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: string, initialParamValues: VaultManagerParamValues): Promise<import("@agoric/vats").Board<{
|
|
43
43
|
getGovernedParams(): import("./vaultManager.js").GovernedParamGetters;
|
|
@@ -50,9 +50,9 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
invitationMakers: import("@agoric/vats").Board<{
|
|
53
|
-
AdjustBalances(): Promise<Invitation<
|
|
54
|
-
CloseVault(): Promise<Invitation<
|
|
55
|
-
TransferVault(): Promise<Invitation<
|
|
53
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
54
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
55
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
56
56
|
}>;
|
|
57
57
|
vault: import("@agoric/vats").Board<{
|
|
58
58
|
getPublicTopics(): {
|
|
@@ -62,9 +62,9 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
62
62
|
storagePath: Promise<string>;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<
|
|
66
|
-
makeCloseInvitation(): Promise<Invitation<
|
|
67
|
-
makeTransferInvitation(): Promise<Invitation<
|
|
65
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
66
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
67
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
68
68
|
getCollateralAmount(): Amount<"nat">;
|
|
69
69
|
getCurrentDebt(): Amount<"nat">;
|
|
70
70
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
@@ -73,7 +73,36 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
73
73
|
}>;
|
|
74
74
|
getCollateralQuote(): PriceQuote;
|
|
75
75
|
getPublicFacet(): import("@agoric/vats").Board<{
|
|
76
|
-
makeVaultInvitation(): Promise<Invitation<
|
|
76
|
+
makeVaultInvitation(): Promise<Invitation<{
|
|
77
|
+
publicSubscribers: {
|
|
78
|
+
vault: {
|
|
79
|
+
description: string;
|
|
80
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
81
|
+
storagePath: Promise<string>;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
invitationMakers: import("@agoric/vats").Board<{
|
|
85
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
86
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
87
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
88
|
+
}>;
|
|
89
|
+
vault: import("@agoric/vats").Board<{
|
|
90
|
+
getPublicTopics(): {
|
|
91
|
+
vault: {
|
|
92
|
+
description: string;
|
|
93
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
94
|
+
storagePath: Promise<string>;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
98
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
99
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
100
|
+
getCollateralAmount(): Amount<"nat">;
|
|
101
|
+
getCurrentDebt(): Amount<"nat">;
|
|
102
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
103
|
+
}>;
|
|
104
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
105
|
+
}, undefined>>;
|
|
77
106
|
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
78
107
|
getCompoundedInterest(): Ratio;
|
|
79
108
|
getPublicTopics(): {
|
|
@@ -91,7 +120,19 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
91
120
|
getDiscountStep: () => bigint;
|
|
92
121
|
getAuctionStartDelay: () => import("@agoric/time").RelativeTime;
|
|
93
122
|
getPriceLockPeriod: () => import("@agoric/time").RelativeTime;
|
|
94
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<
|
|
123
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
124
|
+
maxBuy: Amount<"nat">;
|
|
125
|
+
} & {
|
|
126
|
+
exitAfterBuy?: boolean | undefined;
|
|
127
|
+
} & {
|
|
128
|
+
offerPrice: Ratio;
|
|
129
|
+
}) | ({
|
|
130
|
+
maxBuy: Amount<"nat">;
|
|
131
|
+
} & {
|
|
132
|
+
exitAfterBuy?: boolean | undefined;
|
|
133
|
+
} & {
|
|
134
|
+
offerBidScaling: Ratio;
|
|
135
|
+
})>>;
|
|
95
136
|
getSchedules(): {
|
|
96
137
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
97
138
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
@@ -103,10 +144,12 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
103
144
|
} | {
|
|
104
145
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
105
146
|
};
|
|
106
|
-
makeDepositInvitation: () => Promise<Invitation<
|
|
147
|
+
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
148
|
+
goal: Amount<"nat">;
|
|
149
|
+
}>>;
|
|
107
150
|
}>>): Promise<void>;
|
|
108
151
|
}>>;
|
|
109
|
-
makeCollectFeesInvitation(): Promise<Invitation<
|
|
152
|
+
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
110
153
|
getRewardAllocation(): AmountKeywordRecord;
|
|
111
154
|
makeLiquidationWaker(): {
|
|
112
155
|
wake: (timestamp: any) => any;
|
|
@@ -130,7 +173,36 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
130
173
|
}>;
|
|
131
174
|
publicFacet: import("@agoric/vats").Board<{
|
|
132
175
|
getCollateralManager(brandIn: Brand<AssetKind>): import("@agoric/vats").Board<{
|
|
133
|
-
makeVaultInvitation(): Promise<Invitation<
|
|
176
|
+
makeVaultInvitation(): Promise<Invitation<{
|
|
177
|
+
publicSubscribers: {
|
|
178
|
+
vault: {
|
|
179
|
+
description: string;
|
|
180
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
181
|
+
storagePath: Promise<string>;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
invitationMakers: import("@agoric/vats").Board<{
|
|
185
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
186
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
187
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
188
|
+
}>;
|
|
189
|
+
vault: import("@agoric/vats").Board<{
|
|
190
|
+
getPublicTopics(): {
|
|
191
|
+
vault: {
|
|
192
|
+
description: string;
|
|
193
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
194
|
+
storagePath: Promise<string>;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
198
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
199
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
200
|
+
getCollateralAmount(): Amount<"nat">;
|
|
201
|
+
getCurrentDebt(): Amount<"nat">;
|
|
202
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
203
|
+
}>;
|
|
204
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
205
|
+
}, undefined>>;
|
|
134
206
|
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
135
207
|
getCompoundedInterest(): Ratio;
|
|
136
208
|
getPublicTopics(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultFactory.d.ts","sourceRoot":"","sources":["vaultFactory.js"],"names":[],"mappings":"AAmCA;;;;;;;;;GASG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAerB;AAcK,2BAVI,eAAe;mBAEN,aAAa;4BACJ,UAAU;gCACN,UAAU;iBACzB,KAAK,WAAW,CAAC;gBAClB,KAAK,UAAU,CAAC;YAEtB,OAAO,cAAc,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"vaultFactory.d.ts","sourceRoot":"","sources":["vaultFactory.js"],"names":[],"mappings":"AAmCA;;;;;;;;;GASG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAerB;AAcK,2BAVI,eAAe;mBAEN,aAAa;4BACJ,UAAU;gCACN,UAAU;iBACzB,KAAK,WAAW,CAAC;gBAClB,KAAK,UAAU,CAAC;YAEtB,OAAO,cAAc,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+ExC;8BApHY,IACZ,gBAAoB,OAAO,aAAa,EAAE,mBAAmB,CAAC,GAAG;IACjE,qBAA2B,EAAE,OAAO,0BAA0B,EAAE,qBAAqB,CAAC;IACtF,cAAoB,EAAE,KAAK,cAAc,CAAC,CAAC;IAC3C,kBAAwB,EAAE,uBAAuB,CAAC;IAClD,YAAkB,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;CACnD,CACF;mCAgHU,WAAW,YAAY,CAAC"}
|