@agoric/inter-protocol 0.16.2-dev-de2008a.0 → 0.16.2-dev-9d7a377.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 +9 -9
- package/src/auction/auctioneer.d.ts +10 -10
- package/src/auction/offerBook.d.ts +4 -4
- package/src/auction/params.d.ts +5 -5
- package/src/auction/scheduleMath.d.ts +3 -3
- package/src/auction/scheduler.d.ts +3 -3
- package/src/auction/sortedOffers.d.ts +1 -1
- package/src/auction/util.d.ts +2 -2
- package/src/clientSupport.d.ts +15 -15
- package/src/contractSupport.d.ts +3 -3
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +2 -2
- package/src/feeDistributor.d.ts +11 -11
- package/src/interest-math.d.ts +2 -2
- package/src/interest.d.ts +3 -3
- package/src/price/fluxAggregatorContract.d.ts +6 -6
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.d.ts +8 -8
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/priceOracleKit.d.ts +1 -1
- package/src/price/roundsManager.d.ts +9 -9
- package/src/proposals/add-auction.d.ts +69 -0
- package/src/proposals/add-auction.d.ts.map +1 -0
- package/src/proposals/add-auction.js +177 -0
- package/src/proposals/committee-proposal.d.ts +4 -4
- package/src/proposals/core-proposal.d.ts +1 -1
- package/src/proposals/econ-behaviors.d.ts +69 -283
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.js +1 -0
- package/src/proposals/price-feed-proposal.d.ts +3 -3
- package/src/proposals/startEconCommittee.d.ts +1 -1
- package/src/provisionPool.d.ts +22 -22
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPoolKit.d.ts +257 -233
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/psm/psm.d.ts +10 -10
- package/src/reserve/assetReserve.d.ts +6 -6
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.d.ts +11 -11
- package/src/tokens.d.ts +1 -1
- package/src/vaultFactory/liquidation.d.ts +11 -11
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/math.d.ts +2 -2
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/params.d.ts +9 -9
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +4 -4
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/proceeds.d.ts +16 -16
- package/src/vaultFactory/storeUtils.d.ts +3 -3
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/types.d.ts +8 -8
- package/src/vaultFactory/types.d.ts.map +1 -1
- package/src/vaultFactory/vault.d.ts +29 -29
- package/src/vaultFactory/vaultDirector.d.ts +10 -10
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +15 -18
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.d.ts +11 -11
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.d.ts +1 -1
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.d.ts +48 -48
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
|
@@ -2,7 +2,7 @@ export const SECONDS_PER_MINUTE: 60n;
|
|
|
2
2
|
export const SECONDS_PER_HOUR: bigint;
|
|
3
3
|
export const SECONDS_PER_DAY: bigint;
|
|
4
4
|
export const SECONDS_PER_WEEK: bigint;
|
|
5
|
-
export function setupReserve({ consume: { board, feeMintAccess: feeMintAccessP, chainStorage, chainTimerService, diagnostics, zoe, economicCommitteeCreatorFacet: committeeCreator, }, produce: { reserveKit }, issuer: { consume: { [Stable.symbol]: centralIssuer }, }, instance: { produce: { reserve: reserveInstanceProducer, reserveGovernor }, }, installation: { consume: { contractGovernor: governorInstallation, reserve: reserveInstallation, }, }, }: EconomyBootstrapPowers): Promise<Installation<(zcf: ZCF<
|
|
5
|
+
export function setupReserve({ consume: { board, feeMintAccess: feeMintAccessP, chainStorage, chainTimerService, diagnostics, zoe, economicCommitteeCreatorFacet: committeeCreator, }, produce: { reserveKit }, issuer: { consume: { [Stable.symbol]: centralIssuer }, }, instance: { produce: { reserve: reserveInstanceProducer, reserveGovernor }, }, installation: { consume: { contractGovernor: governorInstallation, reserve: reserveInstallation, }, }, }: EconomyBootstrapPowers): Promise<Installation<(zcf: ZCF<GovernanceTerms<{}> & {
|
|
6
6
|
governedApis: ["burnFeesToReduceShortfall"];
|
|
7
7
|
}>, privateArgs: {
|
|
8
8
|
feeMintAccess: FeeMintAccess;
|
|
@@ -11,11 +11,11 @@ export function setupReserve({ consume: { board, feeMintAccess: feeMintAccessP,
|
|
|
11
11
|
storageNode: ERef<StorageNode>;
|
|
12
12
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
13
13
|
creatorFacet: globalThis.GovernedCreatorFacet<import("@endo/exo").Guarded<{
|
|
14
|
-
addIssuer(issuer:
|
|
14
|
+
addIssuer(issuer: Issuer, keyword: string): Promise<void>;
|
|
15
15
|
getAllocations(): AmountKeywordRecord;
|
|
16
16
|
makeShortfallReportingInvitation(): Promise<Invitation<import("@endo/exo").Guarded<{
|
|
17
|
-
increaseLiquidationShortfall(shortfall:
|
|
18
|
-
reduceLiquidationShortfall(reduction:
|
|
17
|
+
increaseLiquidationShortfall(shortfall: Amount<"nat">): void;
|
|
18
|
+
reduceLiquidationShortfall(reduction: Amount<"nat">): void;
|
|
19
19
|
}>, undefined>>;
|
|
20
20
|
}>>;
|
|
21
21
|
publicFacet: globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
@@ -25,12 +25,12 @@ export function setupReserve({ consume: { board, feeMintAccess: feeMintAccessP,
|
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
27
27
|
}>>>;
|
|
28
|
-
export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers[
|
|
28
|
+
export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers["consume"], { interestTiming, options: { referencedUi }, }: {
|
|
29
29
|
interestTiming?: InterestTiming | undefined;
|
|
30
30
|
options?: {
|
|
31
31
|
referencedUi?: string | undefined;
|
|
32
32
|
} | undefined;
|
|
33
|
-
} | undefined, minInitialDebt: Amount<
|
|
33
|
+
} | undefined, minInitialDebt: Amount<"nat">): Promise<{
|
|
34
34
|
vaultFactoryTerms: {
|
|
35
35
|
auctioneerPublicFacet: ERef<globalThis.GovernedPublicFacet<{
|
|
36
36
|
getElectorate: () => globalThis.Amount<"set">;
|
|
@@ -41,7 +41,7 @@ export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers['cons
|
|
|
41
41
|
getDiscountStep: () => bigint;
|
|
42
42
|
getAuctionStartDelay: () => RelativeTime;
|
|
43
43
|
getPriceLockPeriod: () => RelativeTime;
|
|
44
|
-
makeBidInvitation(collateralBrand:
|
|
44
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, import("../auction/auctionBook.js").OfferSpec>>;
|
|
45
45
|
getSchedules(): {
|
|
46
46
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
47
47
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
@@ -101,8 +101,8 @@ export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers['cons
|
|
|
101
101
|
};
|
|
102
102
|
initialShortfallInvitation: globalThis.Payment<"set"> & {
|
|
103
103
|
[OfferReturn]?: import("@endo/exo").Guarded<{
|
|
104
|
-
increaseLiquidationShortfall(shortfall:
|
|
105
|
-
reduceLiquidationShortfall(reduction:
|
|
104
|
+
increaseLiquidationShortfall(shortfall: Amount<"nat">): void;
|
|
105
|
+
reduceLiquidationShortfall(reduction: Amount<"nat">): void;
|
|
106
106
|
}> | undefined;
|
|
107
107
|
[OfferArgs]?: undefined;
|
|
108
108
|
};
|
|
@@ -130,7 +130,7 @@ export function startRewardDistributor({ consume: { chainTimerService, bankManag
|
|
|
130
130
|
export function startAuctioneer({ consume: { zoe, board, chainTimerService, priceAuthority, chainStorage, economicCommitteeCreatorFacet: electorateCreatorFacet, }, produce: { auctioneerKit }, instance: { produce: { auctioneer: auctionInstance }, consume: { reserve: reserveInstance }, }, installation: { consume: { auctioneer: auctionInstallation, contractGovernor: contractGovernorInstallation, }, }, issuer: { consume: { [Stable.symbol]: stableIssuerP }, }, }: EconomyBootstrapPowers, { auctionParams, }?: {
|
|
131
131
|
auctionParams?: any;
|
|
132
132
|
}): Promise<void>;
|
|
133
|
-
export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf:
|
|
133
|
+
export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF, privateArgs: {
|
|
134
134
|
feeMintAccess: FeeMintAccess;
|
|
135
135
|
initialPoserInvitation: Invitation<unknown, undefined>;
|
|
136
136
|
initialShortfallInvitation: Invitation<unknown, undefined>;
|
|
@@ -159,21 +159,15 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
159
159
|
}>;
|
|
160
160
|
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
161
161
|
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
162
|
-
addVaultType(collateralIssuer:
|
|
162
|
+
addVaultType(collateralIssuer: Issuer</**
|
|
163
|
+
* Start the reward distributor.
|
|
164
|
+
*
|
|
165
|
+
* @param {EconomyBootstrapPowers} powers
|
|
166
|
+
*/ "nat">, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
163
167
|
getGovernedParams(): import("../vaultFactory/vaultManager.js").GovernedParamGetters;
|
|
164
168
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
165
169
|
publicSubscribers: {
|
|
166
170
|
vault: {
|
|
167
|
-
/**
|
|
168
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
169
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
170
|
-
* vat config.
|
|
171
|
-
*
|
|
172
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
173
|
-
*
|
|
174
|
-
* In production called by @agoric/vats to bootstrap.
|
|
175
|
-
*/
|
|
176
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
177
171
|
description: string;
|
|
178
172
|
subscriber: Subscriber<VaultNotification>;
|
|
179
173
|
storagePath: Promise<string>;
|
|
@@ -187,16 +181,6 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
187
181
|
vault: import("@endo/exo").Guarded<{
|
|
188
182
|
getPublicTopics(): {
|
|
189
183
|
vault: {
|
|
190
|
-
/**
|
|
191
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
192
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
193
|
-
* vat config.
|
|
194
|
-
*
|
|
195
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
196
|
-
*
|
|
197
|
-
* In production called by @agoric/vats to bootstrap.
|
|
198
|
-
*/
|
|
199
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
200
184
|
description: string;
|
|
201
185
|
subscriber: Subscriber<VaultNotification>;
|
|
202
186
|
storagePath: Promise<string>;
|
|
@@ -216,16 +200,6 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
216
200
|
makeVaultInvitation(): Promise<Invitation<{
|
|
217
201
|
publicSubscribers: {
|
|
218
202
|
vault: {
|
|
219
|
-
/**
|
|
220
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
221
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
222
|
-
* vat config.
|
|
223
|
-
*
|
|
224
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
225
|
-
*
|
|
226
|
-
* In production called by @agoric/vats to bootstrap.
|
|
227
|
-
*/
|
|
228
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
229
203
|
description: string;
|
|
230
204
|
subscriber: Subscriber<VaultNotification>;
|
|
231
205
|
storagePath: Promise<string>;
|
|
@@ -239,16 +213,6 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
239
213
|
vault: import("@endo/exo").Guarded<{
|
|
240
214
|
getPublicTopics(): {
|
|
241
215
|
vault: {
|
|
242
|
-
/**
|
|
243
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
244
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
245
|
-
* vat config.
|
|
246
|
-
*
|
|
247
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
248
|
-
*
|
|
249
|
-
* In production called by @agoric/vats to bootstrap.
|
|
250
|
-
*/
|
|
251
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
252
216
|
description: string;
|
|
253
217
|
subscriber: Subscriber<VaultNotification>;
|
|
254
218
|
storagePath: Promise<string>;
|
|
@@ -280,7 +244,7 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
280
244
|
getDiscountStep: () => bigint;
|
|
281
245
|
getAuctionStartDelay: () => RelativeTime;
|
|
282
246
|
getPriceLockPeriod: () => RelativeTime;
|
|
283
|
-
makeBidInvitation(collateralBrand:
|
|
247
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, import("../auction/auctionBook.js").OfferSpec>>;
|
|
284
248
|
getSchedules(): {
|
|
285
249
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
286
250
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
@@ -320,20 +284,10 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
320
284
|
setOfferFilter: (strings: any) => Promise<void>;
|
|
321
285
|
}>;
|
|
322
286
|
publicFacet: import("@endo/exo").Guarded<{
|
|
323
|
-
getCollateralManager(brandIn:
|
|
287
|
+
getCollateralManager(brandIn: Brand): import("@endo/exo").Guarded<{
|
|
324
288
|
makeVaultInvitation(): Promise<Invitation<{
|
|
325
289
|
publicSubscribers: {
|
|
326
290
|
vault: {
|
|
327
|
-
/**
|
|
328
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
329
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
330
|
-
* vat config.
|
|
331
|
-
*
|
|
332
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
333
|
-
*
|
|
334
|
-
* In production called by @agoric/vats to bootstrap.
|
|
335
|
-
*/
|
|
336
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
337
291
|
description: string;
|
|
338
292
|
subscriber: Subscriber<VaultNotification>;
|
|
339
293
|
storagePath: Promise<string>;
|
|
@@ -347,16 +301,6 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
347
301
|
vault: import("@endo/exo").Guarded<{
|
|
348
302
|
getPublicTopics(): {
|
|
349
303
|
vault: {
|
|
350
|
-
/**
|
|
351
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
352
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
353
|
-
* vat config.
|
|
354
|
-
*
|
|
355
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
356
|
-
*
|
|
357
|
-
* In production called by @agoric/vats to bootstrap.
|
|
358
|
-
*/
|
|
359
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
360
304
|
description: string;
|
|
361
305
|
subscriber: Subscriber<VaultNotification>;
|
|
362
306
|
storagePath: Promise<string>;
|
|
@@ -380,24 +324,24 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
380
324
|
}>;
|
|
381
325
|
getDebtIssuer(): globalThis.Issuer<"nat">;
|
|
382
326
|
getSubscription({ collateralBrand }: {
|
|
383
|
-
collateralBrand:
|
|
327
|
+
collateralBrand: Brand;
|
|
384
328
|
}): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
385
329
|
getPublicTopics(): {
|
|
386
330
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
387
331
|
};
|
|
388
332
|
getElectorateSubscription(): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
389
333
|
getGovernedParams({ collateralBrand }: {
|
|
390
|
-
collateralBrand:
|
|
334
|
+
collateralBrand: Brand;
|
|
391
335
|
}): ERef<globalThis.ParamStateRecord>;
|
|
392
336
|
getInvitationAmount(name: string): globalThis.Amount<"set">;
|
|
393
337
|
}>;
|
|
394
|
-
}>>>[
|
|
338
|
+
}>>>["publicFacet"];
|
|
395
339
|
export type PSMKit = {
|
|
396
340
|
label: string;
|
|
397
341
|
psm: Instance;
|
|
398
342
|
psmGovernor: Instance;
|
|
399
|
-
psmCreatorFacet: Awaited<ReturnType<Awaited<ReturnType<typeof import("../psm/psm.js")[
|
|
400
|
-
psmGovernorCreatorFacet: GovernorCreatorFacet<typeof import("../psm/psm.js")[
|
|
343
|
+
psmCreatorFacet: Awaited<ReturnType<Awaited<ReturnType<typeof import("../psm/psm.js")["start"]>>["creatorFacet"]["getLimitedCreatorFacet"]>>;
|
|
344
|
+
psmGovernorCreatorFacet: GovernorCreatorFacet<typeof import("../psm/psm.js")["start"]>;
|
|
401
345
|
psmAdminFacet: AdminFacet;
|
|
402
346
|
};
|
|
403
347
|
export type AuctioneerKit = GovernanceFacetKit<(zcf: ZCF<globalThis.GovernanceTerms<{
|
|
@@ -419,9 +363,9 @@ export type AuctioneerKit = GovernanceFacetKit<(zcf: ZCF<globalThis.GovernanceTe
|
|
|
419
363
|
}>>;
|
|
420
364
|
priceAuthority: PriceAuthority;
|
|
421
365
|
}>, privateArgs: {
|
|
422
|
-
initialPoserInvitation: Invitation
|
|
366
|
+
initialPoserInvitation: Invitation;
|
|
423
367
|
storageNode: StorageNode;
|
|
424
|
-
marshaller: Marshaller
|
|
368
|
+
marshaller: Marshaller;
|
|
425
369
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
426
370
|
publicFacet: globalThis.GovernedPublicFacet<{
|
|
427
371
|
getElectorate: () => globalThis.Amount<"set">;
|
|
@@ -432,7 +376,7 @@ export type AuctioneerKit = GovernanceFacetKit<(zcf: ZCF<globalThis.GovernanceTe
|
|
|
432
376
|
getDiscountStep: () => bigint;
|
|
433
377
|
getAuctionStartDelay: () => RelativeTime;
|
|
434
378
|
getPriceLockPeriod: () => RelativeTime;
|
|
435
|
-
makeBidInvitation(collateralBrand:
|
|
379
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, import("../auction/auctionBook.js").OfferSpec>>;
|
|
436
380
|
getSchedules(): {
|
|
437
381
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
438
382
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
@@ -449,10 +393,10 @@ export type AuctioneerKit = GovernanceFacetKit<(zcf: ZCF<globalThis.GovernanceTe
|
|
|
449
393
|
}>>;
|
|
450
394
|
}>;
|
|
451
395
|
creatorFacet: globalThis.GovernedCreatorFacet<{
|
|
452
|
-
addBrand(issuer:
|
|
396
|
+
addBrand(issuer: Issuer, kwd: Keyword): Promise<void>;
|
|
453
397
|
getSchedule(): Promise<import("../auction/scheduler.js").FullSchedule>;
|
|
454
398
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
455
|
-
addBrand(issuer:
|
|
399
|
+
addBrand(issuer: Issuer, kwd: Keyword): Promise<void>;
|
|
456
400
|
getSchedule(): Promise<import("../auction/scheduler.js").FullSchedule>;
|
|
457
401
|
}>>;
|
|
458
402
|
}>>;
|
|
@@ -473,17 +417,7 @@ export type EconomyBootstrapSpace = {
|
|
|
473
417
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
474
418
|
}>;
|
|
475
419
|
startPeriodicCollection: (debugName: string, collectorP: ERef<import("../feeDistributor.js").FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
476
|
-
makeDepositFacetDestination: (depositFacet: {
|
|
477
|
-
/**
|
|
478
|
-
* Deposit all the contents of payment
|
|
479
|
-
* into the purse that made this facet, returning the amount. If the optional
|
|
480
|
-
* argument `optAmount` does not equal the amount of digital assets in the
|
|
481
|
-
* payment, throw an error.
|
|
482
|
-
*
|
|
483
|
-
* If payment is a promise, throw an error.
|
|
484
|
-
*/
|
|
485
|
-
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
486
|
-
}) => {
|
|
420
|
+
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
487
421
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
488
422
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
489
423
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -494,7 +428,7 @@ export type EconomyBootstrapSpace = {
|
|
|
494
428
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
495
429
|
}>;
|
|
496
430
|
setDestinations: (newDestinations: Record<string, ERef<import("../feeDistributor.js").FeeDestination>>) => Promise<void>;
|
|
497
|
-
setKeywordShares: (newShares: Record<
|
|
431
|
+
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
498
432
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
499
433
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<import("../feeDistributor.js").CollectibleContractFacet>) => {
|
|
500
434
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
@@ -502,17 +436,7 @@ export type EconomyBootstrapSpace = {
|
|
|
502
436
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
503
437
|
}>;
|
|
504
438
|
startPeriodicCollection: (debugName: string, collectorP: ERef<import("../feeDistributor.js").FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
505
|
-
makeDepositFacetDestination: (depositFacet: {
|
|
506
|
-
/**
|
|
507
|
-
* Deposit all the contents of payment
|
|
508
|
-
* into the purse that made this facet, returning the amount. If the optional
|
|
509
|
-
* argument `optAmount` does not equal the amount of digital assets in the
|
|
510
|
-
* payment, throw an error.
|
|
511
|
-
*
|
|
512
|
-
* If payment is a promise, throw an error.
|
|
513
|
-
*/
|
|
514
|
-
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
515
|
-
}) => {
|
|
439
|
+
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
516
440
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
517
441
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
518
442
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -523,13 +447,13 @@ export type EconomyBootstrapSpace = {
|
|
|
523
447
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
524
448
|
}>;
|
|
525
449
|
setDestinations: (newDestinations: Record<string, ERef<import("../feeDistributor.js").FeeDestination>>) => Promise<void>;
|
|
526
|
-
setKeywordShares: (newShares: Record<
|
|
450
|
+
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
527
451
|
}>;
|
|
528
452
|
publicFacet: {
|
|
529
|
-
distributeFees: (payment:
|
|
453
|
+
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
530
454
|
getKeywordShares: () => Record<string, bigint>;
|
|
531
455
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
532
|
-
distributeFees: (payment:
|
|
456
|
+
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
533
457
|
getKeywordShares: () => Record<string, bigint>;
|
|
534
458
|
}>;
|
|
535
459
|
}>>>;
|
|
@@ -537,7 +461,7 @@ export type EconomyBootstrapSpace = {
|
|
|
537
461
|
psmKit: Promise<globalThis.MapStore<globalThis.Brand, PSMKit>>;
|
|
538
462
|
anchorBalancePayments: Promise<globalThis.MapStore<globalThis.Brand, globalThis.Payment<"nat">>>;
|
|
539
463
|
econCharterKit: Promise<EconCharterStartResult>;
|
|
540
|
-
reserveKit: Promise<globalThis.GovernanceFacetKit<(zcf: ZCF<
|
|
464
|
+
reserveKit: Promise<globalThis.GovernanceFacetKit<(zcf: ZCF<GovernanceTerms<{}> & {
|
|
541
465
|
governedApis: ["burnFeesToReduceShortfall"];
|
|
542
466
|
}>, privateArgs: {
|
|
543
467
|
feeMintAccess: FeeMintAccess;
|
|
@@ -546,11 +470,11 @@ export type EconomyBootstrapSpace = {
|
|
|
546
470
|
storageNode: ERef<StorageNode>;
|
|
547
471
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
548
472
|
creatorFacet: globalThis.GovernedCreatorFacet<import("@endo/exo").Guarded<{
|
|
549
|
-
addIssuer(issuer:
|
|
473
|
+
addIssuer(issuer: Issuer, keyword: string): Promise<void>;
|
|
550
474
|
getAllocations(): AmountKeywordRecord;
|
|
551
475
|
makeShortfallReportingInvitation(): Promise<Invitation<import("@endo/exo").Guarded<{
|
|
552
|
-
increaseLiquidationShortfall(shortfall:
|
|
553
|
-
reduceLiquidationShortfall(reduction:
|
|
476
|
+
increaseLiquidationShortfall(shortfall: Amount<"nat">): void;
|
|
477
|
+
reduceLiquidationShortfall(reduction: Amount<"nat">): void;
|
|
554
478
|
}>, undefined>>;
|
|
555
479
|
}>>;
|
|
556
480
|
publicFacet: globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
@@ -560,7 +484,7 @@ export type EconomyBootstrapSpace = {
|
|
|
560
484
|
};
|
|
561
485
|
}>>;
|
|
562
486
|
}>>>;
|
|
563
|
-
vaultFactoryKit: Promise<globalThis.GovernanceFacetKit<(zcf:
|
|
487
|
+
vaultFactoryKit: Promise<globalThis.GovernanceFacetKit<(zcf: VaultFactoryZCF, privateArgs: {
|
|
564
488
|
feeMintAccess: FeeMintAccess;
|
|
565
489
|
initialPoserInvitation: Invitation<unknown, undefined>;
|
|
566
490
|
initialShortfallInvitation: Invitation<unknown, undefined>;
|
|
@@ -589,21 +513,11 @@ export type EconomyBootstrapSpace = {
|
|
|
589
513
|
}>;
|
|
590
514
|
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
591
515
|
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
592
|
-
addVaultType(collateralIssuer:
|
|
516
|
+
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
593
517
|
getGovernedParams(): import("../vaultFactory/vaultManager.js").GovernedParamGetters;
|
|
594
518
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
595
519
|
publicSubscribers: {
|
|
596
520
|
vault: {
|
|
597
|
-
/**
|
|
598
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
599
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
600
|
-
* vat config.
|
|
601
|
-
*
|
|
602
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
603
|
-
*
|
|
604
|
-
* In production called by @agoric/vats to bootstrap.
|
|
605
|
-
*/
|
|
606
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
607
521
|
description: string;
|
|
608
522
|
subscriber: Subscriber<VaultNotification>;
|
|
609
523
|
storagePath: Promise<string>;
|
|
@@ -617,16 +531,6 @@ export type EconomyBootstrapSpace = {
|
|
|
617
531
|
vault: import("@endo/exo").Guarded<{
|
|
618
532
|
getPublicTopics(): {
|
|
619
533
|
vault: {
|
|
620
|
-
/**
|
|
621
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
622
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
623
|
-
* vat config.
|
|
624
|
-
*
|
|
625
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
626
|
-
*
|
|
627
|
-
* In production called by @agoric/vats to bootstrap.
|
|
628
|
-
*/
|
|
629
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
630
534
|
description: string;
|
|
631
535
|
subscriber: Subscriber<VaultNotification>;
|
|
632
536
|
storagePath: Promise<string>;
|
|
@@ -646,16 +550,6 @@ export type EconomyBootstrapSpace = {
|
|
|
646
550
|
makeVaultInvitation(): Promise<Invitation<{
|
|
647
551
|
publicSubscribers: {
|
|
648
552
|
vault: {
|
|
649
|
-
/**
|
|
650
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
651
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
652
|
-
* vat config.
|
|
653
|
-
*
|
|
654
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
655
|
-
*
|
|
656
|
-
* In production called by @agoric/vats to bootstrap.
|
|
657
|
-
*/
|
|
658
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
659
553
|
description: string;
|
|
660
554
|
subscriber: Subscriber<VaultNotification>;
|
|
661
555
|
storagePath: Promise<string>;
|
|
@@ -669,16 +563,6 @@ export type EconomyBootstrapSpace = {
|
|
|
669
563
|
vault: import("@endo/exo").Guarded<{
|
|
670
564
|
getPublicTopics(): {
|
|
671
565
|
vault: {
|
|
672
|
-
/**
|
|
673
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
674
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
675
|
-
* vat config.
|
|
676
|
-
*
|
|
677
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
678
|
-
*
|
|
679
|
-
* In production called by @agoric/vats to bootstrap.
|
|
680
|
-
*/
|
|
681
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
682
566
|
description: string;
|
|
683
567
|
subscriber: Subscriber<VaultNotification>;
|
|
684
568
|
storagePath: Promise<string>;
|
|
@@ -710,7 +594,7 @@ export type EconomyBootstrapSpace = {
|
|
|
710
594
|
getDiscountStep: () => bigint;
|
|
711
595
|
getAuctionStartDelay: () => RelativeTime;
|
|
712
596
|
getPriceLockPeriod: () => RelativeTime;
|
|
713
|
-
makeBidInvitation(collateralBrand:
|
|
597
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, import("../auction/auctionBook.js").OfferSpec>>;
|
|
714
598
|
getSchedules(): {
|
|
715
599
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
716
600
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
@@ -750,20 +634,10 @@ export type EconomyBootstrapSpace = {
|
|
|
750
634
|
setOfferFilter: (strings: any) => Promise<void>;
|
|
751
635
|
}>;
|
|
752
636
|
publicFacet: import("@endo/exo").Guarded<{
|
|
753
|
-
getCollateralManager(brandIn:
|
|
637
|
+
getCollateralManager(brandIn: Brand): import("@endo/exo").Guarded<{
|
|
754
638
|
makeVaultInvitation(): Promise<Invitation<{
|
|
755
639
|
publicSubscribers: {
|
|
756
640
|
vault: {
|
|
757
|
-
/**
|
|
758
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
759
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
760
|
-
* vat config.
|
|
761
|
-
*
|
|
762
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
763
|
-
*
|
|
764
|
-
* In production called by @agoric/vats to bootstrap.
|
|
765
|
-
*/
|
|
766
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
767
641
|
description: string;
|
|
768
642
|
subscriber: Subscriber<VaultNotification>;
|
|
769
643
|
storagePath: Promise<string>;
|
|
@@ -777,16 +651,6 @@ export type EconomyBootstrapSpace = {
|
|
|
777
651
|
vault: import("@endo/exo").Guarded<{
|
|
778
652
|
getPublicTopics(): {
|
|
779
653
|
vault: {
|
|
780
|
-
/**
|
|
781
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
782
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
783
|
-
* vat config.
|
|
784
|
-
*
|
|
785
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
786
|
-
*
|
|
787
|
-
* In production called by @agoric/vats to bootstrap.
|
|
788
|
-
*/
|
|
789
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
790
654
|
description: string;
|
|
791
655
|
subscriber: Subscriber<VaultNotification>;
|
|
792
656
|
storagePath: Promise<string>;
|
|
@@ -810,19 +674,20 @@ export type EconomyBootstrapSpace = {
|
|
|
810
674
|
}>;
|
|
811
675
|
getDebtIssuer(): globalThis.Issuer<"nat">;
|
|
812
676
|
getSubscription({ collateralBrand }: {
|
|
813
|
-
collateralBrand:
|
|
677
|
+
collateralBrand: Brand;
|
|
814
678
|
}): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
815
679
|
getPublicTopics(): {
|
|
816
680
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
817
681
|
};
|
|
818
682
|
getElectorateSubscription(): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
819
683
|
getGovernedParams({ collateralBrand }: {
|
|
820
|
-
collateralBrand:
|
|
684
|
+
collateralBrand: Brand;
|
|
821
685
|
}): ERef<globalThis.ParamStateRecord>;
|
|
822
686
|
getInvitationAmount(name: string): globalThis.Amount<"set">;
|
|
823
687
|
}>;
|
|
824
688
|
}>>>;
|
|
825
689
|
auctioneerKit: Promise<AuctioneerKit>;
|
|
690
|
+
newAuctioneerKit: Promise<AuctioneerKit>;
|
|
826
691
|
minInitialDebt: Promise<bigint>;
|
|
827
692
|
};
|
|
828
693
|
produce: {
|
|
@@ -840,17 +705,7 @@ export type EconomyBootstrapSpace = {
|
|
|
840
705
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
841
706
|
}>;
|
|
842
707
|
startPeriodicCollection: (debugName: string, collectorP: ERef<import("../feeDistributor.js").FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
843
|
-
makeDepositFacetDestination: (depositFacet: {
|
|
844
|
-
/**
|
|
845
|
-
* Deposit all the contents of payment
|
|
846
|
-
* into the purse that made this facet, returning the amount. If the optional
|
|
847
|
-
* argument `optAmount` does not equal the amount of digital assets in the
|
|
848
|
-
* payment, throw an error.
|
|
849
|
-
*
|
|
850
|
-
* If payment is a promise, throw an error.
|
|
851
|
-
*/
|
|
852
|
-
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
853
|
-
}) => {
|
|
708
|
+
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
854
709
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
855
710
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
856
711
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -861,7 +716,7 @@ export type EconomyBootstrapSpace = {
|
|
|
861
716
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
862
717
|
}>;
|
|
863
718
|
setDestinations: (newDestinations: Record<string, ERef<import("../feeDistributor.js").FeeDestination>>) => Promise<void>;
|
|
864
|
-
setKeywordShares: (newShares: Record<
|
|
719
|
+
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
865
720
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
866
721
|
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<import("../feeDistributor.js").CollectibleContractFacet>) => {
|
|
867
722
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
@@ -869,17 +724,7 @@ export type EconomyBootstrapSpace = {
|
|
|
869
724
|
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
870
725
|
}>;
|
|
871
726
|
startPeriodicCollection: (debugName: string, collectorP: ERef<import("../feeDistributor.js").FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
872
|
-
makeDepositFacetDestination: (depositFacet: {
|
|
873
|
-
/**
|
|
874
|
-
* Deposit all the contents of payment
|
|
875
|
-
* into the purse that made this facet, returning the amount. If the optional
|
|
876
|
-
* argument `optAmount` does not equal the amount of digital assets in the
|
|
877
|
-
* payment, throw an error.
|
|
878
|
-
*
|
|
879
|
-
* If payment is a promise, throw an error.
|
|
880
|
-
*/
|
|
881
|
-
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
882
|
-
}) => {
|
|
727
|
+
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
883
728
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
884
729
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
885
730
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
@@ -890,13 +735,13 @@ export type EconomyBootstrapSpace = {
|
|
|
890
735
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
891
736
|
}>;
|
|
892
737
|
setDestinations: (newDestinations: Record<string, ERef<import("../feeDistributor.js").FeeDestination>>) => Promise<void>;
|
|
893
|
-
setKeywordShares: (newShares: Record<
|
|
738
|
+
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
894
739
|
}>;
|
|
895
740
|
publicFacet: {
|
|
896
|
-
distributeFees: (payment:
|
|
741
|
+
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
897
742
|
getKeywordShares: () => Record<string, bigint>;
|
|
898
743
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
899
|
-
distributeFees: (payment:
|
|
744
|
+
distributeFees: (payment: Payment<"nat">) => Promise<void>;
|
|
900
745
|
getKeywordShares: () => Record<string, bigint>;
|
|
901
746
|
}>;
|
|
902
747
|
}>>>;
|
|
@@ -904,7 +749,7 @@ export type EconomyBootstrapSpace = {
|
|
|
904
749
|
psmKit: Producer<globalThis.MapStore<globalThis.Brand, PSMKit>>;
|
|
905
750
|
anchorBalancePayments: Producer<globalThis.MapStore<globalThis.Brand, globalThis.Payment<"nat">>>;
|
|
906
751
|
econCharterKit: Producer<EconCharterStartResult>;
|
|
907
|
-
reserveKit: Producer<globalThis.GovernanceFacetKit<(zcf: ZCF<
|
|
752
|
+
reserveKit: Producer<globalThis.GovernanceFacetKit<(zcf: ZCF<GovernanceTerms<{}> & {
|
|
908
753
|
governedApis: ["burnFeesToReduceShortfall"];
|
|
909
754
|
}>, privateArgs: {
|
|
910
755
|
feeMintAccess: FeeMintAccess;
|
|
@@ -913,11 +758,11 @@ export type EconomyBootstrapSpace = {
|
|
|
913
758
|
storageNode: ERef<StorageNode>;
|
|
914
759
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
915
760
|
creatorFacet: globalThis.GovernedCreatorFacet<import("@endo/exo").Guarded<{
|
|
916
|
-
addIssuer(issuer:
|
|
761
|
+
addIssuer(issuer: Issuer, keyword: string): Promise<void>;
|
|
917
762
|
getAllocations(): AmountKeywordRecord;
|
|
918
763
|
makeShortfallReportingInvitation(): Promise<Invitation<import("@endo/exo").Guarded<{
|
|
919
|
-
increaseLiquidationShortfall(shortfall:
|
|
920
|
-
reduceLiquidationShortfall(reduction:
|
|
764
|
+
increaseLiquidationShortfall(shortfall: Amount<"nat">): void;
|
|
765
|
+
reduceLiquidationShortfall(reduction: Amount<"nat">): void;
|
|
921
766
|
}>, undefined>>;
|
|
922
767
|
}>>;
|
|
923
768
|
publicFacet: globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
@@ -927,7 +772,7 @@ export type EconomyBootstrapSpace = {
|
|
|
927
772
|
};
|
|
928
773
|
}>>;
|
|
929
774
|
}>>>;
|
|
930
|
-
vaultFactoryKit: Producer<globalThis.GovernanceFacetKit<(zcf:
|
|
775
|
+
vaultFactoryKit: Producer<globalThis.GovernanceFacetKit<(zcf: VaultFactoryZCF, privateArgs: {
|
|
931
776
|
feeMintAccess: FeeMintAccess;
|
|
932
777
|
initialPoserInvitation: Invitation<unknown, undefined>;
|
|
933
778
|
initialShortfallInvitation: Invitation<unknown, undefined>;
|
|
@@ -956,21 +801,11 @@ export type EconomyBootstrapSpace = {
|
|
|
956
801
|
}>;
|
|
957
802
|
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
958
803
|
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
959
|
-
addVaultType(collateralIssuer:
|
|
804
|
+
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
960
805
|
getGovernedParams(): import("../vaultFactory/vaultManager.js").GovernedParamGetters;
|
|
961
806
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
962
807
|
publicSubscribers: {
|
|
963
808
|
vault: {
|
|
964
|
-
/**
|
|
965
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
966
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
967
|
-
* vat config.
|
|
968
|
-
*
|
|
969
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
970
|
-
*
|
|
971
|
-
* In production called by @agoric/vats to bootstrap.
|
|
972
|
-
*/
|
|
973
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
974
809
|
description: string;
|
|
975
810
|
subscriber: Subscriber<VaultNotification>;
|
|
976
811
|
storagePath: Promise<string>;
|
|
@@ -984,16 +819,6 @@ export type EconomyBootstrapSpace = {
|
|
|
984
819
|
vault: import("@endo/exo").Guarded<{
|
|
985
820
|
getPublicTopics(): {
|
|
986
821
|
vault: {
|
|
987
|
-
/**
|
|
988
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
989
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
990
|
-
* vat config.
|
|
991
|
-
*
|
|
992
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
993
|
-
*
|
|
994
|
-
* In production called by @agoric/vats to bootstrap.
|
|
995
|
-
*/
|
|
996
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
997
822
|
description: string;
|
|
998
823
|
subscriber: Subscriber<VaultNotification>;
|
|
999
824
|
storagePath: Promise<string>;
|
|
@@ -1013,16 +838,6 @@ export type EconomyBootstrapSpace = {
|
|
|
1013
838
|
makeVaultInvitation(): Promise<Invitation<{
|
|
1014
839
|
publicSubscribers: {
|
|
1015
840
|
vault: {
|
|
1016
|
-
/**
|
|
1017
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1018
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
1019
|
-
* vat config.
|
|
1020
|
-
*
|
|
1021
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
1022
|
-
*
|
|
1023
|
-
* In production called by @agoric/vats to bootstrap.
|
|
1024
|
-
*/
|
|
1025
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
1026
841
|
description: string;
|
|
1027
842
|
subscriber: Subscriber<VaultNotification>;
|
|
1028
843
|
storagePath: Promise<string>;
|
|
@@ -1036,16 +851,6 @@ export type EconomyBootstrapSpace = {
|
|
|
1036
851
|
vault: import("@endo/exo").Guarded<{
|
|
1037
852
|
getPublicTopics(): {
|
|
1038
853
|
vault: {
|
|
1039
|
-
/**
|
|
1040
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1041
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
1042
|
-
* vat config.
|
|
1043
|
-
*
|
|
1044
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
1045
|
-
*
|
|
1046
|
-
* In production called by @agoric/vats to bootstrap.
|
|
1047
|
-
*/
|
|
1048
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
1049
854
|
description: string;
|
|
1050
855
|
subscriber: Subscriber<VaultNotification>;
|
|
1051
856
|
storagePath: Promise<string>;
|
|
@@ -1077,7 +882,7 @@ export type EconomyBootstrapSpace = {
|
|
|
1077
882
|
getDiscountStep: () => bigint;
|
|
1078
883
|
getAuctionStartDelay: () => RelativeTime;
|
|
1079
884
|
getPriceLockPeriod: () => RelativeTime;
|
|
1080
|
-
makeBidInvitation(collateralBrand:
|
|
885
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, import("../auction/auctionBook.js").OfferSpec>>;
|
|
1081
886
|
getSchedules(): {
|
|
1082
887
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
1083
888
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
@@ -1117,20 +922,10 @@ export type EconomyBootstrapSpace = {
|
|
|
1117
922
|
setOfferFilter: (strings: any) => Promise<void>;
|
|
1118
923
|
}>;
|
|
1119
924
|
publicFacet: import("@endo/exo").Guarded<{
|
|
1120
|
-
getCollateralManager(brandIn:
|
|
925
|
+
getCollateralManager(brandIn: Brand): import("@endo/exo").Guarded<{
|
|
1121
926
|
makeVaultInvitation(): Promise<Invitation<{
|
|
1122
927
|
publicSubscribers: {
|
|
1123
928
|
vault: {
|
|
1124
|
-
/**
|
|
1125
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1126
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
1127
|
-
* vat config.
|
|
1128
|
-
*
|
|
1129
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
1130
|
-
*
|
|
1131
|
-
* In production called by @agoric/vats to bootstrap.
|
|
1132
|
-
*/
|
|
1133
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
1134
929
|
description: string;
|
|
1135
930
|
subscriber: Subscriber<VaultNotification>;
|
|
1136
931
|
storagePath: Promise<string>;
|
|
@@ -1144,16 +939,6 @@ export type EconomyBootstrapSpace = {
|
|
|
1144
939
|
vault: import("@endo/exo").Guarded<{
|
|
1145
940
|
getPublicTopics(): {
|
|
1146
941
|
vault: {
|
|
1147
|
-
/**
|
|
1148
|
-
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1149
|
-
* Each function is passed a set of powers for reading from and writing to the
|
|
1150
|
-
* vat config.
|
|
1151
|
-
*
|
|
1152
|
-
* Each of the things they produce they're responsible for resolving or setting.
|
|
1153
|
-
*
|
|
1154
|
-
* In production called by @agoric/vats to bootstrap.
|
|
1155
|
-
*/
|
|
1156
|
-
/** @param {EconomyBootstrapPowers} powers */
|
|
1157
942
|
description: string;
|
|
1158
943
|
subscriber: Subscriber<VaultNotification>;
|
|
1159
944
|
storagePath: Promise<string>;
|
|
@@ -1177,47 +962,48 @@ export type EconomyBootstrapSpace = {
|
|
|
1177
962
|
}>;
|
|
1178
963
|
getDebtIssuer(): globalThis.Issuer<"nat">;
|
|
1179
964
|
getSubscription({ collateralBrand }: {
|
|
1180
|
-
collateralBrand:
|
|
965
|
+
collateralBrand: Brand;
|
|
1181
966
|
}): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
1182
967
|
getPublicTopics(): {
|
|
1183
968
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
1184
969
|
};
|
|
1185
970
|
getElectorateSubscription(): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
1186
971
|
getGovernedParams({ collateralBrand }: {
|
|
1187
|
-
collateralBrand:
|
|
972
|
+
collateralBrand: Brand;
|
|
1188
973
|
}): ERef<globalThis.ParamStateRecord>;
|
|
1189
974
|
getInvitationAmount(name: string): globalThis.Amount<"set">;
|
|
1190
975
|
}>;
|
|
1191
976
|
}>>>;
|
|
1192
977
|
auctioneerKit: Producer<AuctioneerKit>;
|
|
978
|
+
newAuctioneerKit: Producer<AuctioneerKit>;
|
|
1193
979
|
minInitialDebt: Producer<bigint>;
|
|
1194
980
|
};
|
|
1195
981
|
};
|
|
1196
982
|
export type EconCharterStartResult = {
|
|
1197
983
|
instance: import("@agoric/zoe/src/zoeService/utils.js").Instance<(zcf: ZCF<{
|
|
1198
|
-
binaryVoteCounterInstallation: Installation
|
|
984
|
+
binaryVoteCounterInstallation: Installation;
|
|
1199
985
|
}>, privateArgs: undefined, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
1200
986
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
1201
|
-
addInstance: (governedInstance: Instance, governorFacet:
|
|
987
|
+
addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
1202
988
|
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
1203
989
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
1204
990
|
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
1205
991
|
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1206
|
-
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline:
|
|
992
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1207
993
|
}>;
|
|
1208
994
|
}, undefined>>;
|
|
1209
995
|
}>;
|
|
1210
996
|
}>>;
|
|
1211
997
|
adminFacet: import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<(zcf: ZCF<{
|
|
1212
|
-
binaryVoteCounterInstallation: Installation
|
|
998
|
+
binaryVoteCounterInstallation: Installation;
|
|
1213
999
|
}>, privateArgs: undefined, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
1214
1000
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
1215
|
-
addInstance: (governedInstance: Instance, governorFacet:
|
|
1001
|
+
addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
1216
1002
|
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
1217
1003
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
1218
1004
|
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
1219
1005
|
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1220
|
-
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline:
|
|
1006
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1221
1007
|
}>;
|
|
1222
1008
|
}, undefined>>;
|
|
1223
1009
|
}>;
|
|
@@ -1226,12 +1012,12 @@ export type EconCharterStartResult = {
|
|
|
1226
1012
|
publicFacet: {};
|
|
1227
1013
|
} & {
|
|
1228
1014
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
1229
|
-
addInstance: (governedInstance: Instance, governorFacet:
|
|
1015
|
+
addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
1230
1016
|
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
1231
1017
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
1232
1018
|
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
1233
1019
|
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1234
|
-
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline:
|
|
1020
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1235
1021
|
}>;
|
|
1236
1022
|
}, undefined>>;
|
|
1237
1023
|
}>;
|