@agoric/inter-protocol 0.16.2-dev-00cccfc.0 → 0.16.2-dev-db0b9d7.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/inter-protocol",
|
|
3
|
-
"version": "0.16.2-dev-
|
|
3
|
+
"version": "0.16.2-dev-db0b9d7.0+db0b9d7",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/assert": "0.6.1-dev-
|
|
35
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
36
|
-
"@agoric/governance": "0.10.4-dev-
|
|
37
|
-
"@agoric/internal": "0.3.3-dev-
|
|
38
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
39
|
-
"@agoric/store": "0.9.3-dev-
|
|
40
|
-
"@agoric/time": "0.3.3-dev-
|
|
41
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
42
|
-
"@agoric/vats": "0.15.2-dev-
|
|
43
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
34
|
+
"@agoric/assert": "0.6.1-dev-db0b9d7.0+db0b9d7",
|
|
35
|
+
"@agoric/ertp": "0.16.3-dev-db0b9d7.0+db0b9d7",
|
|
36
|
+
"@agoric/governance": "0.10.4-dev-db0b9d7.0+db0b9d7",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-db0b9d7.0+db0b9d7",
|
|
38
|
+
"@agoric/notifier": "0.6.3-dev-db0b9d7.0+db0b9d7",
|
|
39
|
+
"@agoric/store": "0.9.3-dev-db0b9d7.0+db0b9d7",
|
|
40
|
+
"@agoric/time": "0.3.3-dev-db0b9d7.0+db0b9d7",
|
|
41
|
+
"@agoric/vat-data": "0.5.3-dev-db0b9d7.0+db0b9d7",
|
|
42
|
+
"@agoric/vats": "0.15.2-dev-db0b9d7.0+db0b9d7",
|
|
43
|
+
"@agoric/zoe": "0.26.3-dev-db0b9d7.0+db0b9d7",
|
|
44
44
|
"@endo/captp": "^4.1.1",
|
|
45
45
|
"@endo/eventual-send": "^1.2.1",
|
|
46
46
|
"@endo/far": "^1.1.1",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"jessie.js": "^0.3.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
54
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
55
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
53
|
+
"@agoric/smart-wallet": "0.5.4-dev-db0b9d7.0+db0b9d7",
|
|
54
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-db0b9d7.0+db0b9d7",
|
|
55
|
+
"@agoric/swingset-vat": "0.32.3-dev-db0b9d7.0+db0b9d7",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-db0b9d7.0+db0b9d7",
|
|
57
57
|
"@endo/bundle-source": "^3.2.2",
|
|
58
58
|
"@endo/init": "^1.1.1",
|
|
59
59
|
"@endo/promise-kit": "^1.1.1",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
85
|
"typeCoverage": {
|
|
86
|
-
"atLeast": 95.
|
|
86
|
+
"atLeast": 95.89
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "db0b9d70315699b173561f9b422d81f4068576de"
|
|
89
89
|
}
|
|
@@ -176,6 +176,16 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
176
176
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
177
177
|
publicSubscribers: {
|
|
178
178
|
vault: {
|
|
179
|
+
/**
|
|
180
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
181
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
182
|
+
* vat config.
|
|
183
|
+
*
|
|
184
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
185
|
+
*
|
|
186
|
+
* In production called by @agoric/vats to bootstrap.
|
|
187
|
+
*/
|
|
188
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
179
189
|
description: string;
|
|
180
190
|
subscriber: Subscriber<VaultNotification>;
|
|
181
191
|
storagePath: Promise<string>;
|
|
@@ -189,6 +199,16 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
189
199
|
vault: import("@endo/exo").Guarded<{
|
|
190
200
|
getPublicTopics(): {
|
|
191
201
|
vault: {
|
|
202
|
+
/**
|
|
203
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
204
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
205
|
+
* vat config.
|
|
206
|
+
*
|
|
207
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
208
|
+
*
|
|
209
|
+
* In production called by @agoric/vats to bootstrap.
|
|
210
|
+
*/
|
|
211
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
192
212
|
description: string;
|
|
193
213
|
subscriber: Subscriber<VaultNotification>;
|
|
194
214
|
storagePath: Promise<string>;
|
|
@@ -208,6 +228,16 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
208
228
|
makeVaultInvitation(): Promise<Invitation<{
|
|
209
229
|
publicSubscribers: {
|
|
210
230
|
vault: {
|
|
231
|
+
/**
|
|
232
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
233
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
234
|
+
* vat config.
|
|
235
|
+
*
|
|
236
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
237
|
+
*
|
|
238
|
+
* In production called by @agoric/vats to bootstrap.
|
|
239
|
+
*/
|
|
240
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
211
241
|
description: string;
|
|
212
242
|
subscriber: Subscriber<VaultNotification>;
|
|
213
243
|
storagePath: Promise<string>;
|
|
@@ -221,6 +251,16 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
221
251
|
vault: import("@endo/exo").Guarded<{
|
|
222
252
|
getPublicTopics(): {
|
|
223
253
|
vault: {
|
|
254
|
+
/**
|
|
255
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
256
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
257
|
+
* vat config.
|
|
258
|
+
*
|
|
259
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
260
|
+
*
|
|
261
|
+
* In production called by @agoric/vats to bootstrap.
|
|
262
|
+
*/
|
|
263
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
224
264
|
description: string;
|
|
225
265
|
subscriber: Subscriber<VaultNotification>;
|
|
226
266
|
storagePath: Promise<string>;
|
|
@@ -308,6 +348,16 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
308
348
|
makeVaultInvitation(): Promise<Invitation<{
|
|
309
349
|
publicSubscribers: {
|
|
310
350
|
vault: {
|
|
351
|
+
/**
|
|
352
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
353
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
354
|
+
* vat config.
|
|
355
|
+
*
|
|
356
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
357
|
+
*
|
|
358
|
+
* In production called by @agoric/vats to bootstrap.
|
|
359
|
+
*/
|
|
360
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
311
361
|
description: string;
|
|
312
362
|
subscriber: Subscriber<VaultNotification>;
|
|
313
363
|
storagePath: Promise<string>;
|
|
@@ -321,6 +371,16 @@ export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: import("../vaultF
|
|
|
321
371
|
vault: import("@endo/exo").Guarded<{
|
|
322
372
|
getPublicTopics(): {
|
|
323
373
|
vault: {
|
|
374
|
+
/**
|
|
375
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
376
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
377
|
+
* vat config.
|
|
378
|
+
*
|
|
379
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
380
|
+
*
|
|
381
|
+
* In production called by @agoric/vats to bootstrap.
|
|
382
|
+
*/
|
|
383
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
324
384
|
description: string;
|
|
325
385
|
subscriber: Subscriber<VaultNotification>;
|
|
326
386
|
storagePath: Promise<string>;
|
|
@@ -433,49 +493,325 @@ export type AuctioneerKit = GovernanceFacetKit<(zcf: ZCF<globalThis.GovernanceTe
|
|
|
433
493
|
}>>;
|
|
434
494
|
}>>;
|
|
435
495
|
export type EconomyBootstrapPowers = WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace;
|
|
436
|
-
export type EconomyBootstrapSpace =
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
496
|
+
export type EconomyBootstrapSpace = {
|
|
497
|
+
consume: {
|
|
498
|
+
economicCommitteeKit: Promise<CommitteeStartResult>;
|
|
499
|
+
economicCommitteeCreatorFacet: Promise<import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet>;
|
|
500
|
+
feeDistributorKit: Promise<StartedInstanceKit<(zcf: ZCF<{
|
|
501
|
+
keywordShares: Record<string, bigint>;
|
|
502
|
+
timerService: ERef<import("@agoric/time").TimerService>;
|
|
503
|
+
collectionInterval: RelativeTime;
|
|
504
|
+
}>) => Promise<{
|
|
505
|
+
creatorFacet: {
|
|
506
|
+
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<import("../feeDistributor.js").CollectibleContractFacet>) => {
|
|
507
|
+
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
508
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
509
|
+
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
510
|
+
}>;
|
|
511
|
+
startPeriodicCollection: (debugName: string, collectorP: ERef<import("../feeDistributor.js").FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
512
|
+
makeDepositFacetDestination: (depositFacet: {
|
|
513
|
+
/**
|
|
514
|
+
* Deposit all the contents of payment
|
|
515
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
516
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
517
|
+
* payment, throw an error.
|
|
518
|
+
*
|
|
519
|
+
* If payment is a promise, throw an error.
|
|
520
|
+
*/
|
|
521
|
+
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
522
|
+
}) => {
|
|
523
|
+
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
524
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
525
|
+
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
526
|
+
}>;
|
|
527
|
+
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
|
|
528
|
+
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
529
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
530
|
+
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
461
531
|
}>;
|
|
532
|
+
setDestinations: (newDestinations: Record<string, ERef<import("../feeDistributor.js").FeeDestination>>) => Promise<void>;
|
|
533
|
+
setKeywordShares: (newShares: Record<string, bigint>) => void;
|
|
462
534
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
535
|
+
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<import("../feeDistributor.js").CollectibleContractFacet>) => {
|
|
536
|
+
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
537
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
538
|
+
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
539
|
+
}>;
|
|
540
|
+
startPeriodicCollection: (debugName: string, collectorP: ERef<import("../feeDistributor.js").FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
541
|
+
makeDepositFacetDestination: (depositFacet: {
|
|
542
|
+
/**
|
|
543
|
+
* Deposit all the contents of payment
|
|
544
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
545
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
546
|
+
* payment, throw an error.
|
|
547
|
+
*
|
|
548
|
+
* If payment is a promise, throw an error.
|
|
549
|
+
*/
|
|
550
|
+
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
551
|
+
}) => {
|
|
552
|
+
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
553
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
554
|
+
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
555
|
+
}>;
|
|
556
|
+
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
|
|
557
|
+
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
558
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
559
|
+
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
560
|
+
}>;
|
|
561
|
+
setDestinations: (newDestinations: Record<string, ERef<import("../feeDistributor.js").FeeDestination>>) => Promise<void>;
|
|
562
|
+
setKeywordShares: (newShares: Record<string, bigint>) => void;
|
|
563
|
+
}>;
|
|
564
|
+
publicFacet: {
|
|
565
|
+
distributeFees: (payment: globalThis.Payment<"nat">) => Promise<void>;
|
|
566
|
+
getKeywordShares: () => Record<string, bigint>;
|
|
567
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
568
|
+
distributeFees: (payment: globalThis.Payment<"nat">) => Promise<void>;
|
|
569
|
+
getKeywordShares: () => Record<string, bigint>;
|
|
570
|
+
}>;
|
|
571
|
+
}>>>;
|
|
572
|
+
periodicFeeCollectors: Promise<globalThis.MapStore<number, import("../feeDistributor.js").PeriodicFeeCollector>>;
|
|
573
|
+
psmKit: Promise<globalThis.MapStore<globalThis.Brand, PSMKit>>;
|
|
574
|
+
anchorBalancePayments: Promise<globalThis.MapStore<globalThis.Brand, globalThis.Payment<"nat">>>;
|
|
575
|
+
econCharterKit: Promise<EconCharterStartResult>;
|
|
576
|
+
reserveKit: Promise<globalThis.GovernanceFacetKit<(zcf: ZCF<globalThis.GovernanceTerms<{}> & {
|
|
577
|
+
governedApis: ["burnFeesToReduceShortfall"];
|
|
578
|
+
}>, privateArgs: {
|
|
579
|
+
feeMintAccess: FeeMintAccess;
|
|
580
|
+
initialPoserInvitation: Invitation<unknown, undefined>;
|
|
581
|
+
marshaller: ERef<Marshaller<unknown>>;
|
|
582
|
+
storageNode: ERef<StorageNode>;
|
|
583
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
584
|
+
creatorFacet: globalThis.GovernedCreatorFacet<import("@endo/exo").Guarded<{
|
|
585
|
+
addIssuer(issuer: globalThis.Issuer, keyword: string): Promise<void>;
|
|
586
|
+
getAllocations(): AmountKeywordRecord;
|
|
587
|
+
makeShortfallReportingInvitation(): Promise<Invitation<import("@endo/exo").Guarded<{
|
|
588
|
+
increaseLiquidationShortfall(shortfall: globalThis.Amount<"nat">): void;
|
|
589
|
+
reduceLiquidationShortfall(reduction: globalThis.Amount<"nat">): void;
|
|
590
|
+
}>, undefined>>;
|
|
591
|
+
}>>;
|
|
592
|
+
publicFacet: globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
593
|
+
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
594
|
+
getPublicTopics(): {
|
|
595
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
596
|
+
};
|
|
597
|
+
}>>;
|
|
598
|
+
}>>>;
|
|
599
|
+
vaultFactoryKit: Promise<globalThis.GovernanceFacetKit<(zcf: import("../vaultFactory/vaultFactory.js").VaultFactoryZCF, privateArgs: {
|
|
600
|
+
feeMintAccess: FeeMintAccess;
|
|
601
|
+
initialPoserInvitation: Invitation<unknown, undefined>;
|
|
602
|
+
initialShortfallInvitation: Invitation<unknown, undefined>;
|
|
603
|
+
storageNode: ERef<StorageNode>;
|
|
604
|
+
marshaller: ERef<Marshaller<unknown>>;
|
|
605
|
+
}, baggage: MapStore<string, any>) => Promise<{
|
|
606
|
+
creatorFacet: import("@endo/exo").Guarded<{
|
|
607
|
+
getParamMgrRetriever: () => {
|
|
608
|
+
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
609
|
+
DebtLimit: "amount";
|
|
610
|
+
InterestRate: "ratio";
|
|
611
|
+
LiquidationPadding: "ratio";
|
|
612
|
+
LiquidationMargin: "ratio";
|
|
613
|
+
LiquidationPenalty: "ratio";
|
|
614
|
+
MintFee: "ratio";
|
|
615
|
+
}>;
|
|
616
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
617
|
+
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
618
|
+
DebtLimit: "amount";
|
|
619
|
+
InterestRate: "ratio";
|
|
620
|
+
LiquidationPadding: "ratio";
|
|
621
|
+
LiquidationMargin: "ratio";
|
|
622
|
+
LiquidationPenalty: "ratio";
|
|
623
|
+
MintFee: "ratio";
|
|
624
|
+
}>;
|
|
625
|
+
}>;
|
|
626
|
+
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
627
|
+
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
628
|
+
addVaultType(collateralIssuer: globalThis.Issuer<"nat">, collateralKeyword: string, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
629
|
+
getGovernedParams(): import("../vaultFactory/vaultManager.js").GovernedParamGetters;
|
|
630
|
+
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
631
|
+
publicSubscribers: {
|
|
632
|
+
vault: {
|
|
633
|
+
/**
|
|
634
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
635
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
636
|
+
* vat config.
|
|
637
|
+
*
|
|
638
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
639
|
+
*
|
|
640
|
+
* In production called by @agoric/vats to bootstrap.
|
|
641
|
+
*/
|
|
642
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
643
|
+
description: string;
|
|
644
|
+
subscriber: Subscriber<VaultNotification>;
|
|
645
|
+
storagePath: Promise<string>;
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
649
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
650
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
651
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
652
|
+
}>;
|
|
653
|
+
vault: import("@endo/exo").Guarded<{
|
|
654
|
+
getPublicTopics(): {
|
|
655
|
+
vault: {
|
|
656
|
+
/**
|
|
657
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
658
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
659
|
+
* vat config.
|
|
660
|
+
*
|
|
661
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
662
|
+
*
|
|
663
|
+
* In production called by @agoric/vats to bootstrap.
|
|
664
|
+
*/
|
|
665
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
666
|
+
description: string;
|
|
667
|
+
subscriber: Subscriber<VaultNotification>;
|
|
668
|
+
storagePath: Promise<string>;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
672
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
673
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
674
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
675
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
676
|
+
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
677
|
+
}>;
|
|
678
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
679
|
+
}>;
|
|
680
|
+
getCollateralQuote(): PriceQuote;
|
|
681
|
+
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
682
|
+
makeVaultInvitation(): Promise<Invitation<{
|
|
683
|
+
publicSubscribers: {
|
|
684
|
+
vault: {
|
|
685
|
+
/**
|
|
686
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
687
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
688
|
+
* vat config.
|
|
689
|
+
*
|
|
690
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
691
|
+
*
|
|
692
|
+
* In production called by @agoric/vats to bootstrap.
|
|
693
|
+
*/
|
|
694
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
695
|
+
description: string;
|
|
696
|
+
subscriber: Subscriber<VaultNotification>;
|
|
697
|
+
storagePath: Promise<string>;
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
701
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
702
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
703
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
704
|
+
}>;
|
|
705
|
+
vault: import("@endo/exo").Guarded<{
|
|
706
|
+
getPublicTopics(): {
|
|
707
|
+
vault: {
|
|
708
|
+
/**
|
|
709
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
710
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
711
|
+
* vat config.
|
|
712
|
+
*
|
|
713
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
714
|
+
*
|
|
715
|
+
* In production called by @agoric/vats to bootstrap.
|
|
716
|
+
*/
|
|
717
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
718
|
+
description: string;
|
|
719
|
+
subscriber: Subscriber<VaultNotification>;
|
|
720
|
+
storagePath: Promise<string>;
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
724
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
725
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
726
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
727
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
728
|
+
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
729
|
+
}>;
|
|
730
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
731
|
+
}, undefined>>;
|
|
732
|
+
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
733
|
+
getCompoundedInterest(): Ratio;
|
|
734
|
+
getPublicTopics(): {
|
|
735
|
+
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").AssetState>;
|
|
736
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").MetricsNotification>;
|
|
737
|
+
};
|
|
738
|
+
}>;
|
|
739
|
+
lockOraclePrices(): PriceQuote;
|
|
740
|
+
liquidateVaults(auctionPF: ERef<globalThis.GovernedPublicFacet<{
|
|
741
|
+
getElectorate: () => globalThis.Amount<"set">;
|
|
742
|
+
getStartFrequency: () => RelativeTime;
|
|
743
|
+
getClockStep: () => RelativeTime;
|
|
744
|
+
getStartingRate: () => bigint;
|
|
745
|
+
getLowestRate: () => bigint;
|
|
746
|
+
getDiscountStep: () => bigint;
|
|
747
|
+
getAuctionStartDelay: () => RelativeTime;
|
|
748
|
+
getPriceLockPeriod: () => RelativeTime;
|
|
749
|
+
makeBidInvitation(collateralBrand: globalThis.Brand<"nat">): Promise<Invitation<string, ({
|
|
750
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
751
|
+
} & {
|
|
752
|
+
exitAfterBuy?: boolean | undefined;
|
|
753
|
+
} & {
|
|
754
|
+
offerPrice: Ratio;
|
|
755
|
+
}) | ({
|
|
756
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
757
|
+
} & {
|
|
758
|
+
exitAfterBuy?: boolean | undefined;
|
|
759
|
+
} & {
|
|
760
|
+
offerBidScaling: Ratio;
|
|
761
|
+
})>>;
|
|
762
|
+
getSchedules(): {
|
|
763
|
+
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
764
|
+
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
765
|
+
};
|
|
766
|
+
getScheduleUpdates(): Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
767
|
+
getBookDataUpdates(brand: any): Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
768
|
+
getPublicTopics(brand: any): {
|
|
769
|
+
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
770
|
+
} | {
|
|
771
|
+
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
772
|
+
};
|
|
773
|
+
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
774
|
+
goal: globalThis.Amount<"nat">;
|
|
775
|
+
}>>;
|
|
776
|
+
}>>): Promise<void>;
|
|
777
|
+
}>>;
|
|
778
|
+
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
779
|
+
getRewardAllocation(): AmountKeywordRecord;
|
|
780
|
+
makeLiquidationWaker(): {
|
|
781
|
+
wake: (timestamp: any) => any;
|
|
782
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
783
|
+
wake: (timestamp: any) => any;
|
|
784
|
+
}>;
|
|
785
|
+
makeReschedulerWaker(): {
|
|
786
|
+
wake: (timestamp: any) => any;
|
|
787
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
788
|
+
wake: (timestamp: any) => any;
|
|
789
|
+
}>;
|
|
790
|
+
makePriceLockWaker(): {
|
|
791
|
+
wake: (timestamp: any) => any;
|
|
792
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
793
|
+
wake: (timestamp: any) => any;
|
|
794
|
+
}>;
|
|
470
795
|
}>;
|
|
796
|
+
getGovernedApis(): ERef<globalThis.GovernedApis>;
|
|
797
|
+
getGovernedApiNames(): never[];
|
|
798
|
+
setOfferFilter: (strings: any) => Promise<void>;
|
|
471
799
|
}>;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
getGovernedParams(): import("../vaultFactory/vaultManager.js").GovernedParamGetters;
|
|
476
|
-
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
800
|
+
publicFacet: import("@endo/exo").Guarded<{
|
|
801
|
+
getCollateralManager(brandIn: globalThis.Brand): import("@endo/exo").Guarded<{
|
|
802
|
+
makeVaultInvitation(): Promise<Invitation<{
|
|
477
803
|
publicSubscribers: {
|
|
478
804
|
vault: {
|
|
805
|
+
/**
|
|
806
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
807
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
808
|
+
* vat config.
|
|
809
|
+
*
|
|
810
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
811
|
+
*
|
|
812
|
+
* In production called by @agoric/vats to bootstrap.
|
|
813
|
+
*/
|
|
814
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
479
815
|
description: string;
|
|
480
816
|
subscriber: Subscriber<VaultNotification>;
|
|
481
817
|
storagePath: Promise<string>;
|
|
@@ -489,6 +825,16 @@ export type EconomyBootstrapSpace = PromiseSpaceOf<{
|
|
|
489
825
|
vault: import("@endo/exo").Guarded<{
|
|
490
826
|
getPublicTopics(): {
|
|
491
827
|
vault: {
|
|
828
|
+
/**
|
|
829
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
830
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
831
|
+
* vat config.
|
|
832
|
+
*
|
|
833
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
834
|
+
*
|
|
835
|
+
* In production called by @agoric/vats to bootstrap.
|
|
836
|
+
*/
|
|
837
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
492
838
|
description: string;
|
|
493
839
|
subscriber: Subscriber<VaultNotification>;
|
|
494
840
|
storagePath: Promise<string>;
|
|
@@ -502,12 +848,177 @@ export type EconomyBootstrapSpace = PromiseSpaceOf<{
|
|
|
502
848
|
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
503
849
|
}>;
|
|
504
850
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
851
|
+
}, undefined>>;
|
|
852
|
+
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
853
|
+
getCompoundedInterest(): Ratio;
|
|
854
|
+
getPublicTopics(): {
|
|
855
|
+
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").AssetState>;
|
|
856
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").MetricsNotification>;
|
|
857
|
+
};
|
|
858
|
+
}>;
|
|
859
|
+
getDebtIssuer(): globalThis.Issuer<"nat">;
|
|
860
|
+
getSubscription({ collateralBrand }: {
|
|
861
|
+
collateralBrand: globalThis.Brand;
|
|
862
|
+
}): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
863
|
+
getPublicTopics(): {
|
|
864
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
865
|
+
};
|
|
866
|
+
getElectorateSubscription(): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
867
|
+
getGovernedParams({ collateralBrand }: {
|
|
868
|
+
collateralBrand: globalThis.Brand;
|
|
869
|
+
}): ERef<globalThis.ParamStateRecord>;
|
|
870
|
+
getInvitationAmount(name: string): globalThis.Amount<"set">;
|
|
871
|
+
}>;
|
|
872
|
+
}>>>;
|
|
873
|
+
auctioneerKit: Promise<AuctioneerKit>;
|
|
874
|
+
minInitialDebt: Promise<bigint>;
|
|
875
|
+
};
|
|
876
|
+
produce: {
|
|
877
|
+
economicCommitteeKit: Producer<CommitteeStartResult>;
|
|
878
|
+
economicCommitteeCreatorFacet: Producer<import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet>;
|
|
879
|
+
feeDistributorKit: Producer<StartedInstanceKit<(zcf: ZCF<{
|
|
880
|
+
keywordShares: Record<string, bigint>;
|
|
881
|
+
timerService: ERef<import("@agoric/time").TimerService>;
|
|
882
|
+
collectionInterval: RelativeTime;
|
|
883
|
+
}>) => Promise<{
|
|
884
|
+
creatorFacet: {
|
|
885
|
+
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<import("../feeDistributor.js").CollectibleContractFacet>) => {
|
|
886
|
+
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
887
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
888
|
+
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
889
|
+
}>;
|
|
890
|
+
startPeriodicCollection: (debugName: string, collectorP: ERef<import("../feeDistributor.js").FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
891
|
+
makeDepositFacetDestination: (depositFacet: {
|
|
892
|
+
/**
|
|
893
|
+
* Deposit all the contents of payment
|
|
894
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
895
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
896
|
+
* payment, throw an error.
|
|
897
|
+
*
|
|
898
|
+
* If payment is a promise, throw an error.
|
|
899
|
+
*/
|
|
900
|
+
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
901
|
+
}) => {
|
|
902
|
+
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
903
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
904
|
+
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
905
|
+
}>;
|
|
906
|
+
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
|
|
907
|
+
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
908
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
909
|
+
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
910
|
+
}>;
|
|
911
|
+
setDestinations: (newDestinations: Record<string, ERef<import("../feeDistributor.js").FeeDestination>>) => Promise<void>;
|
|
912
|
+
setKeywordShares: (newShares: Record<string, bigint>) => void;
|
|
913
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
914
|
+
makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<import("../feeDistributor.js").CollectibleContractFacet>) => {
|
|
915
|
+
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
916
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
917
|
+
collectFees: () => Promise<globalThis.Payment<any>>;
|
|
918
|
+
}>;
|
|
919
|
+
startPeriodicCollection: (debugName: string, collectorP: ERef<import("../feeDistributor.js").FeeCollector>) => Promise<import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
920
|
+
makeDepositFacetDestination: (depositFacet: {
|
|
921
|
+
/**
|
|
922
|
+
* Deposit all the contents of payment
|
|
923
|
+
* into the purse that made this facet, returning the amount. If the optional
|
|
924
|
+
* argument `optAmount` does not equal the amount of digital assets in the
|
|
925
|
+
* payment, throw an error.
|
|
926
|
+
*
|
|
927
|
+
* If payment is a promise, throw an error.
|
|
928
|
+
*/
|
|
929
|
+
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
930
|
+
}) => {
|
|
931
|
+
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
932
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
933
|
+
pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
|
|
934
|
+
}>;
|
|
935
|
+
makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
|
|
936
|
+
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
937
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
938
|
+
pushPayment: (payment: any, issuer: any) => Promise<any>;
|
|
939
|
+
}>;
|
|
940
|
+
setDestinations: (newDestinations: Record<string, ERef<import("../feeDistributor.js").FeeDestination>>) => Promise<void>;
|
|
941
|
+
setKeywordShares: (newShares: Record<string, bigint>) => void;
|
|
942
|
+
}>;
|
|
943
|
+
publicFacet: {
|
|
944
|
+
distributeFees: (payment: globalThis.Payment<"nat">) => Promise<void>;
|
|
945
|
+
getKeywordShares: () => Record<string, bigint>;
|
|
946
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
947
|
+
distributeFees: (payment: globalThis.Payment<"nat">) => Promise<void>;
|
|
948
|
+
getKeywordShares: () => Record<string, bigint>;
|
|
949
|
+
}>;
|
|
950
|
+
}>>>;
|
|
951
|
+
periodicFeeCollectors: Producer<globalThis.MapStore<number, import("../feeDistributor.js").PeriodicFeeCollector>>;
|
|
952
|
+
psmKit: Producer<globalThis.MapStore<globalThis.Brand, PSMKit>>;
|
|
953
|
+
anchorBalancePayments: Producer<globalThis.MapStore<globalThis.Brand, globalThis.Payment<"nat">>>;
|
|
954
|
+
econCharterKit: Producer<EconCharterStartResult>;
|
|
955
|
+
reserveKit: Producer<globalThis.GovernanceFacetKit<(zcf: ZCF<globalThis.GovernanceTerms<{}> & {
|
|
956
|
+
governedApis: ["burnFeesToReduceShortfall"];
|
|
957
|
+
}>, privateArgs: {
|
|
958
|
+
feeMintAccess: FeeMintAccess;
|
|
959
|
+
initialPoserInvitation: Invitation<unknown, undefined>;
|
|
960
|
+
marshaller: ERef<Marshaller<unknown>>;
|
|
961
|
+
storageNode: ERef<StorageNode>;
|
|
962
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
963
|
+
creatorFacet: globalThis.GovernedCreatorFacet<import("@endo/exo").Guarded<{
|
|
964
|
+
addIssuer(issuer: globalThis.Issuer, keyword: string): Promise<void>;
|
|
965
|
+
getAllocations(): AmountKeywordRecord;
|
|
966
|
+
makeShortfallReportingInvitation(): Promise<Invitation<import("@endo/exo").Guarded<{
|
|
967
|
+
increaseLiquidationShortfall(shortfall: globalThis.Amount<"nat">): void;
|
|
968
|
+
reduceLiquidationShortfall(reduction: globalThis.Amount<"nat">): void;
|
|
969
|
+
}>, undefined>>;
|
|
970
|
+
}>>;
|
|
971
|
+
publicFacet: globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
972
|
+
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
973
|
+
getPublicTopics(): {
|
|
974
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
975
|
+
};
|
|
976
|
+
}>>;
|
|
977
|
+
}>>>;
|
|
978
|
+
vaultFactoryKit: Producer<globalThis.GovernanceFacetKit<(zcf: import("../vaultFactory/vaultFactory.js").VaultFactoryZCF, privateArgs: {
|
|
979
|
+
feeMintAccess: FeeMintAccess;
|
|
980
|
+
initialPoserInvitation: Invitation<unknown, undefined>;
|
|
981
|
+
initialShortfallInvitation: Invitation<unknown, undefined>;
|
|
982
|
+
storageNode: ERef<StorageNode>;
|
|
983
|
+
marshaller: ERef<Marshaller<unknown>>;
|
|
984
|
+
}, baggage: MapStore<string, any>) => Promise<{
|
|
985
|
+
creatorFacet: import("@endo/exo").Guarded<{
|
|
986
|
+
getParamMgrRetriever: () => {
|
|
987
|
+
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
988
|
+
DebtLimit: "amount";
|
|
989
|
+
InterestRate: "ratio";
|
|
990
|
+
LiquidationPadding: "ratio";
|
|
991
|
+
LiquidationMargin: "ratio";
|
|
992
|
+
LiquidationPenalty: "ratio";
|
|
993
|
+
MintFee: "ratio";
|
|
505
994
|
}>;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
995
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
996
|
+
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
997
|
+
DebtLimit: "amount";
|
|
998
|
+
InterestRate: "ratio";
|
|
999
|
+
LiquidationPadding: "ratio";
|
|
1000
|
+
LiquidationMargin: "ratio";
|
|
1001
|
+
LiquidationPenalty: "ratio";
|
|
1002
|
+
MintFee: "ratio";
|
|
1003
|
+
}>;
|
|
1004
|
+
}>;
|
|
1005
|
+
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
1006
|
+
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
1007
|
+
addVaultType(collateralIssuer: globalThis.Issuer<"nat">, collateralKeyword: string, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
1008
|
+
getGovernedParams(): import("../vaultFactory/vaultManager.js").GovernedParamGetters;
|
|
1009
|
+
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
509
1010
|
publicSubscribers: {
|
|
510
1011
|
vault: {
|
|
1012
|
+
/**
|
|
1013
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1014
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1015
|
+
* vat config.
|
|
1016
|
+
*
|
|
1017
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1018
|
+
*
|
|
1019
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1020
|
+
*/
|
|
1021
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
511
1022
|
description: string;
|
|
512
1023
|
subscriber: Subscriber<VaultNotification>;
|
|
513
1024
|
storagePath: Promise<string>;
|
|
@@ -521,6 +1032,16 @@ export type EconomyBootstrapSpace = PromiseSpaceOf<{
|
|
|
521
1032
|
vault: import("@endo/exo").Guarded<{
|
|
522
1033
|
getPublicTopics(): {
|
|
523
1034
|
vault: {
|
|
1035
|
+
/**
|
|
1036
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1037
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1038
|
+
* vat config.
|
|
1039
|
+
*
|
|
1040
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1041
|
+
*
|
|
1042
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1043
|
+
*/
|
|
1044
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
524
1045
|
description: string;
|
|
525
1046
|
subscriber: Subscriber<VaultNotification>;
|
|
526
1047
|
storagePath: Promise<string>;
|
|
@@ -534,132 +1055,274 @@ export type EconomyBootstrapSpace = PromiseSpaceOf<{
|
|
|
534
1055
|
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
535
1056
|
}>;
|
|
536
1057
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
1058
|
+
}>;
|
|
1059
|
+
getCollateralQuote(): PriceQuote;
|
|
1060
|
+
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
1061
|
+
makeVaultInvitation(): Promise<Invitation<{
|
|
1062
|
+
publicSubscribers: {
|
|
1063
|
+
vault: {
|
|
1064
|
+
/**
|
|
1065
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1066
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1067
|
+
* vat config.
|
|
1068
|
+
*
|
|
1069
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1070
|
+
*
|
|
1071
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1072
|
+
*/
|
|
1073
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1074
|
+
description: string;
|
|
1075
|
+
subscriber: Subscriber<VaultNotification>;
|
|
1076
|
+
storagePath: Promise<string>;
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
1080
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
1081
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
1082
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
1083
|
+
}>;
|
|
1084
|
+
vault: import("@endo/exo").Guarded<{
|
|
1085
|
+
getPublicTopics(): {
|
|
1086
|
+
vault: {
|
|
1087
|
+
/**
|
|
1088
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1089
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1090
|
+
* vat config.
|
|
1091
|
+
*
|
|
1092
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1093
|
+
*
|
|
1094
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1095
|
+
*/
|
|
1096
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1097
|
+
description: string;
|
|
1098
|
+
subscriber: Subscriber<VaultNotification>;
|
|
1099
|
+
storagePath: Promise<string>;
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
1103
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
1104
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
1105
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
1106
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
1107
|
+
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
1108
|
+
}>;
|
|
1109
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
1110
|
+
}, undefined>>;
|
|
1111
|
+
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
1112
|
+
getCompoundedInterest(): Ratio;
|
|
1113
|
+
getPublicTopics(): {
|
|
1114
|
+
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").AssetState>;
|
|
1115
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").MetricsNotification>;
|
|
1116
|
+
};
|
|
1117
|
+
}>;
|
|
1118
|
+
lockOraclePrices(): PriceQuote;
|
|
1119
|
+
liquidateVaults(auctionPF: ERef<globalThis.GovernedPublicFacet<{
|
|
1120
|
+
getElectorate: () => globalThis.Amount<"set">;
|
|
1121
|
+
getStartFrequency: () => RelativeTime;
|
|
1122
|
+
getClockStep: () => RelativeTime;
|
|
1123
|
+
getStartingRate: () => bigint;
|
|
1124
|
+
getLowestRate: () => bigint;
|
|
1125
|
+
getDiscountStep: () => bigint;
|
|
1126
|
+
getAuctionStartDelay: () => RelativeTime;
|
|
1127
|
+
getPriceLockPeriod: () => RelativeTime;
|
|
1128
|
+
makeBidInvitation(collateralBrand: globalThis.Brand<"nat">): Promise<Invitation<string, ({
|
|
1129
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
1130
|
+
} & {
|
|
1131
|
+
exitAfterBuy?: boolean | undefined;
|
|
1132
|
+
} & {
|
|
1133
|
+
offerPrice: Ratio;
|
|
1134
|
+
}) | ({
|
|
1135
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
1136
|
+
} & {
|
|
1137
|
+
exitAfterBuy?: boolean | undefined;
|
|
1138
|
+
} & {
|
|
1139
|
+
offerBidScaling: Ratio;
|
|
1140
|
+
})>>;
|
|
1141
|
+
getSchedules(): {
|
|
1142
|
+
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
1143
|
+
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
1144
|
+
};
|
|
1145
|
+
getScheduleUpdates(): Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
1146
|
+
getBookDataUpdates(brand: any): Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
1147
|
+
getPublicTopics(brand: any): {
|
|
1148
|
+
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
1149
|
+
} | {
|
|
1150
|
+
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
1151
|
+
};
|
|
1152
|
+
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
1153
|
+
goal: globalThis.Amount<"nat">;
|
|
1154
|
+
}>>;
|
|
1155
|
+
}>>): Promise<void>;
|
|
1156
|
+
}>>;
|
|
1157
|
+
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
1158
|
+
getRewardAllocation(): AmountKeywordRecord;
|
|
1159
|
+
makeLiquidationWaker(): {
|
|
1160
|
+
wake: (timestamp: any) => any;
|
|
1161
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
1162
|
+
wake: (timestamp: any) => any;
|
|
1163
|
+
}>;
|
|
1164
|
+
makeReschedulerWaker(): {
|
|
1165
|
+
wake: (timestamp: any) => any;
|
|
1166
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
1167
|
+
wake: (timestamp: any) => any;
|
|
1168
|
+
}>;
|
|
1169
|
+
makePriceLockWaker(): {
|
|
1170
|
+
wake: (timestamp: any) => any;
|
|
1171
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
1172
|
+
wake: (timestamp: any) => any;
|
|
544
1173
|
}>;
|
|
545
|
-
lockOraclePrices(): PriceQuote;
|
|
546
|
-
liquidateVaults(auctionPF: ERef<globalThis.GovernedPublicFacet<{
|
|
547
|
-
getElectorate: () => globalThis.Amount<"set">;
|
|
548
|
-
getStartFrequency: () => RelativeTime;
|
|
549
|
-
getClockStep: () => RelativeTime;
|
|
550
|
-
getStartingRate: () => bigint;
|
|
551
|
-
getLowestRate: () => bigint;
|
|
552
|
-
getDiscountStep: () => bigint;
|
|
553
|
-
getAuctionStartDelay: () => RelativeTime;
|
|
554
|
-
getPriceLockPeriod: () => RelativeTime;
|
|
555
|
-
makeBidInvitation(collateralBrand: globalThis.Brand<"nat">): Promise<Invitation<string, ({
|
|
556
|
-
maxBuy: globalThis.Amount<"nat">;
|
|
557
|
-
} & {
|
|
558
|
-
exitAfterBuy?: boolean | undefined;
|
|
559
|
-
} & {
|
|
560
|
-
offerPrice: Ratio;
|
|
561
|
-
}) | ({
|
|
562
|
-
maxBuy: globalThis.Amount<"nat">;
|
|
563
|
-
} & {
|
|
564
|
-
exitAfterBuy?: boolean | undefined;
|
|
565
|
-
} & {
|
|
566
|
-
offerBidScaling: Ratio;
|
|
567
|
-
})>>;
|
|
568
|
-
getSchedules(): {
|
|
569
|
-
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
570
|
-
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
571
|
-
};
|
|
572
|
-
getScheduleUpdates(): Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
573
|
-
getBookDataUpdates(brand: any): Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
574
|
-
getPublicTopics(brand: any): {
|
|
575
|
-
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
576
|
-
} | {
|
|
577
|
-
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
578
|
-
};
|
|
579
|
-
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
580
|
-
goal: globalThis.Amount<"nat">;
|
|
581
|
-
}>>;
|
|
582
|
-
}>>): Promise<void>;
|
|
583
|
-
}>>;
|
|
584
|
-
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
585
|
-
getRewardAllocation(): AmountKeywordRecord;
|
|
586
|
-
makeLiquidationWaker(): {
|
|
587
|
-
wake: (timestamp: any) => any;
|
|
588
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
589
|
-
wake: (timestamp: any) => any;
|
|
590
|
-
}>;
|
|
591
|
-
makeReschedulerWaker(): {
|
|
592
|
-
wake: (timestamp: any) => any;
|
|
593
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
594
|
-
wake: (timestamp: any) => any;
|
|
595
|
-
}>;
|
|
596
|
-
makePriceLockWaker(): {
|
|
597
|
-
wake: (timestamp: any) => any;
|
|
598
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
599
|
-
wake: (timestamp: any) => any;
|
|
600
1174
|
}>;
|
|
1175
|
+
getGovernedApis(): ERef<globalThis.GovernedApis>;
|
|
1176
|
+
getGovernedApiNames(): never[];
|
|
1177
|
+
setOfferFilter: (strings: any) => Promise<void>;
|
|
601
1178
|
}>;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
publicFacet: import("@endo/exo").Guarded<{
|
|
607
|
-
getCollateralManager(brandIn: globalThis.Brand): import("@endo/exo").Guarded<{
|
|
608
|
-
makeVaultInvitation(): Promise<Invitation<{
|
|
609
|
-
publicSubscribers: {
|
|
610
|
-
vault: {
|
|
611
|
-
description: string;
|
|
612
|
-
subscriber: Subscriber<VaultNotification>;
|
|
613
|
-
storagePath: Promise<string>;
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
617
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
618
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
619
|
-
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
620
|
-
}>;
|
|
621
|
-
vault: import("@endo/exo").Guarded<{
|
|
622
|
-
getPublicTopics(): {
|
|
1179
|
+
publicFacet: import("@endo/exo").Guarded<{
|
|
1180
|
+
getCollateralManager(brandIn: globalThis.Brand): import("@endo/exo").Guarded<{
|
|
1181
|
+
makeVaultInvitation(): Promise<Invitation<{
|
|
1182
|
+
publicSubscribers: {
|
|
623
1183
|
vault: {
|
|
1184
|
+
/**
|
|
1185
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1186
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1187
|
+
* vat config.
|
|
1188
|
+
*
|
|
1189
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1190
|
+
*
|
|
1191
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1192
|
+
*/
|
|
1193
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
624
1194
|
description: string;
|
|
625
1195
|
subscriber: Subscriber<VaultNotification>;
|
|
626
1196
|
storagePath: Promise<string>;
|
|
627
1197
|
};
|
|
628
1198
|
};
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
1199
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
1200
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
1201
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
1202
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
1203
|
+
}>;
|
|
1204
|
+
vault: import("@endo/exo").Guarded<{
|
|
1205
|
+
getPublicTopics(): {
|
|
1206
|
+
vault: {
|
|
1207
|
+
/**
|
|
1208
|
+
* @file A collection of productions, each of which declares inputs and outputs.
|
|
1209
|
+
* Each function is passed a set of powers for reading from and writing to the
|
|
1210
|
+
* vat config.
|
|
1211
|
+
*
|
|
1212
|
+
* Each of the things they produce they're responsible for resolving or setting.
|
|
1213
|
+
*
|
|
1214
|
+
* In production called by @agoric/vats to bootstrap.
|
|
1215
|
+
*/
|
|
1216
|
+
/** @param {EconomyBootstrapPowers} powers */
|
|
1217
|
+
description: string;
|
|
1218
|
+
subscriber: Subscriber<VaultNotification>;
|
|
1219
|
+
storagePath: Promise<string>;
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
1223
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
1224
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
1225
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
1226
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
1227
|
+
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
1228
|
+
}>;
|
|
1229
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
1230
|
+
}, undefined>>;
|
|
1231
|
+
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
1232
|
+
getCompoundedInterest(): Ratio;
|
|
1233
|
+
getPublicTopics(): {
|
|
1234
|
+
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").AssetState>;
|
|
1235
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").MetricsNotification>;
|
|
1236
|
+
};
|
|
1237
|
+
}>;
|
|
1238
|
+
getDebtIssuer(): globalThis.Issuer<"nat">;
|
|
1239
|
+
getSubscription({ collateralBrand }: {
|
|
1240
|
+
collateralBrand: globalThis.Brand;
|
|
1241
|
+
}): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
640
1242
|
getPublicTopics(): {
|
|
641
|
-
|
|
642
|
-
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").MetricsNotification>;
|
|
1243
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
643
1244
|
};
|
|
1245
|
+
getElectorateSubscription(): StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
1246
|
+
getGovernedParams({ collateralBrand }: {
|
|
1247
|
+
collateralBrand: globalThis.Brand;
|
|
1248
|
+
}): ERef<globalThis.ParamStateRecord>;
|
|
1249
|
+
getInvitationAmount(name: string): globalThis.Amount<"set">;
|
|
644
1250
|
}>;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
1251
|
+
}>>>;
|
|
1252
|
+
auctioneerKit: Producer<AuctioneerKit>;
|
|
1253
|
+
minInitialDebt: Producer<bigint>;
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
export type EconCharterStartResult = {
|
|
1257
|
+
instance: import("@agoric/zoe/src/zoeService/utils.js").Instance<(zcf: ZCF<{
|
|
1258
|
+
binaryVoteCounterInstallation: Installation<any>;
|
|
1259
|
+
}>, privateArgs: undefined, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
1260
|
+
creatorFacet: import("@endo/exo").Guarded<{
|
|
1261
|
+
addInstance: (governedInstance: Instance, governorFacet: globalThis.GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
1262
|
+
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
1263
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
1264
|
+
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
1265
|
+
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1266
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: bigint) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1267
|
+
}>;
|
|
1268
|
+
}, undefined>>;
|
|
657
1269
|
}>;
|
|
658
1270
|
}>>;
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
|
|
1271
|
+
adminFacet: import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<(zcf: ZCF<{
|
|
1272
|
+
binaryVoteCounterInstallation: Installation<any>;
|
|
1273
|
+
}>, privateArgs: undefined, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
1274
|
+
creatorFacet: import("@endo/exo").Guarded<{
|
|
1275
|
+
addInstance: (governedInstance: Instance, governorFacet: globalThis.GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
1276
|
+
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
1277
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
1278
|
+
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
1279
|
+
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1280
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: bigint) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1281
|
+
}>;
|
|
1282
|
+
}, undefined>>;
|
|
1283
|
+
}>;
|
|
1284
|
+
}>>;
|
|
1285
|
+
creatorFacet: {};
|
|
1286
|
+
publicFacet: {};
|
|
1287
|
+
} & {
|
|
1288
|
+
creatorFacet: import("@endo/exo").Guarded<{
|
|
1289
|
+
addInstance: (governedInstance: Instance, governorFacet: globalThis.GovernorCreatorFacet<any>, label?: string | undefined) => void;
|
|
1290
|
+
makeCharterMemberInvitation: () => Promise<Invitation<{
|
|
1291
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
1292
|
+
VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, import("../econCommitteeCharter.js").ParamChangesOfferArgs>>;
|
|
1293
|
+
VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1294
|
+
VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: bigint) => Promise<Invitation<import("@agoric/governance/exported.js").ContractGovernanceVoteResult, undefined>>;
|
|
1295
|
+
}>;
|
|
1296
|
+
}, undefined>>;
|
|
1297
|
+
}>;
|
|
1298
|
+
};
|
|
1299
|
+
export type CommitteeStartResult = {
|
|
1300
|
+
instance: import("@agoric/zoe/src/zoeService/utils.js").Instance<(zcf: ZCF<{
|
|
1301
|
+
committeeName: string;
|
|
1302
|
+
committeeSize: number;
|
|
1303
|
+
}>, privateArgs: {
|
|
1304
|
+
storageNode: ERef<StorageNode>;
|
|
1305
|
+
marshaller: ERef<Marshaller<unknown>>;
|
|
1306
|
+
}, baggage: import("@agoric/vat-data").Baggage) => {
|
|
1307
|
+
creatorFacet: import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet;
|
|
1308
|
+
publicFacet: globalThis.CommitteeElectoratePublic;
|
|
1309
|
+
}>;
|
|
1310
|
+
adminFacet: import("@agoric/zoe/src/zoeService/utils.js").AdminFacet<(zcf: ZCF<{
|
|
1311
|
+
committeeName: string;
|
|
1312
|
+
committeeSize: number;
|
|
1313
|
+
}>, privateArgs: {
|
|
1314
|
+
storageNode: ERef<StorageNode>;
|
|
1315
|
+
marshaller: ERef<Marshaller<unknown>>;
|
|
1316
|
+
}, baggage: import("@agoric/vat-data").Baggage) => {
|
|
1317
|
+
creatorFacet: import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet;
|
|
1318
|
+
publicFacet: globalThis.CommitteeElectoratePublic;
|
|
1319
|
+
}>;
|
|
1320
|
+
creatorFacet: {};
|
|
1321
|
+
publicFacet: {};
|
|
1322
|
+
} & {
|
|
1323
|
+
creatorFacet: import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet;
|
|
1324
|
+
publicFacet: globalThis.CommitteeElectoratePublic;
|
|
1325
|
+
};
|
|
664
1326
|
import { Stable } from '@agoric/internal/src/tokens.js';
|
|
1327
|
+
import type { StartedInstanceKit } from '@agoric/zoe/src/zoeService/utils.js';
|
|
665
1328
|
//# sourceMappingURL=econ-behaviors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"econ-behaviors.d.ts","sourceRoot":"","sources":["econ-behaviors.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"econ-behaviors.d.ts","sourceRoot":"","sources":["econ-behaviors.js"],"names":[],"mappings":"AAmBA,qCAAsC;AACtC,sCAA0C;AAC1C,qCAAsD;AACtD,sCAAqD;AAsE9C,mcADK,sBAAsB;;;;;;;;;;;;;;;;;;;;;;KA+FjC;AAUM,oDAPI,sBAAsB,CAAC,SAAS,CAAC;IAET,cAAc;IACtB,OAAO;;;+BAEvB,OAAO,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EvB;AAUM,wSAPI,sBAAsB;IAEE,cAAc;IACtB,OAAO;;;oBAEvB,MAAM,iBA6FhB;AAWM,wGALI,sBAAsB;;;;8BAuBhC;AAQM,mcAFI,sBAAsB,iBAyGhC;AAQM,+cAJI,sBAAsB;IAET,aAAa,GAA1B,GAAG;kBA0Hb;sCArmBa,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAwDtB;;;;;;;;+BAQG;4BAEH,6CAA6C;;;;;;;;;;;;;;gCAV7C;;;;;;;;mCAQG;gCAEH,6CAA6C;;;;;;;;;;;;;;;;;;;;gCAV7C;;;;;;;;mCAQG;gCAEH,6CAA6C;;;;;;;;;;;;;;oCAV7C;;;;;;;;uCAQG;oCAEH,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAV7C;;;;;;;;2BAQG;wBAEH,6CAA6C;;;;;;;;;;;;;;4BAV7C;;;;;;;;+BAQG;4BAEH,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAlEJ,CAAC,CAAC,aAAa,CAAC;;WAI3C,MAAM;SACN,QAAQ;iBACR,QAAQ;qBACR,QACb,WACA,QACA,WAAmB,+BAAwB,OAAO,CAAC,CAAC,CAC7C,CAAC,cAAc,CAAC,CAAC,wBAAwB,CAAC,CAC5C,CACF;6BACU,qBAAqB,+BAA+B,OAAO,CAAC,CAAC;mBAC7D,UAAU;;4BAGV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D;qCAG7D,eAAe,GAAG,mBAAmB,GAAG,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAmC1E;;;;;;;;uCAQG;oCAEH,6CAA6C;;;;;;;;;;;;;;wCAV7C;;;;;;;;2CAQG;wCAEH,6CAA6C;;;;;;;;;;;;;;;;;;;;wCAV7C;;;;;;;;2CAQG;wCAEH,6CAA6C;;;;;;;;;;;;;;4CAV7C;;;;;;;;+CAQG;4CAEH,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAV7C;;;;;;;;mCAQG;gCAEH,6CAA6C;;;;;;;;;;;;;;oCAV7C;;;;;;;;uCAQG;oCAEH,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAV7C;;;;;;;;uCAQG;oCAEH,6CAA6C;;;;;;;;;;;;;;wCAV7C;;;;;;;;2CAQG;wCAEH,6CAA6C;;;;;;;;;;;;;;;;;;;;wCAV7C;;;;;;;;2CAQG;wCAEH,6CAA6C;;;;;;;;;;;;;;4CAV7C;;;;;;;;+CAQG;4CAEH,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAV7C;;;;;;;;mCAQG;gCAEH,6CAA6C;;;;;;;;;;;;;;oCAV7C;;;;;;;;uCAQG;oCAEH,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAjFtB,gCAAgC;wCAKjB,qCAAqC"}
|
|
@@ -13,6 +13,8 @@ import { makeGovernedTerms as makeGovernedATerms } from '../auction/params.js';
|
|
|
13
13
|
import { makeReserveTerms } from '../reserve/params.js';
|
|
14
14
|
import { makeGovernedTerms as makeGovernedVFTerms } from '../vaultFactory/params.js';
|
|
15
15
|
|
|
16
|
+
/** @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js' */
|
|
17
|
+
|
|
16
18
|
const trace = makeTracer('RunEconBehaviors', true);
|
|
17
19
|
|
|
18
20
|
export const SECONDS_PER_MINUTE = 60n;
|
|
@@ -67,12 +69,12 @@ export const SECONDS_PER_WEEK = 7n * SECONDS_PER_DAY;
|
|
|
67
69
|
*/
|
|
68
70
|
|
|
69
71
|
/**
|
|
70
|
-
* @typedef {
|
|
72
|
+
* @typedef {StartedInstanceKit<
|
|
71
73
|
* import('../econCommitteeCharter.js')['start']
|
|
72
74
|
* >} EconCharterStartResult
|
|
73
75
|
*/
|
|
74
76
|
/**
|
|
75
|
-
* @typedef {
|
|
77
|
+
* @typedef {StartedInstanceKit<
|
|
76
78
|
* import('@agoric/governance/src/committee.js')['start']
|
|
77
79
|
* >} CommitteeStartResult
|
|
78
80
|
*/
|