@agoric/inter-protocol 0.16.2-dev-d15cb41.0 → 0.16.2-dev-e456308.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 +2 -2
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +2 -0
- package/src/auction/auctioneer.d.ts +2 -2
- package/src/auction/params.d.ts +5 -5
- package/src/auction/params.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +3 -3
- package/src/feeDistributor.d.ts +12 -12
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.d.ts +1 -1
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.d.ts +650 -106
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.js +3 -1
- package/src/proposals/price-feed-proposal.d.ts +2 -2
- package/src/proposals/price-feed-proposal.d.ts.map +1 -1
- package/src/proposals/utils.d.ts +3 -19
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/provisionPool.d.ts +19 -19
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPoolKit.d.ts +106 -181
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +1 -1
- package/src/psm/psm.d.ts +3 -3
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +1 -0
- package/src/reserve/assetReserve.d.ts +1 -1
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/vaultFactory/burn.d.ts.map +1 -1
- package/src/vaultFactory/burn.js +1 -0
- package/src/vaultFactory/liquidation.d.ts +10 -58
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +20 -20
- 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 +48 -48
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/types.d.ts +7 -7
- package/src/vaultFactory/vault.d.ts +7 -7
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +1 -0
- package/src/vaultFactory/vaultDirector.d.ts +21 -45
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +27 -19
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -0
- package/src/vaultFactory/vaultHolder.d.ts +15 -15
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.d.ts +7 -7
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.d.ts +36 -36
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
|
@@ -6,8 +6,72 @@ export function setupReserve({ consume: { board, feeMintAccess: feeMintAccessP,
|
|
|
6
6
|
governedApis: ["burnFeesToReduceShortfall"];
|
|
7
7
|
}>, privateArgs: {
|
|
8
8
|
feeMintAccess: FeeMintAccess;
|
|
9
|
-
initialPoserInvitation: Invitation
|
|
10
|
-
marshaller: ERef<
|
|
9
|
+
initialPoserInvitation: Invitation;
|
|
10
|
+
marshaller: ERef<
|
|
11
|
+
/** @import {start as VFStart} from '../vaultFactory/vaultFactory.js' */
|
|
12
|
+
/** @typedef {Awaited<ReturnType<VFStart>>['publicFacet']} VaultFactoryPublicFacet */
|
|
13
|
+
/**
|
|
14
|
+
* @typedef {object} PSMKit
|
|
15
|
+
* @property {string} label
|
|
16
|
+
* @property {Instance} psm
|
|
17
|
+
* @property {Instance} psmGovernor
|
|
18
|
+
* @property {Awaited<
|
|
19
|
+
* ReturnType<
|
|
20
|
+
* Awaited<
|
|
21
|
+
* ReturnType<import('../psm/psm.js')['start']>
|
|
22
|
+
* >['creatorFacet']['getLimitedCreatorFacet']
|
|
23
|
+
* >
|
|
24
|
+
* >} psmCreatorFacet
|
|
25
|
+
* @property {GovernorCreatorFacet<import('../../src/psm/psm.js')['start']>} psmGovernorCreatorFacet
|
|
26
|
+
* @property {AdminFacet} psmAdminFacet
|
|
27
|
+
*/
|
|
28
|
+
/** @typedef {GovernanceFacetKit<import('../auction/auctioneer.js').start>} AuctioneerKit */
|
|
29
|
+
/**
|
|
30
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
31
|
+
*
|
|
32
|
+
* @typedef {PromiseSpaceOf<{
|
|
33
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
34
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
35
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
36
|
+
* typeof import('../feeDistributor.js').start
|
|
37
|
+
* >;
|
|
38
|
+
* periodicFeeCollectors: MapStore<
|
|
39
|
+
* number,
|
|
40
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
41
|
+
* >;
|
|
42
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
43
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
44
|
+
* econCharterKit: EconCharterStartResult;
|
|
45
|
+
* reserveKit: GovernanceFacetKit<
|
|
46
|
+
* import('../reserve/assetReserve.js')['start']
|
|
47
|
+
* >;
|
|
48
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
49
|
+
* auctioneerKit: AuctioneerKit;
|
|
50
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
51
|
+
* minInitialDebt: NatValue;
|
|
52
|
+
* }>} EconomyBootstrapSpace
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* @typedef {StartedInstanceKit<
|
|
56
|
+
* import('../econCommitteeCharter.js')['start']
|
|
57
|
+
* >} EconCharterStartResult
|
|
58
|
+
*/
|
|
59
|
+
/**
|
|
60
|
+
* @typedef {StartedInstanceKit<
|
|
61
|
+
* import('@agoric/governance/src/committee.js')['start']
|
|
62
|
+
* >} CommitteeStartResult
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
66
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
67
|
+
* vat config.
|
|
68
|
+
*
|
|
69
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
70
|
+
*
|
|
71
|
+
* In production called by @agoric/vats to bootstrap.
|
|
72
|
+
*/
|
|
73
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
74
|
+
Marshaller>;
|
|
11
75
|
storageNode: ERef<StorageNode>;
|
|
12
76
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
13
77
|
creatorFacet: globalThis.GovernedCreatorFacet<import("@endo/exo").Guarded<{
|
|
@@ -23,7 +87,7 @@ export function setupReserve({ consume: { board, feeMintAccess: feeMintAccessP,
|
|
|
23
87
|
getPublicTopics(): {
|
|
24
88
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
25
89
|
};
|
|
26
|
-
}>>;
|
|
90
|
+
}>>; /** @param {EconomyBootstrapPowers} powers */
|
|
27
91
|
}>>>;
|
|
28
92
|
export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers["consume"], { interestTiming, options: { referencedUi }, }: {
|
|
29
93
|
interestTiming?: InterestTiming | undefined;
|
|
@@ -32,7 +96,7 @@ export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers["cons
|
|
|
32
96
|
} | undefined;
|
|
33
97
|
} | undefined, minInitialDebt: Amount<"nat">): Promise<{
|
|
34
98
|
vaultFactoryTerms: {
|
|
35
|
-
auctioneerPublicFacet: ERef<globalThis.GovernedPublicFacet<{
|
|
99
|
+
auctioneerPublicFacet: globalThis.ERef<globalThis.GovernedPublicFacet<{
|
|
36
100
|
getElectorate: () => globalThis.Amount<"set">;
|
|
37
101
|
getStartFrequency: () => RelativeTime;
|
|
38
102
|
getClockStep: () => RelativeTime;
|
|
@@ -46,8 +110,8 @@ export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers["cons
|
|
|
46
110
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
47
111
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
48
112
|
};
|
|
49
|
-
getScheduleUpdates(): Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
50
|
-
getBookDataUpdates(brand: any): Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
113
|
+
getScheduleUpdates(): globalThis.Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
114
|
+
getBookDataUpdates(brand: any): globalThis.Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
51
115
|
getPublicTopics(brand: any): {
|
|
52
116
|
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
53
117
|
} | {
|
|
@@ -57,14 +121,14 @@ export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers["cons
|
|
|
57
121
|
goal: globalThis.Amount<"nat">;
|
|
58
122
|
}>>;
|
|
59
123
|
}>>;
|
|
60
|
-
priceAuthority: ERef<PriceAuthority>;
|
|
124
|
+
priceAuthority: globalThis.ERef<PriceAuthority>;
|
|
61
125
|
reservePublicFacet: globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
62
126
|
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
63
127
|
getPublicTopics(): {
|
|
64
128
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
65
129
|
};
|
|
66
130
|
}>>;
|
|
67
|
-
timerService: ERef<import("@agoric/time").TimerService>;
|
|
131
|
+
timerService: globalThis.ERef<import("@agoric/time").TimerService>;
|
|
68
132
|
governedParams: {
|
|
69
133
|
Electorate: {
|
|
70
134
|
type: "invitation";
|
|
@@ -112,7 +176,7 @@ export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers["cons
|
|
|
112
176
|
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
113
177
|
unserialize(data: any): any;
|
|
114
178
|
}>;
|
|
115
|
-
storageNode:
|
|
179
|
+
storageNode: globalThis.StorageNode;
|
|
116
180
|
};
|
|
117
181
|
}>;
|
|
118
182
|
export function startVaultFactory({ consume, produce: { vaultFactoryKit }, brand: { consume: { [Stable.symbol]: centralBrandP }, }, instance: { produce: instanceProduce }, installation: { consume: { VaultFactory: vaultFactoryInstallation, contractGovernor: contractGovernorInstallation, }, }, }: EconomyBootstrapPowers, config: {
|
|
@@ -132,11 +196,15 @@ export function startAuctioneer({ consume: { zoe, board, chainTimerService, pric
|
|
|
132
196
|
}): Promise<void>;
|
|
133
197
|
export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF, privateArgs: {
|
|
134
198
|
feeMintAccess: FeeMintAccess;
|
|
135
|
-
initialPoserInvitation: Invitation
|
|
136
|
-
|
|
199
|
+
initialPoserInvitation: Invitation /**
|
|
200
|
+
* @typedef {StartedInstanceKit<
|
|
201
|
+
* import('../econCommitteeCharter.js')['start']
|
|
202
|
+
* >} EconCharterStartResult
|
|
203
|
+
*/;
|
|
204
|
+
initialShortfallInvitation: Invitation;
|
|
137
205
|
storageNode: ERef<StorageNode>;
|
|
138
|
-
marshaller: ERef<Marshaller
|
|
139
|
-
}, baggage:
|
|
206
|
+
marshaller: ERef<Marshaller>;
|
|
207
|
+
}, baggage: import("@agoric/swingset-liveslots").Baggage) => Promise<{
|
|
140
208
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
141
209
|
getParamMgrRetriever: () => {
|
|
142
210
|
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
@@ -159,17 +227,23 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
159
227
|
}>;
|
|
160
228
|
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
161
229
|
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
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<{
|
|
230
|
+
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
167
231
|
getGovernedParams(): import("../vaultFactory/vaultManager.js").GovernedParamGetters;
|
|
168
232
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
169
233
|
publicSubscribers: {
|
|
170
234
|
vault: {
|
|
171
235
|
description: string;
|
|
172
|
-
|
|
236
|
+
/**
|
|
237
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
238
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
239
|
+
* vat config.
|
|
240
|
+
*
|
|
241
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
242
|
+
*
|
|
243
|
+
* In production called by @agoric/vats to bootstrap.
|
|
244
|
+
*/
|
|
245
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
246
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
173
247
|
storagePath: Promise<string>;
|
|
174
248
|
};
|
|
175
249
|
};
|
|
@@ -182,7 +256,17 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
182
256
|
getPublicTopics(): {
|
|
183
257
|
vault: {
|
|
184
258
|
description: string;
|
|
185
|
-
|
|
259
|
+
/**
|
|
260
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
261
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
262
|
+
* vat config.
|
|
263
|
+
*
|
|
264
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
265
|
+
*
|
|
266
|
+
* In production called by @agoric/vats to bootstrap.
|
|
267
|
+
*/
|
|
268
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
269
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
186
270
|
storagePath: Promise<string>;
|
|
187
271
|
};
|
|
188
272
|
};
|
|
@@ -201,7 +285,17 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
201
285
|
publicSubscribers: {
|
|
202
286
|
vault: {
|
|
203
287
|
description: string;
|
|
204
|
-
|
|
288
|
+
/**
|
|
289
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
290
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
291
|
+
* vat config.
|
|
292
|
+
*
|
|
293
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
294
|
+
*
|
|
295
|
+
* In production called by @agoric/vats to bootstrap.
|
|
296
|
+
*/
|
|
297
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
298
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
205
299
|
storagePath: Promise<string>;
|
|
206
300
|
};
|
|
207
301
|
};
|
|
@@ -214,7 +308,17 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
214
308
|
getPublicTopics(): {
|
|
215
309
|
vault: {
|
|
216
310
|
description: string;
|
|
217
|
-
|
|
311
|
+
/**
|
|
312
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
313
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
314
|
+
* vat config.
|
|
315
|
+
*
|
|
316
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
317
|
+
*
|
|
318
|
+
* In production called by @agoric/vats to bootstrap.
|
|
319
|
+
*/
|
|
320
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
321
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
218
322
|
storagePath: Promise<string>;
|
|
219
323
|
};
|
|
220
324
|
};
|
|
@@ -235,7 +339,7 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
235
339
|
};
|
|
236
340
|
}>;
|
|
237
341
|
lockOraclePrices(): PriceQuote;
|
|
238
|
-
liquidateVaults(auctionPF: ERef<globalThis.GovernedPublicFacet<{
|
|
342
|
+
liquidateVaults(auctionPF: globalThis.ERef<globalThis.GovernedPublicFacet<{
|
|
239
343
|
getElectorate: () => globalThis.Amount<"set">;
|
|
240
344
|
getStartFrequency: () => RelativeTime;
|
|
241
345
|
getClockStep: () => RelativeTime;
|
|
@@ -249,8 +353,8 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
249
353
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
250
354
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
251
355
|
};
|
|
252
|
-
getScheduleUpdates(): Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
253
|
-
getBookDataUpdates(brand: any): Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
356
|
+
getScheduleUpdates(): globalThis.Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
357
|
+
getBookDataUpdates(brand: any): globalThis.Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
254
358
|
getPublicTopics(brand: any): {
|
|
255
359
|
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
256
360
|
} | {
|
|
@@ -279,7 +383,7 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
279
383
|
wake: (timestamp: any) => any;
|
|
280
384
|
}>;
|
|
281
385
|
}>;
|
|
282
|
-
getGovernedApis(): ERef<globalThis.GovernedApis>;
|
|
386
|
+
getGovernedApis(): globalThis.ERef<globalThis.GovernedApis>;
|
|
283
387
|
getGovernedApiNames(): never[];
|
|
284
388
|
setOfferFilter: (strings: any) => Promise<void>;
|
|
285
389
|
}>;
|
|
@@ -289,7 +393,17 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
289
393
|
publicSubscribers: {
|
|
290
394
|
vault: {
|
|
291
395
|
description: string;
|
|
292
|
-
|
|
396
|
+
/**
|
|
397
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
398
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
399
|
+
* vat config.
|
|
400
|
+
*
|
|
401
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
402
|
+
*
|
|
403
|
+
* In production called by @agoric/vats to bootstrap.
|
|
404
|
+
*/
|
|
405
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
406
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
293
407
|
storagePath: Promise<string>;
|
|
294
408
|
};
|
|
295
409
|
};
|
|
@@ -302,7 +416,17 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
302
416
|
getPublicTopics(): {
|
|
303
417
|
vault: {
|
|
304
418
|
description: string;
|
|
305
|
-
|
|
419
|
+
/**
|
|
420
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
421
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
422
|
+
* vat config.
|
|
423
|
+
*
|
|
424
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
425
|
+
*
|
|
426
|
+
* In production called by @agoric/vats to bootstrap.
|
|
427
|
+
*/
|
|
428
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
429
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
306
430
|
storagePath: Promise<string>;
|
|
307
431
|
};
|
|
308
432
|
};
|
|
@@ -325,14 +449,14 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF,
|
|
|
325
449
|
getDebtIssuer(): globalThis.Issuer<"nat">;
|
|
326
450
|
getSubscription({ collateralBrand }: {
|
|
327
451
|
collateralBrand: Brand;
|
|
328
|
-
}): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
452
|
+
}): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
329
453
|
getPublicTopics(): {
|
|
330
454
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
331
455
|
};
|
|
332
|
-
getElectorateSubscription(): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
456
|
+
getElectorateSubscription(): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
333
457
|
getGovernedParams({ collateralBrand }: {
|
|
334
458
|
collateralBrand: Brand;
|
|
335
|
-
}): ERef<globalThis.ParamStateRecord>;
|
|
459
|
+
}): globalThis.ERef<globalThis.ParamStateRecord>;
|
|
336
460
|
getInvitationAmount(name: string): globalThis.Amount<"set">;
|
|
337
461
|
}>;
|
|
338
462
|
}>>>["publicFacet"];
|
|
@@ -381,8 +505,8 @@ export type AuctioneerKit = GovernanceFacetKit<(zcf: ZCF<globalThis.GovernanceTe
|
|
|
381
505
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
382
506
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
383
507
|
};
|
|
384
|
-
getScheduleUpdates(): Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
385
|
-
getBookDataUpdates(brand: any): Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
508
|
+
getScheduleUpdates(): globalThis.Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
509
|
+
getBookDataUpdates(brand: any): globalThis.Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
386
510
|
getPublicTopics(brand: any): {
|
|
387
511
|
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
388
512
|
} | {
|
|
@@ -407,16 +531,64 @@ export type EconomyBootstrapSpace = {
|
|
|
407
531
|
economicCommitteeCreatorFacet: Promise<import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet>;
|
|
408
532
|
feeDistributorKit: Promise<StartedInstanceKit<(zcf: ZCF<{
|
|
409
533
|
keywordShares: Record<string, bigint>;
|
|
410
|
-
timerService: ERef<import("@agoric/time").TimerService>;
|
|
534
|
+
timerService: globalThis.ERef<import("@agoric/time").TimerService>;
|
|
411
535
|
collectionInterval: RelativeTime;
|
|
412
536
|
}>) => Promise<{
|
|
413
537
|
creatorFacet: {
|
|
414
|
-
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<
|
|
415
|
-
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
538
|
+
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
539
|
+
collectFees: () => Promise<globalThis.Payment<any>>; /**
|
|
540
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
541
|
+
*
|
|
542
|
+
* @typedef {PromiseSpaceOf<{
|
|
543
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
544
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
545
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
546
|
+
* typeof import('../feeDistributor.js').start
|
|
547
|
+
* >;
|
|
548
|
+
* periodicFeeCollectors: MapStore<
|
|
549
|
+
* number,
|
|
550
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
551
|
+
* >;
|
|
552
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
553
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
554
|
+
* econCharterKit: EconCharterStartResult;
|
|
555
|
+
* reserveKit: GovernanceFacetKit<
|
|
556
|
+
* import('../reserve/assetReserve.js')['start']
|
|
557
|
+
* >;
|
|
558
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
559
|
+
* auctioneerKit: AuctioneerKit;
|
|
560
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
561
|
+
* minInitialDebt: NatValue;
|
|
562
|
+
* }>} EconomyBootstrapSpace
|
|
563
|
+
*/
|
|
416
564
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
417
|
-
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
565
|
+
collectFees: () => Promise<globalThis.Payment<any>>; /**
|
|
566
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
567
|
+
*
|
|
568
|
+
* @typedef {PromiseSpaceOf<{
|
|
569
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
570
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
571
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
572
|
+
* typeof import('../feeDistributor.js').start
|
|
573
|
+
* >;
|
|
574
|
+
* periodicFeeCollectors: MapStore<
|
|
575
|
+
* number,
|
|
576
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
577
|
+
* >;
|
|
578
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
579
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
580
|
+
* econCharterKit: EconCharterStartResult;
|
|
581
|
+
* reserveKit: GovernanceFacetKit<
|
|
582
|
+
* import('../reserve/assetReserve.js')['start']
|
|
583
|
+
* >;
|
|
584
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
585
|
+
* auctioneerKit: AuctioneerKit;
|
|
586
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
587
|
+
* minInitialDebt: NatValue;
|
|
588
|
+
* }>} EconomyBootstrapSpace
|
|
589
|
+
*/
|
|
418
590
|
}>;
|
|
419
|
-
startPeriodicCollection: (debugName: string, collectorP: ERef<
|
|
591
|
+
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
420
592
|
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
421
593
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
422
594
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
@@ -427,15 +599,63 @@ export type EconomyBootstrapSpace = {
|
|
|
427
599
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
428
600
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
429
601
|
}>;
|
|
430
|
-
setDestinations: (newDestinations: Record<
|
|
602
|
+
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
431
603
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
432
604
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
433
|
-
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<
|
|
434
|
-
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
605
|
+
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
606
|
+
collectFees: () => Promise<globalThis.Payment<any>>; /**
|
|
607
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
608
|
+
*
|
|
609
|
+
* @typedef {PromiseSpaceOf<{
|
|
610
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
611
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
612
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
613
|
+
* typeof import('../feeDistributor.js').start
|
|
614
|
+
* >;
|
|
615
|
+
* periodicFeeCollectors: MapStore<
|
|
616
|
+
* number,
|
|
617
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
618
|
+
* >;
|
|
619
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
620
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
621
|
+
* econCharterKit: EconCharterStartResult;
|
|
622
|
+
* reserveKit: GovernanceFacetKit<
|
|
623
|
+
* import('../reserve/assetReserve.js')['start']
|
|
624
|
+
* >;
|
|
625
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
626
|
+
* auctioneerKit: AuctioneerKit;
|
|
627
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
628
|
+
* minInitialDebt: NatValue;
|
|
629
|
+
* }>} EconomyBootstrapSpace
|
|
630
|
+
*/
|
|
435
631
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
436
|
-
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
632
|
+
collectFees: () => Promise<globalThis.Payment<any>>; /**
|
|
633
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
634
|
+
*
|
|
635
|
+
* @typedef {PromiseSpaceOf<{
|
|
636
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
637
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
638
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
639
|
+
* typeof import('../feeDistributor.js').start
|
|
640
|
+
* >;
|
|
641
|
+
* periodicFeeCollectors: MapStore<
|
|
642
|
+
* number,
|
|
643
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
644
|
+
* >;
|
|
645
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
646
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
647
|
+
* econCharterKit: EconCharterStartResult;
|
|
648
|
+
* reserveKit: GovernanceFacetKit<
|
|
649
|
+
* import('../reserve/assetReserve.js')['start']
|
|
650
|
+
* >;
|
|
651
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
652
|
+
* auctioneerKit: AuctioneerKit;
|
|
653
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
654
|
+
* minInitialDebt: NatValue;
|
|
655
|
+
* }>} EconomyBootstrapSpace
|
|
656
|
+
*/
|
|
437
657
|
}>;
|
|
438
|
-
startPeriodicCollection: (debugName: string, collectorP: ERef<
|
|
658
|
+
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
439
659
|
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
440
660
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
441
661
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
@@ -446,7 +666,7 @@ export type EconomyBootstrapSpace = {
|
|
|
446
666
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
447
667
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
448
668
|
}>;
|
|
449
|
-
setDestinations: (newDestinations: Record<
|
|
669
|
+
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
450
670
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
451
671
|
}>;
|
|
452
672
|
publicFacet: {
|
|
@@ -465,8 +685,72 @@ export type EconomyBootstrapSpace = {
|
|
|
465
685
|
governedApis: ["burnFeesToReduceShortfall"];
|
|
466
686
|
}>, privateArgs: {
|
|
467
687
|
feeMintAccess: FeeMintAccess;
|
|
468
|
-
initialPoserInvitation: Invitation
|
|
469
|
-
marshaller: ERef<
|
|
688
|
+
initialPoserInvitation: Invitation;
|
|
689
|
+
marshaller: ERef<
|
|
690
|
+
/** @import {start as VFStart} from '../vaultFactory/vaultFactory.js' */
|
|
691
|
+
/** @typedef {Awaited<ReturnType<VFStart>>['publicFacet']} VaultFactoryPublicFacet */
|
|
692
|
+
/**
|
|
693
|
+
* @typedef {object} PSMKit
|
|
694
|
+
* @property {string} label
|
|
695
|
+
* @property {Instance} psm
|
|
696
|
+
* @property {Instance} psmGovernor
|
|
697
|
+
* @property {Awaited<
|
|
698
|
+
* ReturnType<
|
|
699
|
+
* Awaited<
|
|
700
|
+
* ReturnType<import('../psm/psm.js')['start']>
|
|
701
|
+
* >['creatorFacet']['getLimitedCreatorFacet']
|
|
702
|
+
* >
|
|
703
|
+
* >} psmCreatorFacet
|
|
704
|
+
* @property {GovernorCreatorFacet<import('../../src/psm/psm.js')['start']>} psmGovernorCreatorFacet
|
|
705
|
+
* @property {AdminFacet} psmAdminFacet
|
|
706
|
+
*/
|
|
707
|
+
/** @typedef {GovernanceFacetKit<import('../auction/auctioneer.js').start>} AuctioneerKit */
|
|
708
|
+
/**
|
|
709
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
710
|
+
*
|
|
711
|
+
* @typedef {PromiseSpaceOf<{
|
|
712
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
713
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
714
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
715
|
+
* typeof import('../feeDistributor.js').start
|
|
716
|
+
* >;
|
|
717
|
+
* periodicFeeCollectors: MapStore<
|
|
718
|
+
* number,
|
|
719
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
720
|
+
* >;
|
|
721
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
722
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
723
|
+
* econCharterKit: EconCharterStartResult;
|
|
724
|
+
* reserveKit: GovernanceFacetKit<
|
|
725
|
+
* import('../reserve/assetReserve.js')['start']
|
|
726
|
+
* >;
|
|
727
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
728
|
+
* auctioneerKit: AuctioneerKit;
|
|
729
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
730
|
+
* minInitialDebt: NatValue;
|
|
731
|
+
* }>} EconomyBootstrapSpace
|
|
732
|
+
*/
|
|
733
|
+
/**
|
|
734
|
+
* @typedef {StartedInstanceKit<
|
|
735
|
+
* import('../econCommitteeCharter.js')['start']
|
|
736
|
+
* >} EconCharterStartResult
|
|
737
|
+
*/
|
|
738
|
+
/**
|
|
739
|
+
* @typedef {StartedInstanceKit<
|
|
740
|
+
* import('@agoric/governance/src/committee.js')['start']
|
|
741
|
+
* >} CommitteeStartResult
|
|
742
|
+
*/
|
|
743
|
+
/**
|
|
744
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
745
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
746
|
+
* vat config.
|
|
747
|
+
*
|
|
748
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
749
|
+
*
|
|
750
|
+
* In production called by @agoric/vats to bootstrap.
|
|
751
|
+
*/
|
|
752
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
753
|
+
Marshaller>;
|
|
470
754
|
storageNode: ERef<StorageNode>;
|
|
471
755
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
472
756
|
creatorFacet: globalThis.GovernedCreatorFacet<import("@endo/exo").Guarded<{
|
|
@@ -482,15 +766,19 @@ export type EconomyBootstrapSpace = {
|
|
|
482
766
|
getPublicTopics(): {
|
|
483
767
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
484
768
|
};
|
|
485
|
-
}>>;
|
|
769
|
+
}>>; /** @param {EconomyBootstrapPowers} powers */
|
|
486
770
|
}>>>;
|
|
487
771
|
vaultFactoryKit: Promise<globalThis.GovernanceFacetKit<(zcf: VaultFactoryZCF, privateArgs: {
|
|
488
772
|
feeMintAccess: FeeMintAccess;
|
|
489
|
-
initialPoserInvitation: Invitation
|
|
490
|
-
|
|
773
|
+
initialPoserInvitation: Invitation /**
|
|
774
|
+
* @typedef {StartedInstanceKit<
|
|
775
|
+
* import('../econCommitteeCharter.js')['start']
|
|
776
|
+
* >} EconCharterStartResult
|
|
777
|
+
*/;
|
|
778
|
+
initialShortfallInvitation: Invitation;
|
|
491
779
|
storageNode: ERef<StorageNode>;
|
|
492
|
-
marshaller: ERef<Marshaller
|
|
493
|
-
}, baggage:
|
|
780
|
+
marshaller: ERef<Marshaller>;
|
|
781
|
+
}, baggage: import("@agoric/swingset-liveslots").Baggage) => Promise<{
|
|
494
782
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
495
783
|
getParamMgrRetriever: () => {
|
|
496
784
|
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
@@ -519,7 +807,17 @@ export type EconomyBootstrapSpace = {
|
|
|
519
807
|
publicSubscribers: {
|
|
520
808
|
vault: {
|
|
521
809
|
description: string;
|
|
522
|
-
|
|
810
|
+
/**
|
|
811
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
812
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
813
|
+
* vat config.
|
|
814
|
+
*
|
|
815
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
816
|
+
*
|
|
817
|
+
* In production called by @agoric/vats to bootstrap.
|
|
818
|
+
*/
|
|
819
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
820
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
523
821
|
storagePath: Promise<string>;
|
|
524
822
|
};
|
|
525
823
|
};
|
|
@@ -532,7 +830,17 @@ export type EconomyBootstrapSpace = {
|
|
|
532
830
|
getPublicTopics(): {
|
|
533
831
|
vault: {
|
|
534
832
|
description: string;
|
|
535
|
-
|
|
833
|
+
/**
|
|
834
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
835
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
836
|
+
* vat config.
|
|
837
|
+
*
|
|
838
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
839
|
+
*
|
|
840
|
+
* In production called by @agoric/vats to bootstrap.
|
|
841
|
+
*/
|
|
842
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
843
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
536
844
|
storagePath: Promise<string>;
|
|
537
845
|
};
|
|
538
846
|
};
|
|
@@ -551,7 +859,17 @@ export type EconomyBootstrapSpace = {
|
|
|
551
859
|
publicSubscribers: {
|
|
552
860
|
vault: {
|
|
553
861
|
description: string;
|
|
554
|
-
|
|
862
|
+
/**
|
|
863
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
864
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
865
|
+
* vat config.
|
|
866
|
+
*
|
|
867
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
868
|
+
*
|
|
869
|
+
* In production called by @agoric/vats to bootstrap.
|
|
870
|
+
*/
|
|
871
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
872
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
555
873
|
storagePath: Promise<string>;
|
|
556
874
|
};
|
|
557
875
|
};
|
|
@@ -564,7 +882,17 @@ export type EconomyBootstrapSpace = {
|
|
|
564
882
|
getPublicTopics(): {
|
|
565
883
|
vault: {
|
|
566
884
|
description: string;
|
|
567
|
-
|
|
885
|
+
/**
|
|
886
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
887
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
888
|
+
* vat config.
|
|
889
|
+
*
|
|
890
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
891
|
+
*
|
|
892
|
+
* In production called by @agoric/vats to bootstrap.
|
|
893
|
+
*/
|
|
894
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
895
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
568
896
|
storagePath: Promise<string>;
|
|
569
897
|
};
|
|
570
898
|
};
|
|
@@ -585,7 +913,7 @@ export type EconomyBootstrapSpace = {
|
|
|
585
913
|
};
|
|
586
914
|
}>;
|
|
587
915
|
lockOraclePrices(): PriceQuote;
|
|
588
|
-
liquidateVaults(auctionPF: ERef<globalThis.GovernedPublicFacet<{
|
|
916
|
+
liquidateVaults(auctionPF: globalThis.ERef<globalThis.GovernedPublicFacet<{
|
|
589
917
|
getElectorate: () => globalThis.Amount<"set">;
|
|
590
918
|
getStartFrequency: () => RelativeTime;
|
|
591
919
|
getClockStep: () => RelativeTime;
|
|
@@ -599,8 +927,8 @@ export type EconomyBootstrapSpace = {
|
|
|
599
927
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
600
928
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
601
929
|
};
|
|
602
|
-
getScheduleUpdates(): Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
603
|
-
getBookDataUpdates(brand: any): Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
930
|
+
getScheduleUpdates(): globalThis.Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
931
|
+
getBookDataUpdates(brand: any): globalThis.Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
604
932
|
getPublicTopics(brand: any): {
|
|
605
933
|
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
606
934
|
} | {
|
|
@@ -629,7 +957,7 @@ export type EconomyBootstrapSpace = {
|
|
|
629
957
|
wake: (timestamp: any) => any;
|
|
630
958
|
}>;
|
|
631
959
|
}>;
|
|
632
|
-
getGovernedApis(): ERef<globalThis.GovernedApis>;
|
|
960
|
+
getGovernedApis(): globalThis.ERef<globalThis.GovernedApis>;
|
|
633
961
|
getGovernedApiNames(): never[];
|
|
634
962
|
setOfferFilter: (strings: any) => Promise<void>;
|
|
635
963
|
}>;
|
|
@@ -639,7 +967,17 @@ export type EconomyBootstrapSpace = {
|
|
|
639
967
|
publicSubscribers: {
|
|
640
968
|
vault: {
|
|
641
969
|
description: string;
|
|
642
|
-
|
|
970
|
+
/**
|
|
971
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
972
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
973
|
+
* vat config.
|
|
974
|
+
*
|
|
975
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
976
|
+
*
|
|
977
|
+
* In production called by @agoric/vats to bootstrap.
|
|
978
|
+
*/
|
|
979
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
980
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
643
981
|
storagePath: Promise<string>;
|
|
644
982
|
};
|
|
645
983
|
};
|
|
@@ -652,7 +990,17 @@ export type EconomyBootstrapSpace = {
|
|
|
652
990
|
getPublicTopics(): {
|
|
653
991
|
vault: {
|
|
654
992
|
description: string;
|
|
655
|
-
|
|
993
|
+
/**
|
|
994
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
995
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
996
|
+
* vat config.
|
|
997
|
+
*
|
|
998
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
999
|
+
*
|
|
1000
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1001
|
+
*/
|
|
1002
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1003
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
656
1004
|
storagePath: Promise<string>;
|
|
657
1005
|
};
|
|
658
1006
|
};
|
|
@@ -675,14 +1023,14 @@ export type EconomyBootstrapSpace = {
|
|
|
675
1023
|
getDebtIssuer(): globalThis.Issuer<"nat">;
|
|
676
1024
|
getSubscription({ collateralBrand }: {
|
|
677
1025
|
collateralBrand: Brand;
|
|
678
|
-
}): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
1026
|
+
}): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
679
1027
|
getPublicTopics(): {
|
|
680
1028
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
681
1029
|
};
|
|
682
|
-
getElectorateSubscription(): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
1030
|
+
getElectorateSubscription(): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
683
1031
|
getGovernedParams({ collateralBrand }: {
|
|
684
1032
|
collateralBrand: Brand;
|
|
685
|
-
}): ERef<globalThis.ParamStateRecord>;
|
|
1033
|
+
}): globalThis.ERef<globalThis.ParamStateRecord>;
|
|
686
1034
|
getInvitationAmount(name: string): globalThis.Amount<"set">;
|
|
687
1035
|
}>;
|
|
688
1036
|
}>>>;
|
|
@@ -695,16 +1043,64 @@ export type EconomyBootstrapSpace = {
|
|
|
695
1043
|
economicCommitteeCreatorFacet: Producer<import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet>;
|
|
696
1044
|
feeDistributorKit: Producer<StartedInstanceKit<(zcf: ZCF<{
|
|
697
1045
|
keywordShares: Record<string, bigint>;
|
|
698
|
-
timerService: ERef<import("@agoric/time").TimerService>;
|
|
1046
|
+
timerService: globalThis.ERef<import("@agoric/time").TimerService>;
|
|
699
1047
|
collectionInterval: RelativeTime;
|
|
700
1048
|
}>) => Promise<{
|
|
701
1049
|
creatorFacet: {
|
|
702
|
-
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<
|
|
703
|
-
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
1050
|
+
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
1051
|
+
collectFees: () => Promise<globalThis.Payment<any>>; /**
|
|
1052
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
1053
|
+
*
|
|
1054
|
+
* @typedef {PromiseSpaceOf<{
|
|
1055
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
1056
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
1057
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
1058
|
+
* typeof import('../feeDistributor.js').start
|
|
1059
|
+
* >;
|
|
1060
|
+
* periodicFeeCollectors: MapStore<
|
|
1061
|
+
* number,
|
|
1062
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
1063
|
+
* >;
|
|
1064
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
1065
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
1066
|
+
* econCharterKit: EconCharterStartResult;
|
|
1067
|
+
* reserveKit: GovernanceFacetKit<
|
|
1068
|
+
* import('../reserve/assetReserve.js')['start']
|
|
1069
|
+
* >;
|
|
1070
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
1071
|
+
* auctioneerKit: AuctioneerKit;
|
|
1072
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
1073
|
+
* minInitialDebt: NatValue;
|
|
1074
|
+
* }>} EconomyBootstrapSpace
|
|
1075
|
+
*/
|
|
704
1076
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
705
|
-
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
1077
|
+
collectFees: () => Promise<globalThis.Payment<any>>; /**
|
|
1078
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
1079
|
+
*
|
|
1080
|
+
* @typedef {PromiseSpaceOf<{
|
|
1081
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
1082
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
1083
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
1084
|
+
* typeof import('../feeDistributor.js').start
|
|
1085
|
+
* >;
|
|
1086
|
+
* periodicFeeCollectors: MapStore<
|
|
1087
|
+
* number,
|
|
1088
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
1089
|
+
* >;
|
|
1090
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
1091
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
1092
|
+
* econCharterKit: EconCharterStartResult;
|
|
1093
|
+
* reserveKit: GovernanceFacetKit<
|
|
1094
|
+
* import('../reserve/assetReserve.js')['start']
|
|
1095
|
+
* >;
|
|
1096
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
1097
|
+
* auctioneerKit: AuctioneerKit;
|
|
1098
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
1099
|
+
* minInitialDebt: NatValue;
|
|
1100
|
+
* }>} EconomyBootstrapSpace
|
|
1101
|
+
*/
|
|
706
1102
|
}>;
|
|
707
|
-
startPeriodicCollection: (debugName: string, collectorP: ERef<
|
|
1103
|
+
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
708
1104
|
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
709
1105
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
710
1106
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
@@ -715,15 +1111,63 @@ export type EconomyBootstrapSpace = {
|
|
|
715
1111
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
716
1112
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
717
1113
|
}>;
|
|
718
|
-
setDestinations: (newDestinations: Record<
|
|
1114
|
+
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
719
1115
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
720
1116
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
721
|
-
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<
|
|
722
|
-
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
1117
|
+
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
|
|
1118
|
+
collectFees: () => Promise<globalThis.Payment<any>>; /**
|
|
1119
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
1120
|
+
*
|
|
1121
|
+
* @typedef {PromiseSpaceOf<{
|
|
1122
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
1123
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
1124
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
1125
|
+
* typeof import('../feeDistributor.js').start
|
|
1126
|
+
* >;
|
|
1127
|
+
* periodicFeeCollectors: MapStore<
|
|
1128
|
+
* number,
|
|
1129
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
1130
|
+
* >;
|
|
1131
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
1132
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
1133
|
+
* econCharterKit: EconCharterStartResult;
|
|
1134
|
+
* reserveKit: GovernanceFacetKit<
|
|
1135
|
+
* import('../reserve/assetReserve.js')['start']
|
|
1136
|
+
* >;
|
|
1137
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
1138
|
+
* auctioneerKit: AuctioneerKit;
|
|
1139
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
1140
|
+
* minInitialDebt: NatValue;
|
|
1141
|
+
* }>} EconomyBootstrapSpace
|
|
1142
|
+
*/
|
|
723
1143
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
724
|
-
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
1144
|
+
collectFees: () => Promise<globalThis.Payment<any>>; /**
|
|
1145
|
+
* @typedef {WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace} EconomyBootstrapPowers
|
|
1146
|
+
*
|
|
1147
|
+
* @typedef {PromiseSpaceOf<{
|
|
1148
|
+
* economicCommitteeKit: CommitteeStartResult;
|
|
1149
|
+
* economicCommitteeCreatorFacet: import('@agoric/governance/src/committee.js').CommitteeElectorateCreatorFacet;
|
|
1150
|
+
* feeDistributorKit: StartedInstanceKit<
|
|
1151
|
+
* typeof import('../feeDistributor.js').start
|
|
1152
|
+
* >;
|
|
1153
|
+
* periodicFeeCollectors: MapStore<
|
|
1154
|
+
* number,
|
|
1155
|
+
* import('../feeDistributor.js').PeriodicFeeCollector
|
|
1156
|
+
* >;
|
|
1157
|
+
* psmKit: MapStore<Brand, PSMKit>;
|
|
1158
|
+
* anchorBalancePayments: MapStore<Brand, Payment<'nat'>>;
|
|
1159
|
+
* econCharterKit: EconCharterStartResult;
|
|
1160
|
+
* reserveKit: GovernanceFacetKit<
|
|
1161
|
+
* import('../reserve/assetReserve.js')['start']
|
|
1162
|
+
* >;
|
|
1163
|
+
* vaultFactoryKit: GovernanceFacetKit<VFStart>;
|
|
1164
|
+
* auctioneerKit: AuctioneerKit;
|
|
1165
|
+
* newAuctioneerKit: AuctioneerKit;
|
|
1166
|
+
* minInitialDebt: NatValue;
|
|
1167
|
+
* }>} EconomyBootstrapSpace
|
|
1168
|
+
*/
|
|
725
1169
|
}>;
|
|
726
|
-
startPeriodicCollection: (debugName: string, collectorP: ERef<
|
|
1170
|
+
startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
727
1171
|
makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/exported.js").DepositFacet>) => {
|
|
728
1172
|
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
729
1173
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
@@ -734,7 +1178,7 @@ export type EconomyBootstrapSpace = {
|
|
|
734
1178
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
735
1179
|
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
736
1180
|
}>;
|
|
737
|
-
setDestinations: (newDestinations: Record<
|
|
1181
|
+
setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
|
|
738
1182
|
setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
|
|
739
1183
|
}>;
|
|
740
1184
|
publicFacet: {
|
|
@@ -753,8 +1197,8 @@ export type EconomyBootstrapSpace = {
|
|
|
753
1197
|
governedApis: ["burnFeesToReduceShortfall"];
|
|
754
1198
|
}>, privateArgs: {
|
|
755
1199
|
feeMintAccess: FeeMintAccess;
|
|
756
|
-
initialPoserInvitation: Invitation
|
|
757
|
-
marshaller: ERef<Marshaller
|
|
1200
|
+
initialPoserInvitation: Invitation;
|
|
1201
|
+
marshaller: ERef<Marshaller>;
|
|
758
1202
|
storageNode: ERef<StorageNode>;
|
|
759
1203
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
760
1204
|
creatorFacet: globalThis.GovernedCreatorFacet<import("@endo/exo").Guarded<{
|
|
@@ -770,15 +1214,15 @@ export type EconomyBootstrapSpace = {
|
|
|
770
1214
|
getPublicTopics(): {
|
|
771
1215
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
772
1216
|
};
|
|
773
|
-
}>>;
|
|
1217
|
+
}>>; /** @param {EconomyBootstrapPowers} powers */
|
|
774
1218
|
}>>>;
|
|
775
1219
|
vaultFactoryKit: Producer<globalThis.GovernanceFacetKit<(zcf: VaultFactoryZCF, privateArgs: {
|
|
776
1220
|
feeMintAccess: FeeMintAccess;
|
|
777
|
-
initialPoserInvitation: Invitation
|
|
778
|
-
initialShortfallInvitation: Invitation
|
|
1221
|
+
initialPoserInvitation: Invitation;
|
|
1222
|
+
initialShortfallInvitation: Invitation;
|
|
779
1223
|
storageNode: ERef<StorageNode>;
|
|
780
|
-
marshaller: ERef<Marshaller
|
|
781
|
-
}, baggage:
|
|
1224
|
+
marshaller: ERef<Marshaller>;
|
|
1225
|
+
}, baggage: import("@agoric/swingset-liveslots").Baggage) => Promise<{
|
|
782
1226
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
783
1227
|
getParamMgrRetriever: () => {
|
|
784
1228
|
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
@@ -807,7 +1251,17 @@ export type EconomyBootstrapSpace = {
|
|
|
807
1251
|
publicSubscribers: {
|
|
808
1252
|
vault: {
|
|
809
1253
|
description: string;
|
|
810
|
-
|
|
1254
|
+
/**
|
|
1255
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1256
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1257
|
+
* vat config.
|
|
1258
|
+
*
|
|
1259
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1260
|
+
*
|
|
1261
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1262
|
+
*/
|
|
1263
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1264
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
811
1265
|
storagePath: Promise<string>;
|
|
812
1266
|
};
|
|
813
1267
|
};
|
|
@@ -820,7 +1274,17 @@ export type EconomyBootstrapSpace = {
|
|
|
820
1274
|
getPublicTopics(): {
|
|
821
1275
|
vault: {
|
|
822
1276
|
description: string;
|
|
823
|
-
|
|
1277
|
+
/**
|
|
1278
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1279
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1280
|
+
* vat config.
|
|
1281
|
+
*
|
|
1282
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1283
|
+
*
|
|
1284
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1285
|
+
*/
|
|
1286
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1287
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
824
1288
|
storagePath: Promise<string>;
|
|
825
1289
|
};
|
|
826
1290
|
};
|
|
@@ -839,7 +1303,17 @@ export type EconomyBootstrapSpace = {
|
|
|
839
1303
|
publicSubscribers: {
|
|
840
1304
|
vault: {
|
|
841
1305
|
description: string;
|
|
842
|
-
|
|
1306
|
+
/**
|
|
1307
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1308
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1309
|
+
* vat config.
|
|
1310
|
+
*
|
|
1311
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1312
|
+
*
|
|
1313
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1314
|
+
*/
|
|
1315
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1316
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
843
1317
|
storagePath: Promise<string>;
|
|
844
1318
|
};
|
|
845
1319
|
};
|
|
@@ -852,7 +1326,17 @@ export type EconomyBootstrapSpace = {
|
|
|
852
1326
|
getPublicTopics(): {
|
|
853
1327
|
vault: {
|
|
854
1328
|
description: string;
|
|
855
|
-
|
|
1329
|
+
/**
|
|
1330
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1331
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1332
|
+
* vat config.
|
|
1333
|
+
*
|
|
1334
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1335
|
+
*
|
|
1336
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1337
|
+
*/
|
|
1338
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1339
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
856
1340
|
storagePath: Promise<string>;
|
|
857
1341
|
};
|
|
858
1342
|
};
|
|
@@ -873,7 +1357,7 @@ export type EconomyBootstrapSpace = {
|
|
|
873
1357
|
};
|
|
874
1358
|
}>;
|
|
875
1359
|
lockOraclePrices(): PriceQuote;
|
|
876
|
-
liquidateVaults(auctionPF: ERef<globalThis.GovernedPublicFacet<{
|
|
1360
|
+
liquidateVaults(auctionPF: globalThis.ERef<globalThis.GovernedPublicFacet<{
|
|
877
1361
|
getElectorate: () => globalThis.Amount<"set">;
|
|
878
1362
|
getStartFrequency: () => RelativeTime;
|
|
879
1363
|
getClockStep: () => RelativeTime;
|
|
@@ -887,8 +1371,8 @@ export type EconomyBootstrapSpace = {
|
|
|
887
1371
|
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
888
1372
|
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
889
1373
|
};
|
|
890
|
-
getScheduleUpdates(): Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
891
|
-
getBookDataUpdates(brand: any): Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
1374
|
+
getScheduleUpdates(): globalThis.Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
1375
|
+
getBookDataUpdates(brand: any): globalThis.Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
892
1376
|
getPublicTopics(brand: any): {
|
|
893
1377
|
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
894
1378
|
} | {
|
|
@@ -917,7 +1401,7 @@ export type EconomyBootstrapSpace = {
|
|
|
917
1401
|
wake: (timestamp: any) => any;
|
|
918
1402
|
}>;
|
|
919
1403
|
}>;
|
|
920
|
-
getGovernedApis(): ERef<globalThis.GovernedApis>;
|
|
1404
|
+
getGovernedApis(): globalThis.ERef<globalThis.GovernedApis>;
|
|
921
1405
|
getGovernedApiNames(): never[];
|
|
922
1406
|
setOfferFilter: (strings: any) => Promise<void>;
|
|
923
1407
|
}>;
|
|
@@ -927,7 +1411,17 @@ export type EconomyBootstrapSpace = {
|
|
|
927
1411
|
publicSubscribers: {
|
|
928
1412
|
vault: {
|
|
929
1413
|
description: string;
|
|
930
|
-
|
|
1414
|
+
/**
|
|
1415
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1416
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1417
|
+
* vat config.
|
|
1418
|
+
*
|
|
1419
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1420
|
+
*
|
|
1421
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1422
|
+
*/
|
|
1423
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1424
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
931
1425
|
storagePath: Promise<string>;
|
|
932
1426
|
};
|
|
933
1427
|
};
|
|
@@ -940,7 +1434,17 @@ export type EconomyBootstrapSpace = {
|
|
|
940
1434
|
getPublicTopics(): {
|
|
941
1435
|
vault: {
|
|
942
1436
|
description: string;
|
|
943
|
-
|
|
1437
|
+
/**
|
|
1438
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1439
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1440
|
+
* vat config.
|
|
1441
|
+
*
|
|
1442
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1443
|
+
*
|
|
1444
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1445
|
+
*/
|
|
1446
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1447
|
+
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
944
1448
|
storagePath: Promise<string>;
|
|
945
1449
|
};
|
|
946
1450
|
};
|
|
@@ -963,14 +1467,14 @@ export type EconomyBootstrapSpace = {
|
|
|
963
1467
|
getDebtIssuer(): globalThis.Issuer<"nat">;
|
|
964
1468
|
getSubscription({ collateralBrand }: {
|
|
965
1469
|
collateralBrand: Brand;
|
|
966
|
-
}): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
1470
|
+
}): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
967
1471
|
getPublicTopics(): {
|
|
968
1472
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
969
1473
|
};
|
|
970
|
-
getElectorateSubscription(): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
1474
|
+
getElectorateSubscription(): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
971
1475
|
getGovernedParams({ collateralBrand }: {
|
|
972
1476
|
collateralBrand: Brand;
|
|
973
|
-
}): ERef<globalThis.ParamStateRecord>;
|
|
1477
|
+
}): globalThis.ERef<globalThis.ParamStateRecord>;
|
|
974
1478
|
getInvitationAmount(name: string): globalThis.Amount<"set">;
|
|
975
1479
|
}>;
|
|
976
1480
|
}>>>;
|
|
@@ -987,9 +1491,9 @@ export type EconCharterStartResult = {
|
|
|
987
1491
|
addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
988
1492
|
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
989
1493
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
990
|
-
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/
|
|
991
|
-
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/
|
|
992
|
-
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/
|
|
1494
|
+
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
1495
|
+
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
1496
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
993
1497
|
}>;
|
|
994
1498
|
}, undefined>>;
|
|
995
1499
|
}>;
|
|
@@ -1001,23 +1505,43 @@ export type EconCharterStartResult = {
|
|
|
1001
1505
|
addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
1002
1506
|
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
1003
1507
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
1004
|
-
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/
|
|
1005
|
-
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/
|
|
1006
|
-
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/
|
|
1508
|
+
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
1509
|
+
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
1510
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
1007
1511
|
}>;
|
|
1008
1512
|
}, undefined>>;
|
|
1009
1513
|
}>;
|
|
1010
1514
|
}>>;
|
|
1011
1515
|
creatorFacet: {};
|
|
1516
|
+
/**
|
|
1517
|
+
* @typedef {StartedInstanceKit<
|
|
1518
|
+
* import('../econCommitteeCharter.js')['start']
|
|
1519
|
+
* >} EconCharterStartResult
|
|
1520
|
+
*/
|
|
1521
|
+
/**
|
|
1522
|
+
* @typedef {StartedInstanceKit<
|
|
1523
|
+
* import('@agoric/governance/src/committee.js')['start']
|
|
1524
|
+
* >} CommitteeStartResult
|
|
1525
|
+
*/
|
|
1526
|
+
/**
|
|
1527
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1528
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1529
|
+
* vat config.
|
|
1530
|
+
*
|
|
1531
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1532
|
+
*
|
|
1533
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1534
|
+
*/
|
|
1535
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1012
1536
|
publicFacet: {};
|
|
1013
1537
|
} & {
|
|
1014
1538
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
1015
1539
|
addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
1016
1540
|
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
1017
1541
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
1018
|
-
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/
|
|
1019
|
-
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/
|
|
1020
|
-
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/
|
|
1542
|
+
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
1543
|
+
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
1544
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/src/types.js").ContractGovernanceVoteResult, undefined>>;
|
|
1021
1545
|
}>;
|
|
1022
1546
|
}, undefined>>;
|
|
1023
1547
|
}>;
|
|
@@ -1028,7 +1552,7 @@ export type CommitteeStartResult = {
|
|
|
1028
1552
|
committeeSize: number;
|
|
1029
1553
|
}>, privateArgs: {
|
|
1030
1554
|
storageNode: ERef<StorageNode>;
|
|
1031
|
-
marshaller: ERef<Marshaller
|
|
1555
|
+
marshaller: ERef<Marshaller>;
|
|
1032
1556
|
}, baggage: import("@agoric/vat-data").Baggage) => {
|
|
1033
1557
|
creatorFacet: import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet;
|
|
1034
1558
|
publicFacet: globalThis.CommitteeElectoratePublic;
|
|
@@ -1038,12 +1562,32 @@ export type CommitteeStartResult = {
|
|
|
1038
1562
|
committeeSize: number;
|
|
1039
1563
|
}>, privateArgs: {
|
|
1040
1564
|
storageNode: ERef<StorageNode>;
|
|
1041
|
-
marshaller: ERef<Marshaller
|
|
1565
|
+
marshaller: ERef<Marshaller>;
|
|
1042
1566
|
}, baggage: import("@agoric/vat-data").Baggage) => {
|
|
1043
1567
|
creatorFacet: import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet;
|
|
1044
1568
|
publicFacet: globalThis.CommitteeElectoratePublic;
|
|
1045
1569
|
}>;
|
|
1046
1570
|
creatorFacet: {};
|
|
1571
|
+
/**
|
|
1572
|
+
* @typedef {StartedInstanceKit<
|
|
1573
|
+
* import('../econCommitteeCharter.js')['start']
|
|
1574
|
+
* >} EconCharterStartResult
|
|
1575
|
+
*/
|
|
1576
|
+
/**
|
|
1577
|
+
* @typedef {StartedInstanceKit<
|
|
1578
|
+
* import('@agoric/governance/src/committee.js')['start']
|
|
1579
|
+
* >} CommitteeStartResult
|
|
1580
|
+
*/
|
|
1581
|
+
/**
|
|
1582
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1583
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1584
|
+
* vat config.
|
|
1585
|
+
*
|
|
1586
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1587
|
+
*
|
|
1588
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1589
|
+
*/
|
|
1590
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1047
1591
|
publicFacet: {};
|
|
1048
1592
|
} & {
|
|
1049
1593
|
creatorFacet: import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet;
|