@agoric/inter-protocol 0.16.2-other-dev-3eb1a1d.0 → 0.16.2-other-dev-d15096d.0.d15096d
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 +36 -35
- package/src/auction/auctionBook.d.ts +9 -7
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +58 -32
- package/src/auction/auctionMath.d.ts +1 -1
- package/src/auction/auctionMath.d.ts.map +1 -1
- package/src/auction/auctioneer.d.ts +19 -13
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +25 -12
- package/src/auction/offerBook.d.ts +3 -2
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/offerBook.js +5 -1
- package/src/auction/params.d.ts +16 -7
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +12 -4
- package/src/auction/scheduleMath.d.ts +5 -3
- package/src/auction/scheduleMath.d.ts.map +1 -1
- package/src/auction/scheduleMath.js +11 -7
- package/src/auction/scheduler.d.ts +9 -4
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/scheduler.js +14 -6
- package/src/auction/util.d.ts +2 -1
- package/src/auction/util.d.ts.map +1 -1
- package/src/auction/util.js +4 -1
- package/src/clientSupport.d.ts +29 -73
- package/src/clientSupport.d.ts.map +1 -1
- package/src/clientSupport.js +29 -128
- package/src/contractSupport.d.ts +2 -2
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +15 -8
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/econCommitteeCharter.js +14 -8
- package/src/feeDistributor.d.ts +43 -49
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +7 -3
- package/src/index.js +1 -1
- package/src/interest-math.d.ts +1 -0
- package/src/interest-math.d.ts.map +1 -1
- package/src/interest-math.js +5 -1
- package/src/interest.d.ts +3 -1
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +2 -5
- package/src/price/README.md +1 -1
- package/src/price/fluxAggregatorContract.d.ts +20 -11
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +17 -9
- package/src/price/fluxAggregatorKit.d.ts +15 -9
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.js +15 -9
- package/src/price/priceOracleKit.d.ts +4 -2
- package/src/price/priceOracleKit.d.ts.map +1 -1
- package/src/price/priceOracleKit.js +7 -2
- package/src/price/roundsManager.d.ts +8 -6
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +5 -2
- package/src/proposals/add-auction.js +38 -4
- package/src/proposals/addAssetToVault.js +8 -4
- package/src/proposals/committee-proposal.js +10 -5
- package/src/proposals/core-proposal.js +9 -3
- package/src/proposals/deploy-price-feeds.js +35 -7
- package/src/proposals/econ-behaviors.js +33 -12
- package/src/proposals/price-feed-proposal.js +10 -3
- package/src/proposals/replace-fee-distributor.js +12 -6
- package/src/proposals/replaceElectorate.js +105 -16
- package/src/proposals/startEconCommittee.js +5 -1
- package/src/proposals/startPSM.js +7 -4
- package/src/proposals/upgrade-vaults.js +15 -5
- package/src/proposals/utils.d.ts +8 -4
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/proposals/utils.js +32 -9
- package/src/proposals/withdraw-reserve-proposal.js +63 -0
- package/src/provisionPool.d.ts +34 -120
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPool.js +43 -21
- package/src/provisionPoolKit.d.ts +43 -328
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +210 -120
- package/src/psm/psm.d.ts +20 -13
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +18 -12
- package/src/reserve/assetReserve.d.ts +18 -6
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +26 -23
- package/src/reserve/assetReserveKit.d.ts +38 -6
- package/src/reserve/assetReserveKit.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.js +117 -7
- package/src/reserve/params.d.ts +9 -3
- package/src/reserve/params.d.ts.map +1 -1
- package/src/reserve/params.js +8 -2
- package/src/vaultFactory/burn.d.ts +1 -1
- package/src/vaultFactory/burn.d.ts.map +1 -1
- package/src/vaultFactory/burn.js +1 -1
- package/src/vaultFactory/liquidation.d.ts +7 -3
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +14 -12
- package/src/vaultFactory/math.d.ts +1 -1
- package/src/vaultFactory/math.d.ts.map +1 -1
- package/src/vaultFactory/math.js +1 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +21 -20
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.js +4 -2
- package/src/vaultFactory/params.d.ts +25 -9
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +29 -11
- package/src/vaultFactory/prioritizedVaults.d.ts +70 -69
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +5 -2
- package/src/vaultFactory/storeUtils.d.ts +2 -2
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.d.ts +2 -2
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.js +6 -2
- package/src/vaultFactory/vault.d.ts +34 -30
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +19 -15
- package/src/vaultFactory/vaultDirector.d.ts +81 -63
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +38 -24
- package/src/vaultFactory/vaultFactory.d.ts +35 -22
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +27 -17
- package/src/vaultFactory/vaultHolder.d.ts +77 -29
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +12 -4
- package/src/vaultFactory/vaultKit.d.ts +12 -8
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +12 -5
- package/src/vaultFactory/vaultManager.d.ts +102 -88
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +86 -53
- package/src/proposals/add-auction.d.ts +0 -109
- package/src/proposals/add-auction.d.ts.map +0 -1
- package/src/proposals/addAssetToVault.d.ts +0 -173
- package/src/proposals/addAssetToVault.d.ts.map +0 -1
- package/src/proposals/committee-proposal.d.ts +0 -113
- package/src/proposals/committee-proposal.d.ts.map +0 -1
- package/src/proposals/core-proposal.d.ts +0 -149
- package/src/proposals/core-proposal.d.ts.map +0 -1
- package/src/proposals/deploy-price-feeds.d.ts +0 -76
- package/src/proposals/deploy-price-feeds.d.ts.map +0 -1
- package/src/proposals/econ-behaviors.d.ts +0 -541
- package/src/proposals/econ-behaviors.d.ts.map +0 -1
- package/src/proposals/price-feed-proposal.d.ts +0 -84
- package/src/proposals/price-feed-proposal.d.ts.map +0 -1
- package/src/proposals/replace-fee-distributor.d.ts +0 -48
- package/src/proposals/replace-fee-distributor.d.ts.map +0 -1
- package/src/proposals/replace-scaledPriceAuthorities.d.ts +0 -30
- package/src/proposals/replace-scaledPriceAuthorities.d.ts.map +0 -1
- package/src/proposals/replaceElectorate.d.ts +0 -55
- package/src/proposals/replaceElectorate.d.ts.map +0 -1
- package/src/proposals/startEconCommittee.d.ts +0 -34
- package/src/proposals/startEconCommittee.d.ts.map +0 -1
- package/src/proposals/startPSM.d.ts +0 -59
- package/src/proposals/startPSM.d.ts.map +0 -1
- package/src/proposals/upgrade-scaledPriceAuthorities.d.ts +0 -24
- package/src/proposals/upgrade-scaledPriceAuthorities.d.ts.map +0 -1
- package/src/proposals/upgrade-vaults.d.ts +0 -41
- package/src/proposals/upgrade-vaults.d.ts.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export function makeAllManagersDo(collateralManagers: any, vaultManagers: any): (fn: (vm: VaultManager) => void) => void;
|
|
2
|
+
/** @typedef {EReturn<EReturn<typeof prepareVaultDirector>>} VaultDirector */
|
|
2
3
|
/**
|
|
3
4
|
* Prepare the VaultDirector kind, get or make the singleton
|
|
4
5
|
*
|
|
5
6
|
* @type {(
|
|
6
7
|
* ...pvdArgs: Parameters<typeof prepareVaultDirector>
|
|
7
|
-
* ) =>
|
|
8
|
+
* ) => VaultDirector}
|
|
8
9
|
*/
|
|
9
|
-
export const provideDirector: (...pvdArgs: Parameters<typeof prepareVaultDirector>) =>
|
|
10
|
+
export const provideDirector: (...pvdArgs: Parameters<typeof prepareVaultDirector>) => VaultDirector;
|
|
10
11
|
export type MetricsNotification = {
|
|
11
12
|
collaterals: Brand[];
|
|
12
13
|
rewardPoolAllocation: AmountKeywordRecord;
|
|
@@ -16,32 +17,33 @@ export type MutableState = {};
|
|
|
16
17
|
export type State = ImmutableState & MutableState;
|
|
17
18
|
export type FactoryPowersFacet = {
|
|
18
19
|
burnDebt: BurnDebt;
|
|
19
|
-
getGovernedParams: (collateralBrand: Brand) =>
|
|
20
|
+
getGovernedParams: (collateralBrand: Brand) => GovernedParamGetters;
|
|
20
21
|
mintAndTransfer: MintAndTransfer;
|
|
21
|
-
getShortfallReporter: () => Promise<
|
|
22
|
+
getShortfallReporter: () => Promise<ShortfallReporter>;
|
|
22
23
|
};
|
|
23
24
|
export type MethodContext = Readonly<{
|
|
24
25
|
state: State;
|
|
25
26
|
}>;
|
|
26
|
-
export type VaultDirectorParamManager =
|
|
27
|
+
export type VaultDirectorParamManager = TypedParamManager<VaultDirectorParams>;
|
|
28
|
+
export type VaultDirector = EReturn<EReturn<typeof prepareVaultDirector>>;
|
|
27
29
|
/**
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {
|
|
30
|
+
* @param {Baggage} baggage
|
|
31
|
+
* @param {VaultFactoryZCF} zcf
|
|
30
32
|
* @param {VaultDirectorParamManager} directorParamManager
|
|
31
33
|
* @param {ZCFMint<'nat'>} debtMint
|
|
32
|
-
* @param {ERef<
|
|
33
|
-
* @param {ERef<
|
|
34
|
-
* @param {
|
|
35
|
-
* @param {
|
|
36
|
-
* @param {
|
|
37
|
-
* @param {
|
|
34
|
+
* @param {ERef<TimerService>} timer
|
|
35
|
+
* @param {ERef<AuctioneerPublicFacet>} auctioneer
|
|
36
|
+
* @param {ERemote<StorageNode>} storageNode
|
|
37
|
+
* @param {ERemote<EMarshaller>} marshaller
|
|
38
|
+
* @param {MakeRecorderKit} makeRecorderKit
|
|
39
|
+
* @param {MakeERecorderKit} makeERecorderKit
|
|
38
40
|
* @param {Record<string, import('./params.js').VaultManagerParamOverrides>} managerParams
|
|
39
41
|
*/
|
|
40
|
-
declare function prepareVaultDirector(baggage:
|
|
42
|
+
declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, directorParamManager: VaultDirectorParamManager, debtMint: ZCFMint<"nat">, timer: ERef<TimerService>, auctioneer: ERef<AuctioneerPublicFacet>, storageNode: ERemote<StorageNode>, marshaller: ERemote<EMarshaller>, makeRecorderKit: MakeRecorderKit, makeERecorderKit: MakeERecorderKit, managerParams: Record<string, import("./params.js").VaultManagerParamOverrides>): () => import("@endo/exo").GuardedKit<{
|
|
41
43
|
creator: {
|
|
42
44
|
getParamMgrRetriever: () => {
|
|
43
45
|
/** @param {VaultFactoryParamPath} paramPath */
|
|
44
|
-
get: (paramPath?: VaultFactoryParamPath) => VaultDirectorParamManager |
|
|
46
|
+
get: (paramPath?: VaultFactoryParamPath) => VaultDirectorParamManager | TypedParamManager<{
|
|
45
47
|
DebtLimit: "amount";
|
|
46
48
|
InterestRate: "ratio";
|
|
47
49
|
LiquidationPadding: "ratio";
|
|
@@ -49,9 +51,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
49
51
|
LiquidationPenalty: "ratio";
|
|
50
52
|
MintFee: "ratio";
|
|
51
53
|
}>;
|
|
52
|
-
} &
|
|
54
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
53
55
|
/** @param {VaultFactoryParamPath} paramPath */
|
|
54
|
-
get: (paramPath?: VaultFactoryParamPath) => VaultDirectorParamManager |
|
|
56
|
+
get: (paramPath?: VaultFactoryParamPath) => VaultDirectorParamManager | TypedParamManager<{
|
|
55
57
|
DebtLimit: "amount";
|
|
56
58
|
InterestRate: "ratio";
|
|
57
59
|
LiquidationPadding: "ratio";
|
|
@@ -61,7 +63,7 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
61
63
|
}>;
|
|
62
64
|
}>;
|
|
63
65
|
/** @param {string} name */
|
|
64
|
-
getInvitation(name: string): Promise<Invitation
|
|
66
|
+
getInvitation(name: string): Promise<globalThis.Invitation>;
|
|
65
67
|
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
66
68
|
/**
|
|
67
69
|
* @param {Issuer<'nat'>} collateralIssuer
|
|
@@ -69,7 +71,7 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
69
71
|
* @param {VaultManagerParamValues} initialParamValues
|
|
70
72
|
*/
|
|
71
73
|
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
72
|
-
getGovernedParams():
|
|
74
|
+
getGovernedParams(): GovernedParamGetters;
|
|
73
75
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
74
76
|
publicSubscribers: {
|
|
75
77
|
vault: {
|
|
@@ -79,9 +81,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
79
81
|
};
|
|
80
82
|
};
|
|
81
83
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
82
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
83
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
84
|
-
TransferVault(): Promise<Invitation
|
|
84
|
+
AdjustBalances(): Promise<globalThis.Invitation<string, undefined>>;
|
|
85
|
+
CloseVault(): Promise<globalThis.Invitation<string, undefined>>;
|
|
86
|
+
TransferVault(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
85
87
|
}>;
|
|
86
88
|
vault: import("@endo/exo").Guarded<{
|
|
87
89
|
getPublicTopics(): {
|
|
@@ -91,9 +93,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
91
93
|
storagePath: Promise<string>;
|
|
92
94
|
};
|
|
93
95
|
};
|
|
94
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
95
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
96
|
-
makeTransferInvitation(): Promise<Invitation
|
|
96
|
+
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
97
|
+
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
98
|
+
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
97
99
|
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
98
100
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
99
101
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
@@ -102,7 +104,7 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
102
104
|
}>;
|
|
103
105
|
getCollateralQuote(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
104
106
|
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
105
|
-
makeVaultInvitation(): Promise<Invitation<{
|
|
107
|
+
makeVaultInvitation(): Promise<globalThis.Invitation<{
|
|
106
108
|
publicSubscribers: {
|
|
107
109
|
vault: {
|
|
108
110
|
description: string;
|
|
@@ -111,9 +113,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
111
113
|
};
|
|
112
114
|
};
|
|
113
115
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
114
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
115
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
116
|
-
TransferVault(): Promise<Invitation
|
|
116
|
+
AdjustBalances(): Promise<globalThis.Invitation<string, undefined>>;
|
|
117
|
+
CloseVault(): Promise<globalThis.Invitation<string, undefined>>;
|
|
118
|
+
TransferVault(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
117
119
|
}>;
|
|
118
120
|
vault: import("@endo/exo").Guarded<{
|
|
119
121
|
getPublicTopics(): {
|
|
@@ -123,9 +125,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
123
125
|
storagePath: Promise<string>;
|
|
124
126
|
};
|
|
125
127
|
};
|
|
126
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
127
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
128
|
-
makeTransferInvitation(): Promise<Invitation
|
|
128
|
+
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
129
|
+
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
130
|
+
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
129
131
|
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
130
132
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
131
133
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
@@ -142,21 +144,21 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
142
144
|
lockOraclePrices(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
143
145
|
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
144
146
|
}>>;
|
|
145
|
-
makeCollectFeesInvitation(): Promise<Invitation<string
|
|
147
|
+
makeCollectFeesInvitation(): Promise<globalThis.Invitation<string>>;
|
|
146
148
|
getRewardAllocation(): Allocation;
|
|
147
149
|
makeLiquidationWaker(): {
|
|
148
150
|
wake: (timestamp: any) => any;
|
|
149
|
-
} &
|
|
151
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
150
152
|
wake: (timestamp: any) => any;
|
|
151
153
|
}>;
|
|
152
154
|
makeReschedulerWaker(): {
|
|
153
155
|
wake: (timestamp: any) => any;
|
|
154
|
-
} &
|
|
156
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
155
157
|
wake: (timestamp: any) => any;
|
|
156
158
|
}>;
|
|
157
159
|
makePriceLockWaker(): {
|
|
158
160
|
wake: (timestamp: any) => any;
|
|
159
|
-
} &
|
|
161
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
160
162
|
wake: (timestamp: any) => any;
|
|
161
163
|
}>;
|
|
162
164
|
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
@@ -173,7 +175,7 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
173
175
|
* @param {VaultManagerParamValues} initialParamValues
|
|
174
176
|
*/
|
|
175
177
|
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
176
|
-
getGovernedParams():
|
|
178
|
+
getGovernedParams(): GovernedParamGetters;
|
|
177
179
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
178
180
|
publicSubscribers: {
|
|
179
181
|
vault: {
|
|
@@ -183,9 +185,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
183
185
|
};
|
|
184
186
|
};
|
|
185
187
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
186
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
187
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
188
|
-
TransferVault(): Promise<Invitation
|
|
188
|
+
AdjustBalances(): Promise<globalThis.Invitation<string, undefined>>;
|
|
189
|
+
CloseVault(): Promise<globalThis.Invitation<string, undefined>>;
|
|
190
|
+
TransferVault(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
189
191
|
}>;
|
|
190
192
|
vault: import("@endo/exo").Guarded<{
|
|
191
193
|
getPublicTopics(): {
|
|
@@ -195,9 +197,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
195
197
|
storagePath: Promise<string>;
|
|
196
198
|
};
|
|
197
199
|
};
|
|
198
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
199
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
200
|
-
makeTransferInvitation(): Promise<Invitation
|
|
200
|
+
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
201
|
+
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
202
|
+
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
201
203
|
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
202
204
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
203
205
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
@@ -206,7 +208,7 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
206
208
|
}>;
|
|
207
209
|
getCollateralQuote(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
208
210
|
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
209
|
-
makeVaultInvitation(): Promise<Invitation<{
|
|
211
|
+
makeVaultInvitation(): Promise<globalThis.Invitation<{
|
|
210
212
|
publicSubscribers: {
|
|
211
213
|
vault: {
|
|
212
214
|
description: string;
|
|
@@ -215,9 +217,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
215
217
|
};
|
|
216
218
|
};
|
|
217
219
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
218
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
219
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
220
|
-
TransferVault(): Promise<Invitation
|
|
220
|
+
AdjustBalances(): Promise<globalThis.Invitation<string, undefined>>;
|
|
221
|
+
CloseVault(): Promise<globalThis.Invitation<string, undefined>>;
|
|
222
|
+
TransferVault(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
221
223
|
}>;
|
|
222
224
|
vault: import("@endo/exo").Guarded<{
|
|
223
225
|
getPublicTopics(): {
|
|
@@ -227,9 +229,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
227
229
|
storagePath: Promise<string>;
|
|
228
230
|
};
|
|
229
231
|
};
|
|
230
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
231
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
232
|
-
makeTransferInvitation(): Promise<Invitation
|
|
232
|
+
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
233
|
+
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
234
|
+
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
233
235
|
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
234
236
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
235
237
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
@@ -246,21 +248,21 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
246
248
|
lockOraclePrices(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
247
249
|
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
248
250
|
}>>;
|
|
249
|
-
makeCollectFeesInvitation(): Promise<Invitation<string
|
|
251
|
+
makeCollectFeesInvitation(): Promise<globalThis.Invitation<string>>;
|
|
250
252
|
getRewardAllocation(): Allocation;
|
|
251
253
|
makeLiquidationWaker(): {
|
|
252
254
|
wake: (timestamp: any) => any;
|
|
253
|
-
} &
|
|
255
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
254
256
|
wake: (timestamp: any) => any;
|
|
255
257
|
}>;
|
|
256
258
|
makeReschedulerWaker(): {
|
|
257
259
|
wake: (timestamp: any) => any;
|
|
258
|
-
} &
|
|
260
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
259
261
|
wake: (timestamp: any) => any;
|
|
260
262
|
}>;
|
|
261
263
|
makePriceLockWaker(): {
|
|
262
264
|
wake: (timestamp: any) => any;
|
|
263
|
-
} &
|
|
265
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
264
266
|
wake: (timestamp: any) => any;
|
|
265
267
|
}>;
|
|
266
268
|
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
@@ -268,7 +270,7 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
268
270
|
public: {
|
|
269
271
|
/** @param {Brand} brandIn */
|
|
270
272
|
getCollateralManager(brandIn: Brand): import("@endo/exo").Guarded<{
|
|
271
|
-
makeVaultInvitation(): Promise<Invitation<{
|
|
273
|
+
makeVaultInvitation(): Promise<globalThis.Invitation<{
|
|
272
274
|
publicSubscribers: {
|
|
273
275
|
vault: {
|
|
274
276
|
description: string;
|
|
@@ -277,9 +279,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
277
279
|
};
|
|
278
280
|
};
|
|
279
281
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
280
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
281
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
282
|
-
TransferVault(): Promise<Invitation
|
|
282
|
+
AdjustBalances(): Promise<globalThis.Invitation<string, undefined>>;
|
|
283
|
+
CloseVault(): Promise<globalThis.Invitation<string, undefined>>;
|
|
284
|
+
TransferVault(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
283
285
|
}>;
|
|
284
286
|
vault: import("@endo/exo").Guarded<{
|
|
285
287
|
getPublicTopics(): {
|
|
@@ -289,9 +291,9 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
289
291
|
storagePath: Promise<string>;
|
|
290
292
|
};
|
|
291
293
|
};
|
|
292
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
293
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
294
|
-
makeTransferInvitation(): Promise<Invitation
|
|
294
|
+
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
295
|
+
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
296
|
+
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
295
297
|
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
296
298
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
297
299
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
@@ -321,15 +323,16 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
321
323
|
getElectorateSubscription(): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
322
324
|
/**
|
|
323
325
|
* Note this works only for a collateral manager. For the director use,
|
|
324
|
-
* `
|
|
326
|
+
* `getDirectorGovernedParams`
|
|
325
327
|
*
|
|
326
328
|
* @param {{ collateralBrand: Brand }} selector
|
|
327
329
|
*/
|
|
328
330
|
getGovernedParams({ collateralBrand }: {
|
|
329
331
|
collateralBrand: Brand;
|
|
330
332
|
}): globalThis.ERef<globalThis.ParamStateRecord>;
|
|
333
|
+
getDirectorGovernedParams(): globalThis.ERef<globalThis.ParamStateRecord>;
|
|
331
334
|
/** @param {string} name */
|
|
332
|
-
getInvitationAmount(name: string): import("@agoric/ertp").SetAmount<InvitationDetails>;
|
|
335
|
+
getInvitationAmount(name: string): import("@agoric/ertp").SetAmount<import("@agoric/zoe").InvitationDetails>;
|
|
333
336
|
};
|
|
334
337
|
helper: {
|
|
335
338
|
resetWakeupsForNextAuction(): Promise<void>;
|
|
@@ -337,5 +340,20 @@ declare function prepareVaultDirector(baggage: import("@agoric/swingset-liveslot
|
|
|
337
340
|
start(): Promise<void>;
|
|
338
341
|
};
|
|
339
342
|
}>;
|
|
343
|
+
import type { GovernedParamGetters } from './vaultManager.js';
|
|
344
|
+
import type { ShortfallReporter } from '../reserve/assetReserve.js';
|
|
345
|
+
import type { VaultDirectorParams } from './params.js';
|
|
346
|
+
import type { TypedParamManager } from '@agoric/governance/src/contractGovernance/typedParamManager.js';
|
|
347
|
+
import type { EReturn } from '@endo/far';
|
|
348
|
+
import type { Baggage } from '@agoric/swingset-liveslots';
|
|
349
|
+
import type { VaultFactoryZCF } from './vaultFactory.js';
|
|
350
|
+
import type { ZCFMint } from '@agoric/zoe';
|
|
351
|
+
import type { TimerService } from '@agoric/time';
|
|
352
|
+
import type { AuctioneerPublicFacet } from '../auction/auctioneer.js';
|
|
353
|
+
import type { ERemote } from '@agoric/internal';
|
|
354
|
+
import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
355
|
+
import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
356
|
+
import type { MakeERecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
357
|
+
import type { ZCFSeat } from '@agoric/zoe';
|
|
340
358
|
export {};
|
|
341
359
|
//# sourceMappingURL=vaultDirector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultDirector.d.ts","sourceRoot":"","sources":["vaultDirector.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vaultDirector.d.ts","sourceRoot":"","sources":["vaultDirector.js"],"names":[],"mappings":"AA+FO,iFAEE,IADK,CAAC,EAAE,EAAE,YAAY,KAAK,IACzB,UAOV;AAocD,6EAA6E;AAE7E;;;;;;GAMG;AACH,8BAJU,CACT,GAAO,OAAO,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,KAChD,aAAa,CAQnB;kCA7fW;IACR,WAAW,EAAE,KAAK,EAAE,CAAC;IACrB,oBAAoB,EAAE,mBAAmB,CAAC;CAC3C;6BAGS,QAAQ,CAAC,EAAE,CAAC;2BAEZ,EAAE;oBAEF,cAAc,GAAG,YAAY;iCAE7B;IACR,QAAQ,EAAE,QAAQ,CAAC;IACnB,iBAAiB,EAAE,CAAC,eAAe,EAAE,KAAK,KAAK,oBAAoB,CAAC;IACpE,eAAe,EAAE,eAAe,CAAC;IACjC,oBAAoB,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACxD;4BAGS,QAAQ,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;wCAEQ,kBAAkB,mBAAmB,CAAC;4BAsdrC,QAAQ,QAAQ,OAAO,oBAAoB,CAAC,CAAC;AAlc3D;;;;;;;;;;;;GAYG;AACH,+CAZW,OAAO,OACP,eAAe,wBACf,yBAAyB,YACzB,QAAQ,KAAK,CAAC,SACd,IAAI,CAAC,YAAY,CAAC,cAClB,IAAI,CAAC,qBAAqB,CAAC,eAC3B,QAAQ,WAAW,CAAC,cACpB,QAAQ,WAAW,CAAC,mBACpB,eAAe,oBACf,gBAAgB,iBAChB,MAAM,CAAC,MAAM,EAAE,OAAO,aAAa,EAAE,0BAA0B,CAAC;;;YAwO/D,+CAA+C;8BAAnC,qBAAqB;;;;;;;;;YAAjC,+CAA+C;8BAAnC,qBAAqB;;;;;;;;;QAarC,2BAA2B;4BAAf,MAAM;;YAmBlB;;;;eAIG;2CAHQ,MAAM,CAAC,KAAK,CAAC,qBACb,OAAO,sBACP,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAflC,oCAAoC;2BAAtB,IAAI,CAAC,YAAY,CAAC;;;;;QAYhC;;;;WAIG;uCAHQ,MAAM,CAAC,KAAK,CAAC,qBACb,OAAO,sBACP,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6FlC,6BAA6B;sCAAjB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAUjB;;;;WAIG;6CADQ;YAAE,eAAe,EAAE,KAAK,CAAA;SAAE;;;;QAQrC,0EAA0E;;QAI1E;;;;;WAKG;+CADQ;YAAE,eAAe,EAAE,KAAK,CAAA;SAAE;;QASrC,2BAA2B;kCAAf,MAAM;;;;QAoBlB,2EAA2E;;;GAmBlF;0CA3fsC,mBAAmB;uCACtB,4BAA4B;yCAE1B,aAAa;uCADf,gEAAgE;6BAL1E,WAAW;6BAOX,4BAA4B;qCACpB,mBAAmB;6BATC,aAAa;kCAUpC,cAAc;2CACL,0BAA0B;6BATlB,kBAAkB;iCACpC,iDAAiD;qCAS7C,6CAA6C;sCAC5C,6CAA6C;6BAb1B,aAAa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="@agoric/governance/exported" />
|
|
2
|
-
/// <reference types="@agoric/zoe/exported" />
|
|
1
|
+
/// <reference types="@agoric/governance/exported.js" />
|
|
2
|
+
/// <reference types="@agoric/zoe/exported.js" />
|
|
3
3
|
|
|
4
4
|
import { Fail, q } from '@endo/errors';
|
|
5
5
|
import { E } from '@endo/eventual-send';
|
|
@@ -40,7 +40,21 @@ import {
|
|
|
40
40
|
} from './vaultManager.js';
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* @import {
|
|
43
|
+
* @import {MapStore} from '@agoric/store';
|
|
44
|
+
* @import {TransferPart, ZCF, ZCFMint, ZCFSeat} from '@agoric/zoe';
|
|
45
|
+
* @import {EReturn} from '@endo/far';
|
|
46
|
+
* @import {TypedPattern, ERemote, Remote} from '@agoric/internal';
|
|
47
|
+
* @import {EMarshaller} from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
48
|
+
* @import {GovernedParamGetters} from './vaultManager.js';
|
|
49
|
+
* @import {ShortfallReporter} from '../reserve/assetReserve.js';
|
|
50
|
+
* @import {TypedParamManager} from '@agoric/governance/src/contractGovernance/typedParamManager.js';
|
|
51
|
+
* @import {VaultDirectorParams} from './params.js';
|
|
52
|
+
* @import {Baggage} from '@agoric/swingset-liveslots';
|
|
53
|
+
* @import {VaultFactoryZCF} from './vaultFactory.js';
|
|
54
|
+
* @import {TimerService} from '@agoric/time';
|
|
55
|
+
* @import {AuctioneerPublicFacet} from '../auction/auctioneer.js';
|
|
56
|
+
* @import {MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
57
|
+
* @import {MakeERecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
44
58
|
*/
|
|
45
59
|
|
|
46
60
|
const trace = makeTracer('VD', true);
|
|
@@ -60,13 +74,9 @@ const trace = makeTracer('VD', true);
|
|
|
60
74
|
*
|
|
61
75
|
* @typedef {{
|
|
62
76
|
* burnDebt: BurnDebt;
|
|
63
|
-
* getGovernedParams: (
|
|
64
|
-
* collateralBrand: Brand,
|
|
65
|
-
* ) => import('./vaultManager.js').GovernedParamGetters;
|
|
77
|
+
* getGovernedParams: (collateralBrand: Brand) => GovernedParamGetters;
|
|
66
78
|
* mintAndTransfer: MintAndTransfer;
|
|
67
|
-
* getShortfallReporter: () => Promise<
|
|
68
|
-
* import('../reserve/assetReserve.js').ShortfallReporter
|
|
69
|
-
* >;
|
|
79
|
+
* getShortfallReporter: () => Promise<ShortfallReporter>;
|
|
70
80
|
* }} FactoryPowersFacet
|
|
71
81
|
*
|
|
72
82
|
*
|
|
@@ -74,9 +84,7 @@ const trace = makeTracer('VD', true);
|
|
|
74
84
|
* state: State;
|
|
75
85
|
* }>} MethodContext
|
|
76
86
|
*
|
|
77
|
-
* @typedef {
|
|
78
|
-
* import('./params.js').VaultDirectorParams
|
|
79
|
-
* >} VaultDirectorParamManager
|
|
87
|
+
* @typedef {TypedParamManager<VaultDirectorParams>} VaultDirectorParamManager
|
|
80
88
|
*/
|
|
81
89
|
|
|
82
90
|
const shortfallInvitationKey = 'shortfallInvitation';
|
|
@@ -97,16 +105,16 @@ export const makeAllManagersDo = (collateralManagers, vaultManagers) => {
|
|
|
97
105
|
};
|
|
98
106
|
|
|
99
107
|
/**
|
|
100
|
-
* @param {
|
|
101
|
-
* @param {
|
|
108
|
+
* @param {Baggage} baggage
|
|
109
|
+
* @param {VaultFactoryZCF} zcf
|
|
102
110
|
* @param {VaultDirectorParamManager} directorParamManager
|
|
103
111
|
* @param {ZCFMint<'nat'>} debtMint
|
|
104
|
-
* @param {ERef<
|
|
105
|
-
* @param {ERef<
|
|
106
|
-
* @param {
|
|
107
|
-
* @param {
|
|
108
|
-
* @param {
|
|
109
|
-
* @param {
|
|
112
|
+
* @param {ERef<TimerService>} timer
|
|
113
|
+
* @param {ERef<AuctioneerPublicFacet>} auctioneer
|
|
114
|
+
* @param {ERemote<StorageNode>} storageNode
|
|
115
|
+
* @param {ERemote<EMarshaller>} marshaller
|
|
116
|
+
* @param {MakeRecorderKit} makeRecorderKit
|
|
117
|
+
* @param {MakeERecorderKit} makeERecorderKit
|
|
110
118
|
* @param {Record<string, import('./params.js').VaultManagerParamOverrides>} managerParams
|
|
111
119
|
*/
|
|
112
120
|
const prepareVaultDirector = (
|
|
@@ -122,7 +130,7 @@ const prepareVaultDirector = (
|
|
|
122
130
|
makeERecorderKit,
|
|
123
131
|
managerParams,
|
|
124
132
|
) => {
|
|
125
|
-
/** @type {
|
|
133
|
+
/** @type {ShortfallReporter} */
|
|
126
134
|
let shortfallReporter;
|
|
127
135
|
|
|
128
136
|
/** For holding newly minted tokens until transferred */
|
|
@@ -293,7 +301,7 @@ const prepareVaultDirector = (
|
|
|
293
301
|
/**
|
|
294
302
|
* "Director" of the vault factory, overseeing "vault managers".
|
|
295
303
|
*
|
|
296
|
-
* @param {
|
|
304
|
+
* @param {VaultFactoryZCF} zcf
|
|
297
305
|
* @param {VaultDirectorParamManager} directorParamManager
|
|
298
306
|
* @param {ZCFMint<'nat'>} debtMint
|
|
299
307
|
*/
|
|
@@ -325,6 +333,7 @@ const prepareVaultDirector = (
|
|
|
325
333
|
getGovernedParams: M.callWhen({ collateralBrand: BrandShape }).returns(
|
|
326
334
|
M.record(),
|
|
327
335
|
),
|
|
336
|
+
getDirectorGovernedParams: M.call().returns(M.promise()),
|
|
328
337
|
getInvitationAmount: M.call(M.string()).returns(AmountShape),
|
|
329
338
|
getPublicTopics: M.call().returns(TopicsRecordShape),
|
|
330
339
|
}),
|
|
@@ -397,6 +406,7 @@ const prepareVaultDirector = (
|
|
|
397
406
|
// zero-based index of the manager being made
|
|
398
407
|
const managerIndex = vaultManagers.length();
|
|
399
408
|
const managerId = `manager${managerIndex}`;
|
|
409
|
+
/** @type {Remote<StorageNode>} */
|
|
400
410
|
const managerStorageNode =
|
|
401
411
|
await E(managersNode).makeChildNode(managerId);
|
|
402
412
|
|
|
@@ -492,7 +502,7 @@ const prepareVaultDirector = (
|
|
|
492
502
|
},
|
|
493
503
|
/**
|
|
494
504
|
* Note this works only for a collateral manager. For the director use,
|
|
495
|
-
* `
|
|
505
|
+
* `getDirectorGovernedParams`
|
|
496
506
|
*
|
|
497
507
|
* @param {{ collateralBrand: Brand }} selector
|
|
498
508
|
*/
|
|
@@ -500,6 +510,9 @@ const prepareVaultDirector = (
|
|
|
500
510
|
// TODO use named getters of TypedParamManager
|
|
501
511
|
return vaultParamManagers.get(collateralBrand).getParams();
|
|
502
512
|
},
|
|
513
|
+
getDirectorGovernedParams() {
|
|
514
|
+
return directorParamManager.getParams();
|
|
515
|
+
},
|
|
503
516
|
/** @param {string} name */
|
|
504
517
|
getInvitationAmount(name) {
|
|
505
518
|
return directorParamManager.getInvitationAmount(name);
|
|
@@ -541,13 +554,14 @@ const prepareVaultDirector = (
|
|
|
541
554
|
return makeVaultDirector;
|
|
542
555
|
};
|
|
543
556
|
harden(prepareVaultDirector);
|
|
557
|
+
/** @typedef {EReturn<EReturn<typeof prepareVaultDirector>>} VaultDirector */
|
|
544
558
|
|
|
545
559
|
/**
|
|
546
560
|
* Prepare the VaultDirector kind, get or make the singleton
|
|
547
561
|
*
|
|
548
562
|
* @type {(
|
|
549
563
|
* ...pvdArgs: Parameters<typeof prepareVaultDirector>
|
|
550
|
-
* ) =>
|
|
564
|
+
* ) => VaultDirector}
|
|
551
565
|
*/
|
|
552
566
|
export const provideDirector = (...args) => {
|
|
553
567
|
const makeVaultDirector = prepareVaultDirector(...args);
|