@agoric/inter-protocol 0.16.2-dev-6ad0038.0.6ad0038 → 0.16.2-dev-b95c1c8.0.b95c1c8
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/index.js +1 -0
- package/src/proposals/addAssetToVault.js +3 -97
- package/src/proposals/committee-proposal.js +3 -9
- package/src/proposals/core-proposal.js +1 -32
- package/src/proposals/econ-behaviors.js +1 -140
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +1 -0
- package/src/vaultFactory/types-ambient.d.ts +0 -2
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.js +0 -3
- package/src/vaultFactory/vaultDirector.d.ts +5 -40
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +3 -58
- package/src/vaultFactory/vaultFactory.d.ts +4 -22
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +2 -9
- package/src/vaultFactory/vaultManager.d.ts +2 -180
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +3 -300
- package/src/auction/auctionBook.d.ts +0 -150
- package/src/auction/auctionBook.d.ts.map +0 -1
- package/src/auction/auctionBook.js +0 -796
- package/src/auction/auctionMath.d.ts +0 -18
- package/src/auction/auctionMath.d.ts.map +0 -1
- package/src/auction/auctionMath.js +0 -82
- package/src/auction/auctioneer.d.ts +0 -76
- package/src/auction/auctioneer.d.ts.map +0 -1
- package/src/auction/auctioneer.js +0 -745
- package/src/auction/offerBook.d.ts +0 -47
- package/src/auction/offerBook.d.ts.map +0 -1
- package/src/auction/offerBook.js +0 -227
- package/src/auction/params.d.ts +0 -156
- package/src/auction/params.d.ts.map +0 -1
- package/src/auction/params.js +0 -184
- package/src/auction/scheduleMath.d.ts +0 -8
- package/src/auction/scheduleMath.d.ts.map +0 -1
- package/src/auction/scheduleMath.js +0 -174
- package/src/auction/scheduler.d.ts +0 -57
- package/src/auction/scheduler.d.ts.map +0 -1
- package/src/auction/scheduler.js +0 -391
- package/src/auction/sortedOffers.d.ts +0 -9
- package/src/auction/sortedOffers.d.ts.map +0 -1
- package/src/auction/sortedOffers.js +0 -141
- package/src/proposals/add-auction.js +0 -290
- package/src/proposals/upgrade-vaults.js +0 -212
- package/src/vaultFactory/liquidation.d.ts +0 -29
- package/src/vaultFactory/liquidation.d.ts.map +0 -1
- package/src/vaultFactory/liquidation.js +0 -313
- package/src/vaultFactory/proceeds.d.ts +0 -36
- package/src/vaultFactory/proceeds.d.ts.map +0 -1
- package/src/vaultFactory/proceeds.js +0 -285
|
@@ -33,35 +33,34 @@ import type { VaultManager } from './vaultManager.js';
|
|
|
33
33
|
* @param {VaultDirectorParamManager} directorParamManager
|
|
34
34
|
* @param {ZCFMint<'nat'>} debtMint
|
|
35
35
|
* @param {ERef<TimerService>} timer
|
|
36
|
-
* @param {ERef<AuctioneerPublicFacet>} auctioneer
|
|
37
36
|
* @param {ERemote<StorageNode>} storageNode
|
|
38
37
|
* @param {ERemote<EMarshaller>} marshaller
|
|
39
38
|
* @param {MakeRecorderKit} makeRecorderKit
|
|
40
39
|
* @param {MakeERecorderKit} makeERecorderKit
|
|
41
40
|
* @param {Record<string, VaultManagerParamOverrides>} managerParams
|
|
42
41
|
*/
|
|
43
|
-
declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, directorParamManager: VaultDirectorParamManager, debtMint: ZCFMint<"nat">, timer: ERef<TimerService>,
|
|
42
|
+
declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, directorParamManager: VaultDirectorParamManager, debtMint: ZCFMint<"nat">, timer: ERef<TimerService>, storageNode: ERemote<StorageNode>, marshaller: ERemote<EMarshaller>, makeRecorderKit: MakeRecorderKit, makeERecorderKit: MakeERecorderKit, managerParams: Record<string, VaultManagerParamOverrides>): () => import("@endo/exo").GuardedKit<{
|
|
44
43
|
creator: {
|
|
45
44
|
getParamMgrRetriever: () => {
|
|
46
45
|
/** @param {VaultFactoryParamPath} paramPath */
|
|
47
|
-
get: (paramPath?: VaultFactoryParamPath) => TypedParamManager<{
|
|
46
|
+
get: (paramPath?: VaultFactoryParamPath) => VaultDirectorParamManager | TypedParamManager<{
|
|
48
47
|
DebtLimit: "amount";
|
|
49
48
|
InterestRate: "ratio";
|
|
50
49
|
LiquidationPadding: "ratio";
|
|
51
50
|
LiquidationMargin: "ratio";
|
|
52
51
|
LiquidationPenalty: "ratio";
|
|
53
52
|
MintFee: "ratio";
|
|
54
|
-
}
|
|
53
|
+
}>;
|
|
55
54
|
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
56
55
|
/** @param {VaultFactoryParamPath} paramPath */
|
|
57
|
-
get: (paramPath?: VaultFactoryParamPath) => TypedParamManager<{
|
|
56
|
+
get: (paramPath?: VaultFactoryParamPath) => VaultDirectorParamManager | TypedParamManager<{
|
|
58
57
|
DebtLimit: "amount";
|
|
59
58
|
InterestRate: "ratio";
|
|
60
59
|
LiquidationPadding: "ratio";
|
|
61
60
|
LiquidationMargin: "ratio";
|
|
62
61
|
LiquidationPenalty: "ratio";
|
|
63
62
|
MintFee: "ratio";
|
|
64
|
-
}
|
|
63
|
+
}>;
|
|
65
64
|
}>;
|
|
66
65
|
/** @param {string} name */
|
|
67
66
|
getInvitation(name: string): Promise<globalThis.Invitation>;
|
|
@@ -143,25 +142,9 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
143
142
|
};
|
|
144
143
|
}>;
|
|
145
144
|
lockOraclePrices(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
146
|
-
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
147
145
|
}>>;
|
|
148
146
|
makeCollectFeesInvitation(): Promise<globalThis.Invitation<string>>;
|
|
149
147
|
getRewardAllocation(): import("@agoric/zoe").Allocation;
|
|
150
|
-
makeLiquidationWaker(): {
|
|
151
|
-
wake: (timestamp: any) => any;
|
|
152
|
-
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
153
|
-
wake: (timestamp: any) => any;
|
|
154
|
-
}>;
|
|
155
|
-
makeReschedulerWaker(): {
|
|
156
|
-
wake: (timestamp: any) => any;
|
|
157
|
-
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
158
|
-
wake: (timestamp: any) => any;
|
|
159
|
-
}>;
|
|
160
|
-
makePriceLockWaker(): {
|
|
161
|
-
wake: (timestamp: any) => any;
|
|
162
|
-
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
163
|
-
wake: (timestamp: any) => any;
|
|
164
|
-
}>;
|
|
165
148
|
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
166
149
|
}>;
|
|
167
150
|
/** @returns {ERef<GovernedApis>} */
|
|
@@ -247,25 +230,9 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
247
230
|
};
|
|
248
231
|
}>;
|
|
249
232
|
lockOraclePrices(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
250
|
-
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
251
233
|
}>>;
|
|
252
234
|
makeCollectFeesInvitation(): Promise<globalThis.Invitation<string>>;
|
|
253
235
|
getRewardAllocation(): import("@agoric/zoe").Allocation;
|
|
254
|
-
makeLiquidationWaker(): {
|
|
255
|
-
wake: (timestamp: any) => any;
|
|
256
|
-
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
257
|
-
wake: (timestamp: any) => any;
|
|
258
|
-
}>;
|
|
259
|
-
makeReschedulerWaker(): {
|
|
260
|
-
wake: (timestamp: any) => any;
|
|
261
|
-
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
262
|
-
wake: (timestamp: any) => any;
|
|
263
|
-
}>;
|
|
264
|
-
makePriceLockWaker(): {
|
|
265
|
-
wake: (timestamp: any) => any;
|
|
266
|
-
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
267
|
-
wake: (timestamp: any) => any;
|
|
268
|
-
}>;
|
|
269
236
|
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
270
237
|
};
|
|
271
238
|
public: {
|
|
@@ -336,7 +303,6 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
336
303
|
getInvitationAmount(name: string): import("@agoric/ertp").SetAmount<import("@agoric/zoe").InvitationDetails>;
|
|
337
304
|
};
|
|
338
305
|
helper: {
|
|
339
|
-
resetWakeupsForNextAuction(): Promise<void>;
|
|
340
306
|
/** Start non-durable processes (or restart if needed after vat restart) */
|
|
341
307
|
start(): Promise<void>;
|
|
342
308
|
};
|
|
@@ -352,7 +318,6 @@ import type { Baggage } from '@agoric/swingset-liveslots';
|
|
|
352
318
|
import type { VaultFactoryZCF } from './vaultFactory.js';
|
|
353
319
|
import type { ZCFMint } from '@agoric/zoe';
|
|
354
320
|
import type { TimerService } from '@agoric/time';
|
|
355
|
-
import type { AuctioneerPublicFacet } from '../auction/auctioneer.js';
|
|
356
321
|
import type { ERemote } from '@agoric/internal';
|
|
357
322
|
import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
358
323
|
import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultDirector.d.ts","sourceRoot":"","sources":["vaultDirector.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vaultDir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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAflC,oCAAoC;2BAAtB,IAAI,CAAC,YAAY,CAAC;;;;;QAYhC;;;;WAIG;uCAHQ,MAAM,CAAC,KAAK,CAAC,qBACb,OAAO,sBACP,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA4ElC,6BAA6B;sCAAjB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAUjB;;;;WAIG;6CADQ;YAAE,eAAe,EAAE,KAAK,CAAA;SAAE;;;;QAQrC,0EAA0E;;QAI1E;;;;;WAKG;+CADQ;YAAE,eAAe,EAAE,KAAK,CAAA;SAAE;;QASrC,2BAA2B;kCAAf,MAAM;;;QAMlB,2EAA2E;;;GAalF;8BAjcmD,oBAAoB;0CAZjC,mBAAmB;qCAaxB,oBAAoB;uCAZlB,4BAA4B;yCAE1B,aAAa;uCADf,gEAAgE;6BAL1E,WAAW;6BAOX,4BAA4B;qCACpB,mBAAmB;6BATC,aAAa;kCAUpC,cAAc;6BARG,kBAAkB;iCACpC,iDAAiD;qCAS7C,6CAA6C;sCAC5C,6CAA6C;gDAEnC,aAAa;2CAGlB,oBAAoB;6CAFR,oBAAoB;6BAhBlB,aAAa"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/// <reference types="@agoric/governance/exported.js" />
|
|
2
2
|
/// <reference types="@agoric/zoe/exported.js" />
|
|
3
3
|
|
|
4
|
-
import { Fail, q } from '@endo/errors';
|
|
5
|
-
import { E } from '@endo/eventual-send';
|
|
6
|
-
import { Far } from '@endo/marshal';
|
|
7
4
|
import { AmountMath, AmountShape, BrandShape, IssuerShape } from '@agoric/ertp';
|
|
8
5
|
import {
|
|
9
6
|
GovernorFacetShape,
|
|
@@ -24,11 +21,10 @@ import {
|
|
|
24
21
|
TopicsRecordShape,
|
|
25
22
|
unitAmount,
|
|
26
23
|
} from '@agoric/zoe/src/contractSupport/index.js';
|
|
24
|
+
import { Fail, q } from '@endo/errors';
|
|
25
|
+
import { E } from '@endo/eventual-send';
|
|
26
|
+
import { Far } from '@endo/marshal';
|
|
27
27
|
import { makeCollectFeesInvitation } from '../collectFees.js';
|
|
28
|
-
import {
|
|
29
|
-
setWakeupsForNextAuction,
|
|
30
|
-
watchForGovernanceChange,
|
|
31
|
-
} from './liquidation.js';
|
|
32
28
|
import {
|
|
33
29
|
provideVaultParamManagers,
|
|
34
30
|
SHORTFALL_INVITATION_KEY,
|
|
@@ -115,7 +111,6 @@ export const makeAllManagersDo = (collateralManagers, vaultManagers) => {
|
|
|
115
111
|
* @param {VaultDirectorParamManager} directorParamManager
|
|
116
112
|
* @param {ZCFMint<'nat'>} debtMint
|
|
117
113
|
* @param {ERef<TimerService>} timer
|
|
118
|
-
* @param {ERef<AuctioneerPublicFacet>} auctioneer
|
|
119
114
|
* @param {ERemote<StorageNode>} storageNode
|
|
120
115
|
* @param {ERemote<EMarshaller>} marshaller
|
|
121
116
|
* @param {MakeRecorderKit} makeRecorderKit
|
|
@@ -128,7 +123,6 @@ const prepareVaultDirector = (
|
|
|
128
123
|
directorParamManager,
|
|
129
124
|
debtMint,
|
|
130
125
|
timer,
|
|
131
|
-
auctioneer,
|
|
132
126
|
storageNode,
|
|
133
127
|
marshaller,
|
|
134
128
|
makeRecorderKit,
|
|
@@ -290,14 +284,6 @@ const prepareVaultDirector = (
|
|
|
290
284
|
metrics: makeRecorderTopic('Vault Factory metrics', metricsKit),
|
|
291
285
|
});
|
|
292
286
|
|
|
293
|
-
const allManagersDo = makeAllManagersDo(collateralManagers, vaultManagers);
|
|
294
|
-
|
|
295
|
-
const makeWaker = (name, func) => {
|
|
296
|
-
return Far(name, {
|
|
297
|
-
wake: timestamp => func(timestamp),
|
|
298
|
-
});
|
|
299
|
-
};
|
|
300
|
-
|
|
301
287
|
/** @returns {State} */
|
|
302
288
|
const initState = () => {
|
|
303
289
|
return {};
|
|
@@ -323,9 +309,6 @@ const prepareVaultDirector = (
|
|
|
323
309
|
),
|
|
324
310
|
makeCollectFeesInvitation: M.call().returns(M.promise()),
|
|
325
311
|
getRewardAllocation: M.call().returns({ Minted: AmountShape }),
|
|
326
|
-
makePriceLockWaker: M.call().returns(M.remotable('TimerWaker')),
|
|
327
|
-
makeLiquidationWaker: M.call().returns(M.remotable('TimerWaker')),
|
|
328
|
-
makeReschedulerWaker: M.call().returns(M.remotable('TimerWaker')),
|
|
329
312
|
setShortfallReporter: M.call(InvitationShape).returns(M.promise()),
|
|
330
313
|
}),
|
|
331
314
|
public: M.interface('public', {
|
|
@@ -343,7 +326,6 @@ const prepareVaultDirector = (
|
|
|
343
326
|
getPublicTopics: M.call().returns(TopicsRecordShape),
|
|
344
327
|
}),
|
|
345
328
|
helper: M.interface('helper', {
|
|
346
|
-
resetWakeupsForNextAuction: M.call().returns(M.promise()),
|
|
347
329
|
start: M.call().returns(M.promise()),
|
|
348
330
|
}),
|
|
349
331
|
},
|
|
@@ -455,23 +437,6 @@ const prepareVaultDirector = (
|
|
|
455
437
|
return rewardPoolSeat.getCurrentAllocation();
|
|
456
438
|
},
|
|
457
439
|
|
|
458
|
-
makeLiquidationWaker() {
|
|
459
|
-
return makeWaker('liquidationWaker', _timestamp => {
|
|
460
|
-
// XXX floating promise
|
|
461
|
-
allManagersDo(vm => vm.liquidateVaults(auctioneer));
|
|
462
|
-
});
|
|
463
|
-
},
|
|
464
|
-
makeReschedulerWaker() {
|
|
465
|
-
const { facets } = this;
|
|
466
|
-
return makeWaker('reschedulerWaker', () => {
|
|
467
|
-
void facets.helper.resetWakeupsForNextAuction();
|
|
468
|
-
});
|
|
469
|
-
},
|
|
470
|
-
makePriceLockWaker() {
|
|
471
|
-
return makeWaker('priceLockWaker', () => {
|
|
472
|
-
allManagersDo(vm => vm.lockOraclePrices());
|
|
473
|
-
});
|
|
474
|
-
},
|
|
475
440
|
async setShortfallReporter(newInvitation) {
|
|
476
441
|
const zoe = zcf.getZoeService();
|
|
477
442
|
shortfallReporter = await E(
|
|
@@ -524,34 +489,14 @@ const prepareVaultDirector = (
|
|
|
524
489
|
},
|
|
525
490
|
},
|
|
526
491
|
helper: {
|
|
527
|
-
resetWakeupsForNextAuction() {
|
|
528
|
-
const { facets } = this;
|
|
529
|
-
|
|
530
|
-
const priceLockWaker = facets.machine.makePriceLockWaker();
|
|
531
|
-
const liquidationWaker = facets.machine.makeLiquidationWaker();
|
|
532
|
-
const rescheduleWaker = facets.machine.makeReschedulerWaker();
|
|
533
|
-
return setWakeupsForNextAuction(
|
|
534
|
-
auctioneer,
|
|
535
|
-
timer,
|
|
536
|
-
priceLockWaker,
|
|
537
|
-
liquidationWaker,
|
|
538
|
-
rescheduleWaker,
|
|
539
|
-
);
|
|
540
|
-
},
|
|
541
492
|
/** Start non-durable processes (or restart if needed after vat restart) */
|
|
542
493
|
async start() {
|
|
543
|
-
const { helper, machine } = this.facets;
|
|
544
|
-
|
|
545
|
-
await helper.resetWakeupsForNextAuction();
|
|
546
494
|
updateShortfallReporter().catch(err =>
|
|
547
495
|
console.error(
|
|
548
496
|
'🛠️ updateShortfallReporter failed during start(); repair by updating governance',
|
|
549
497
|
err,
|
|
550
498
|
),
|
|
551
499
|
);
|
|
552
|
-
// independent of the other one which can be canceled
|
|
553
|
-
const rescheduleWaker = machine.makeReschedulerWaker();
|
|
554
|
-
void watchForGovernanceChange(auctioneer, timer, rescheduleWaker);
|
|
555
500
|
},
|
|
556
501
|
},
|
|
557
502
|
},
|
|
@@ -15,29 +15,28 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
15
15
|
initialShortfallInvitation: Invitation;
|
|
16
16
|
storageNode: Remote<StorageNode>;
|
|
17
17
|
marshaller: Remote<Marshaller>;
|
|
18
|
-
auctioneerInstance: Instance<typeof auctioneerStart>;
|
|
19
18
|
managerParams: Record<string, VaultManagerParamOverrides>;
|
|
20
19
|
directorParamOverrides: [object];
|
|
21
20
|
}, baggage: Baggage): Promise<{
|
|
22
21
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
23
22
|
getParamMgrRetriever: () => {
|
|
24
|
-
get: (paramPath?: import("./types-ambient.js").VaultFactoryParamPath) => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
23
|
+
get: (paramPath?: import("./types-ambient.js").VaultFactoryParamPath) => import("./vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
25
24
|
DebtLimit: "amount";
|
|
26
25
|
InterestRate: "ratio";
|
|
27
26
|
LiquidationPadding: "ratio";
|
|
28
27
|
LiquidationMargin: "ratio";
|
|
29
28
|
LiquidationPenalty: "ratio";
|
|
30
29
|
MintFee: "ratio";
|
|
31
|
-
}
|
|
30
|
+
}>;
|
|
32
31
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
33
|
-
get: (paramPath?: import("./types-ambient.js").VaultFactoryParamPath) => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
32
|
+
get: (paramPath?: import("./types-ambient.js").VaultFactoryParamPath) => import("./vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
34
33
|
DebtLimit: "amount";
|
|
35
34
|
InterestRate: "ratio";
|
|
36
35
|
LiquidationPadding: "ratio";
|
|
37
36
|
LiquidationMargin: "ratio";
|
|
38
37
|
LiquidationPenalty: "ratio";
|
|
39
38
|
MintFee: "ratio";
|
|
40
|
-
}
|
|
39
|
+
}>;
|
|
41
40
|
}>;
|
|
42
41
|
getInvitation(name: string): Promise<Invitation>;
|
|
43
42
|
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
@@ -113,25 +112,9 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
113
112
|
};
|
|
114
113
|
}>;
|
|
115
114
|
lockOraclePrices(): PriceQuote;
|
|
116
|
-
liquidateVaults(auctionPF: ERef<import("../auction/auctioneer.js").AuctioneerPublicFacet>): Promise<void>;
|
|
117
115
|
}>>;
|
|
118
116
|
makeCollectFeesInvitation(): Promise<Invitation<string>>;
|
|
119
117
|
getRewardAllocation(): import("@agoric/zoe").Allocation;
|
|
120
|
-
makeLiquidationWaker(): {
|
|
121
|
-
wake: (timestamp: any) => any;
|
|
122
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
123
|
-
wake: (timestamp: any) => any;
|
|
124
|
-
}>;
|
|
125
|
-
makeReschedulerWaker(): {
|
|
126
|
-
wake: (timestamp: any) => any;
|
|
127
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
128
|
-
wake: (timestamp: any) => any;
|
|
129
|
-
}>;
|
|
130
|
-
makePriceLockWaker(): {
|
|
131
|
-
wake: (timestamp: any) => any;
|
|
132
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
133
|
-
wake: (timestamp: any) => any;
|
|
134
|
-
}>;
|
|
135
118
|
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
136
119
|
}>;
|
|
137
120
|
getGovernedApis(): ERef<GovernedApis>;
|
|
@@ -202,7 +185,6 @@ import type { ContractMeta } from '@agoric/zoe';
|
|
|
202
185
|
import type { FeeMintAccess } from '@agoric/zoe';
|
|
203
186
|
import type { Invitation } from '@agoric/zoe';
|
|
204
187
|
import type { Remote } from '@agoric/internal';
|
|
205
|
-
import type { start as auctioneerStart } from '../auction/auctioneer.js';
|
|
206
188
|
import type { VaultManagerParamOverrides } from './params.js';
|
|
207
189
|
import type { Baggage } from '@agoric/swingset-liveslots';
|
|
208
190
|
import type { ZCFSeat } from '@agoric/zoe';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultFactory.d.ts","sourceRoot":"","sources":["vaultFactory.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vaultFactory.d.ts","sourceRoot":"","sources":["vaultFactory.js"],"names":[],"mappings":"AA8CA;;;;;;;;GAQG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAerB;AAgBK,2BAZI,eAAe,eACf;IACN,aAAa,EAAE,aAAa,CAAC;IAC7B,sBAAsB,EAAE,UAAU,CAAC;IACnC,0BAA0B,EAAE,UAAU,CAAC;IACvC,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IAC1D,sBAAsB,EAAE,CAAC,MAAM,CAAC,CAAC;CAClC,WACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFjB;8BAzHY,IACR,eAAe,CAAC,mBAAmB,CAAC,GAAG;IACrC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,YAAY,EAAE,YAAY,CAAC;CAC5B,CACF;mCAsHU,WAAW,OAAO,KAAK,CAAC;kCA1IoF,aAAa;mCAAb,aAAa;gCAAb,aAAa;4BAD9G,kBAAkB;gDAQE,aAAa;6BAChC,4BAA4B;6BARoE,aAAa;gCAE1C,4BAA4B;yCACnF,aAAa;oCAD0C,4BAA4B;6CAI/E,4BAA4B;kCAFvC,cAAc;yBAJ6E,aAAa;gCAC1G,qCAAqC"}
|
|
@@ -26,7 +26,6 @@ import { provideAll } from '@agoric/zoe/src/contractSupport/durability.js';
|
|
|
26
26
|
import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
27
27
|
import { E } from '@endo/eventual-send';
|
|
28
28
|
import { FeeMintAccessShape } from '@agoric/zoe/src/typeGuards.js';
|
|
29
|
-
import { InvitationShape } from '../auction/params.js';
|
|
30
29
|
import { SHORTFALL_INVITATION_KEY, vaultDirectorParamTypes } from './params.js';
|
|
31
30
|
import { provideDirector } from './vaultDirector.js';
|
|
32
31
|
|
|
@@ -65,8 +64,8 @@ export const meta = {
|
|
|
65
64
|
{
|
|
66
65
|
// only necessary on first invocation, not subsequent
|
|
67
66
|
feeMintAccess: FeeMintAccessShape,
|
|
68
|
-
initialPoserInvitation:
|
|
69
|
-
initialShortfallInvitation:
|
|
67
|
+
initialPoserInvitation: M.any(),
|
|
68
|
+
initialShortfallInvitation: M.any(),
|
|
70
69
|
},
|
|
71
70
|
),
|
|
72
71
|
upgradability: 'canUpgrade',
|
|
@@ -81,7 +80,6 @@ harden(meta);
|
|
|
81
80
|
* initialShortfallInvitation: Invitation;
|
|
82
81
|
* storageNode: Remote<StorageNode>;
|
|
83
82
|
* marshaller: Remote<Marshaller>;
|
|
84
|
-
* auctioneerInstance: Instance<typeof auctioneerStart>;
|
|
85
83
|
* managerParams: Record<string, VaultManagerParamOverrides>;
|
|
86
84
|
* directorParamOverrides: [object];
|
|
87
85
|
* }} privateArgs
|
|
@@ -94,7 +92,6 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
94
92
|
initialShortfallInvitation,
|
|
95
93
|
marshaller: remoteMarshaller,
|
|
96
94
|
storageNode,
|
|
97
|
-
auctioneerInstance,
|
|
98
95
|
managerParams,
|
|
99
96
|
directorParamOverrides,
|
|
100
97
|
} = privateArgs;
|
|
@@ -112,9 +109,6 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
112
109
|
|
|
113
110
|
const { timerService } = zcf.getTerms();
|
|
114
111
|
|
|
115
|
-
const zoe = zcf.getZoeService();
|
|
116
|
-
const auctioneerPublicFacet = E(zoe).getPublicFacet(auctioneerInstance);
|
|
117
|
-
|
|
118
112
|
const { makeRecorderKit, makeERecorderKit } = prepareRecorderKitMakers(
|
|
119
113
|
baggage,
|
|
120
114
|
cachingMarshaller,
|
|
@@ -150,7 +144,6 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
150
144
|
vaultDirectorParamManager,
|
|
151
145
|
debtMint,
|
|
152
146
|
timerService,
|
|
153
|
-
auctioneerPublicFacet,
|
|
154
147
|
storageNode,
|
|
155
148
|
// XXX remove Recorder makers; remove once we excise deprecated kits for governance
|
|
156
149
|
cachingMarshaller,
|
|
@@ -71,90 +71,6 @@ export function prepareVaultManagerKit(baggage: Baggage, { zcf, marshaller, make
|
|
|
71
71
|
*/
|
|
72
72
|
markDoneLiquidating(debt: Amount<"nat">, collateral: Amount<"nat">, overage: Amount<"nat">, shortfall: Amount<"nat">): void;
|
|
73
73
|
writeMetrics(): Promise<void>;
|
|
74
|
-
/**
|
|
75
|
-
* This is designed to tolerate an incomplete plan, in case
|
|
76
|
-
* calculateDistributionPlan encounters an error during its calculation.
|
|
77
|
-
* We don't have a way to induce such errors in CI so we've done so
|
|
78
|
-
* manually in dev and verified this function recovers as expected.
|
|
79
|
-
*
|
|
80
|
-
* @param {AmountKeywordRecord} proceeds
|
|
81
|
-
* @param {Amount<'nat'>} totalDebt
|
|
82
|
-
* @param {Pick<PriceQuote, 'quoteAmount'>} oraclePriceAtStart
|
|
83
|
-
* @param {MapStore<
|
|
84
|
-
* Vault,
|
|
85
|
-
* { collateralAmount: Amount<'nat'>; debtAmount: Amount<'nat'> }
|
|
86
|
-
* >} vaultData
|
|
87
|
-
* @param {Amount<'nat'>} totalCollateral
|
|
88
|
-
*/
|
|
89
|
-
planProceedsDistribution(proceeds: AmountKeywordRecord, totalDebt: Amount<"nat">, oraclePriceAtStart: Pick<PriceQuote, "quoteAmount">, vaultData: MapStore<Vault, {
|
|
90
|
-
collateralAmount: Amount<"nat">;
|
|
91
|
-
debtAmount: Amount<"nat">;
|
|
92
|
-
}>, totalCollateral: Amount<"nat">): {
|
|
93
|
-
plan: DistributionPlan;
|
|
94
|
-
vaultsInPlan: import("@endo/exo").Guarded<{
|
|
95
|
-
getVaultSeat(): globalThis.ZCFSeat;
|
|
96
|
-
initVaultKit(seat: ZCFSeat, storageNode: Remote<StorageNode>): Promise<{
|
|
97
|
-
publicSubscribers: {
|
|
98
|
-
vault: {
|
|
99
|
-
description: string;
|
|
100
|
-
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
101
|
-
storagePath: Promise<string>;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
105
|
-
AdjustBalances(): Promise<globalThis.Invitation<string, undefined>>;
|
|
106
|
-
CloseVault(): Promise<globalThis.Invitation<string, undefined>>;
|
|
107
|
-
TransferVault(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
108
|
-
}>;
|
|
109
|
-
vault: import("@endo/exo").Guarded<{
|
|
110
|
-
getPublicTopics(): {
|
|
111
|
-
vault: {
|
|
112
|
-
description: string;
|
|
113
|
-
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
114
|
-
storagePath: Promise<string>;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
118
|
-
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
119
|
-
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
120
|
-
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
121
|
-
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
122
|
-
getNormalizedDebt(): NormalizedDebt;
|
|
123
|
-
}>;
|
|
124
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
125
|
-
}>;
|
|
126
|
-
liquidating(): void;
|
|
127
|
-
liquidated(): void;
|
|
128
|
-
abortLiquidation(): string;
|
|
129
|
-
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
130
|
-
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
131
|
-
makeTransferInvitation(): Promise<Invitation<import("./vaultKit.js").VaultKit>>;
|
|
132
|
-
getCollateralAmount(): Amount<"nat">;
|
|
133
|
-
getCurrentDebt(): Amount<"nat">;
|
|
134
|
-
getNormalizedDebt(): NormalizedDebt;
|
|
135
|
-
}>[];
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* This is designed to tolerate an incomplete plan, in case
|
|
139
|
-
* calculateDistributionPlan encounters an error during its calculation.
|
|
140
|
-
* We don't have a way to induce such errors in CI so we've done so
|
|
141
|
-
* manually in dev and verified this function recovers as expected.
|
|
142
|
-
*
|
|
143
|
-
* @param {object} obj
|
|
144
|
-
* @param {DistributionPlan} obj.plan
|
|
145
|
-
* @param {Vault[]} obj.vaultsInPlan
|
|
146
|
-
* @param {ZCFSeat} obj.liqSeat
|
|
147
|
-
* @param {Amount<'nat'>} obj.totalCollateral
|
|
148
|
-
* @param {Amount<'nat'>} obj.totalDebt
|
|
149
|
-
* @returns {void}
|
|
150
|
-
*/
|
|
151
|
-
distributeProceeds({ plan, vaultsInPlan, liqSeat, totalCollateral, totalDebt, }: {
|
|
152
|
-
plan: DistributionPlan;
|
|
153
|
-
vaultsInPlan: Vault[];
|
|
154
|
-
liqSeat: ZCFSeat;
|
|
155
|
-
totalCollateral: Amount<"nat">;
|
|
156
|
-
totalDebt: Amount<"nat">;
|
|
157
|
-
}): void;
|
|
158
74
|
};
|
|
159
75
|
manager: {
|
|
160
76
|
getGovernedParams(): GovernedParamGetters;
|
|
@@ -268,10 +184,6 @@ export function prepareVaultManagerKit(baggage: Baggage, { zcf, marshaller, make
|
|
|
268
184
|
};
|
|
269
185
|
}>;
|
|
270
186
|
lockOraclePrices(): PriceQuote;
|
|
271
|
-
/**
|
|
272
|
-
* @param {ERef<AuctioneerPublicFacet>} auctionPF
|
|
273
|
-
*/
|
|
274
|
-
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
275
187
|
};
|
|
276
188
|
}>>[0], "metricsStorageNode">) => Promise<import("@endo/exo").GuardedKit<{
|
|
277
189
|
collateral: {
|
|
@@ -330,90 +242,6 @@ export function prepareVaultManagerKit(baggage: Baggage, { zcf, marshaller, make
|
|
|
330
242
|
*/
|
|
331
243
|
markDoneLiquidating(debt: Amount<"nat">, collateral: Amount<"nat">, overage: Amount<"nat">, shortfall: Amount<"nat">): void;
|
|
332
244
|
writeMetrics(): Promise<void>;
|
|
333
|
-
/**
|
|
334
|
-
* This is designed to tolerate an incomplete plan, in case
|
|
335
|
-
* calculateDistributionPlan encounters an error during its calculation.
|
|
336
|
-
* We don't have a way to induce such errors in CI so we've done so
|
|
337
|
-
* manually in dev and verified this function recovers as expected.
|
|
338
|
-
*
|
|
339
|
-
* @param {AmountKeywordRecord} proceeds
|
|
340
|
-
* @param {Amount<'nat'>} totalDebt
|
|
341
|
-
* @param {Pick<PriceQuote, 'quoteAmount'>} oraclePriceAtStart
|
|
342
|
-
* @param {MapStore<
|
|
343
|
-
* Vault,
|
|
344
|
-
* { collateralAmount: Amount<'nat'>; debtAmount: Amount<'nat'> }
|
|
345
|
-
* >} vaultData
|
|
346
|
-
* @param {Amount<'nat'>} totalCollateral
|
|
347
|
-
*/
|
|
348
|
-
planProceedsDistribution(proceeds: AmountKeywordRecord, totalDebt: Amount<"nat">, oraclePriceAtStart: Pick<PriceQuote, "quoteAmount">, vaultData: MapStore<Vault, {
|
|
349
|
-
collateralAmount: Amount<"nat">;
|
|
350
|
-
debtAmount: Amount<"nat">;
|
|
351
|
-
}>, totalCollateral: Amount<"nat">): {
|
|
352
|
-
plan: DistributionPlan;
|
|
353
|
-
vaultsInPlan: import("@endo/exo").Guarded<{
|
|
354
|
-
getVaultSeat(): globalThis.ZCFSeat;
|
|
355
|
-
initVaultKit(seat: ZCFSeat, storageNode: Remote<StorageNode>): Promise<{
|
|
356
|
-
publicSubscribers: {
|
|
357
|
-
vault: {
|
|
358
|
-
description: string;
|
|
359
|
-
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
360
|
-
storagePath: Promise<string>;
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
364
|
-
AdjustBalances(): Promise<globalThis.Invitation<string, undefined>>;
|
|
365
|
-
CloseVault(): Promise<globalThis.Invitation<string, undefined>>;
|
|
366
|
-
TransferVault(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
367
|
-
}>;
|
|
368
|
-
vault: import("@endo/exo").Guarded<{
|
|
369
|
-
getPublicTopics(): {
|
|
370
|
-
vault: {
|
|
371
|
-
description: string;
|
|
372
|
-
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
373
|
-
storagePath: Promise<string>;
|
|
374
|
-
};
|
|
375
|
-
};
|
|
376
|
-
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
377
|
-
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
378
|
-
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
379
|
-
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
380
|
-
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
381
|
-
getNormalizedDebt(): NormalizedDebt;
|
|
382
|
-
}>;
|
|
383
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
384
|
-
}>;
|
|
385
|
-
liquidating(): void;
|
|
386
|
-
liquidated(): void;
|
|
387
|
-
abortLiquidation(): string;
|
|
388
|
-
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
389
|
-
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
390
|
-
makeTransferInvitation(): Promise<Invitation<import("./vaultKit.js").VaultKit>>;
|
|
391
|
-
getCollateralAmount(): Amount<"nat">;
|
|
392
|
-
getCurrentDebt(): Amount<"nat">;
|
|
393
|
-
getNormalizedDebt(): NormalizedDebt;
|
|
394
|
-
}>[];
|
|
395
|
-
};
|
|
396
|
-
/**
|
|
397
|
-
* This is designed to tolerate an incomplete plan, in case
|
|
398
|
-
* calculateDistributionPlan encounters an error during its calculation.
|
|
399
|
-
* We don't have a way to induce such errors in CI so we've done so
|
|
400
|
-
* manually in dev and verified this function recovers as expected.
|
|
401
|
-
*
|
|
402
|
-
* @param {object} obj
|
|
403
|
-
* @param {DistributionPlan} obj.plan
|
|
404
|
-
* @param {Vault[]} obj.vaultsInPlan
|
|
405
|
-
* @param {ZCFSeat} obj.liqSeat
|
|
406
|
-
* @param {Amount<'nat'>} obj.totalCollateral
|
|
407
|
-
* @param {Amount<'nat'>} obj.totalDebt
|
|
408
|
-
* @returns {void}
|
|
409
|
-
*/
|
|
410
|
-
distributeProceeds({ plan, vaultsInPlan, liqSeat, totalCollateral, totalDebt, }: {
|
|
411
|
-
plan: DistributionPlan;
|
|
412
|
-
vaultsInPlan: Vault[];
|
|
413
|
-
liqSeat: ZCFSeat;
|
|
414
|
-
totalCollateral: Amount<"nat">;
|
|
415
|
-
totalDebt: Amount<"nat">;
|
|
416
|
-
}): void;
|
|
417
245
|
};
|
|
418
246
|
manager: {
|
|
419
247
|
getGovernedParams(): GovernedParamGetters;
|
|
@@ -527,10 +355,6 @@ export function prepareVaultManagerKit(baggage: Baggage, { zcf, marshaller, make
|
|
|
527
355
|
};
|
|
528
356
|
}>;
|
|
529
357
|
lockOraclePrices(): PriceQuote;
|
|
530
|
-
/**
|
|
531
|
-
* @param {ERef<AuctioneerPublicFacet>} auctionPF
|
|
532
|
-
*/
|
|
533
|
-
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
534
358
|
};
|
|
535
359
|
}>>;
|
|
536
360
|
export function provideAndStartVaultManagerKits(baggage: Baggage): {
|
|
@@ -685,14 +509,12 @@ import type { NormalizedDebt } from './storeUtils.js';
|
|
|
685
509
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
686
510
|
import type { StoredNotifier } from '@agoric/notifier';
|
|
687
511
|
import type { Ratio } from '@agoric/ertp';
|
|
688
|
-
import type { Vault } from './vault.js';
|
|
689
|
-
import type { MapStore } from '@agoric/store';
|
|
690
|
-
import type { DistributionPlan } from './proceeds.js';
|
|
691
512
|
import type { VaultId } from './types-ambient.js';
|
|
692
513
|
import type { VaultPhase } from './vault.js';
|
|
693
|
-
import type {
|
|
514
|
+
import type { Vault } from './vault.js';
|
|
694
515
|
import type { RelativeTime } from '@agoric/time';
|
|
695
516
|
import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
696
517
|
import type { SetStore } from '@agoric/store';
|
|
518
|
+
import type { MapStore } from '@agoric/store';
|
|
697
519
|
import type { EReturn } from '@endo/far';
|
|
698
520
|
//# sourceMappingURL=vaultManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultManager.d.ts","sourceRoot":"","sources":["vaultManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vaultManager.d.ts","sourceRoot":"","sources":["vaultManager.js"],"names":[],"mappings":"AAqGO,mCANM,CAAC,EACQ,CAAC,SAAT,GAAG,EAAG,yBACT,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WACpB,eAAe,CAAC,EAAE,CAAC,CAAC,WACpB,CAAC,iBAqBX;AAwHM,gDATI,OAAO,uDACP;IACN,GAAG,EAAE,eAAe,CAAC;IACrB,UAAU,EAAE,QAAQ,WAAW,CAAC,CAAC;IACjC,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,aAAa,EAAE,kBAAkB,CAAC;CACnC,oBAywBS,IAAI,CACV,U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