@agoric/inter-protocol 0.16.2-dev-89cb9d4.0.89cb9d4 → 0.16.2-dev-1c96426.0.1c96426
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -16
- package/src/auction/auctionBook.d.ts +1 -0
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +1 -0
- package/src/auction/auctionMath.d.ts +1 -0
- package/src/auction/auctionMath.d.ts.map +1 -1
- package/src/auction/auctionMath.js +1 -0
- package/src/auction/auctioneer.d.ts +6 -5
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +1 -0
- package/src/auction/offerBook.d.ts +1 -0
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/offerBook.js +1 -0
- package/src/auction/params.d.ts +5 -2
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +2 -1
- package/src/auction/scheduleMath.d.ts +1 -0
- package/src/auction/scheduleMath.d.ts.map +1 -1
- package/src/auction/scheduleMath.js +1 -0
- package/src/auction/scheduler.d.ts +3 -1
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/scheduler.js +8 -1
- package/src/auction/sortedOffers.d.ts +1 -0
- package/src/auction/sortedOffers.d.ts.map +1 -1
- package/src/auction/sortedOffers.js +4 -0
- package/src/auction/util.d.ts +2 -1
- package/src/auction/util.d.ts.map +1 -1
- package/src/auction/util.js +1 -0
- package/src/contractSupport.d.ts +1 -1
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +3 -3
- package/src/feeDistributor.d.ts +17 -17
- package/src/interest-math.d.ts +1 -0
- package/src/interest-math.d.ts.map +1 -1
- package/src/interest-math.js +1 -0
- package/src/interest.d.ts +6 -0
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +3 -0
- package/src/price/fluxAggregatorContract.d.ts +2 -2
- package/src/price/fluxAggregatorKit.d.ts +1 -1
- package/src/price/roundsManager.d.ts +1 -1
- package/src/proposals/replace-fee-distributor.js +1 -0
- package/src/proposals/startPSM.js +1 -0
- package/src/proposals/upgrade-vaults.js +2 -2
- package/src/proposals/utils.d.ts +2 -1
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/proposals/utils.js +4 -0
- package/src/provisionPool.d.ts +2 -2
- package/src/provisionPoolKit.d.ts +2 -2
- package/src/psm/psm.d.ts +4 -2
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +1 -0
- package/src/psm/types-ambient.d.ts +1 -1
- package/src/psm/types-ambient.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.d.ts +2 -2
- package/src/vaultFactory/liquidation.d.ts +2 -0
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +2 -0
- package/src/vaultFactory/math.d.ts +1 -0
- package/src/vaultFactory/math.d.ts.map +1 -1
- package/src/vaultFactory/math.js +4 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +12 -12
- package/src/vaultFactory/params.d.ts +6 -0
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +6 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +31 -29
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +2 -0
- package/src/vaultFactory/proceeds.d.ts +1 -0
- package/src/vaultFactory/proceeds.d.ts.map +1 -1
- package/src/vaultFactory/proceeds.js +4 -1
- package/src/vaultFactory/storeUtils.d.ts +7 -3
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/storeUtils.js +8 -2
- package/src/vaultFactory/types-ambient.d.ts +39 -46
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.js +23 -16
- package/src/vaultFactory/vault.d.ts +10 -4
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +8 -2
- package/src/vaultFactory/vaultDirector.d.ts +39 -33
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +6 -1
- package/src/vaultFactory/vaultFactory.d.ts +23 -22
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -0
- package/src/vaultFactory/vaultHolder.d.ts +10 -8
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +1 -0
- package/src/vaultFactory/vaultKit.d.ts +4 -3
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +1 -0
- package/src/vaultFactory/vaultManager.d.ts +46 -36
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +13 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["vault.js"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["vault.js"],"names":[],"mappings":";;;;;;;;;;;;;oBAiEU,CAAC,OAAO,KAAK,EAAE,MAAM,OAAO,KAAK,CAAC;;;;;;;;AAsB5C;;;;;;;;;GASG;AAGH;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;GAYG;AAkBI,sCAJI,OAAO,mBACP,eAAe,OACf,GAAG;;;;;;QAuDN;;;;;WAKG;QACH;;;WAGG;8BAFQ,cAAc;kBALd;gBAAE,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;aAAE;kBACpD;gBAAE,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;aAAE;;QA0B/D,mCAAmC;8BAAvB,UAAU;;;QAwBtB;;;;;WAKG;o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AA+B,MAAM,CAAC;6BA51BjC,4BAA4B;qCACpB,6CAA6C;4BARtD,kBAAkB;2BAEnB,2BAA2B;oCAClB,iBAAiB;2BAM1B,2BAA2B;mCAfhB,WAAW;8BAgBnB,eAAe;8BAJf,6CAA6C;gCAF3C,mBAAmB;qCAOL,oBAAoB;6BAApB,oBAAoB;0CANxB,mBAAmB;6BAJhC,WAAW"}
|
|
@@ -26,6 +26,9 @@ const trace = makeTracer('Vault', true);
|
|
|
26
26
|
* @import {Recorder} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
27
27
|
* @import {Baggage} from '@agoric/swingset-liveslots';
|
|
28
28
|
* @import {MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
29
|
+
* @import {Ratio} from '@agoric/ertp/src/ratio.js';
|
|
30
|
+
* @import {VaultKit} from './vaultKit.js';
|
|
31
|
+
* @import {MintAndTransfer, VaultId} from './types-ambient.js';
|
|
29
32
|
*/
|
|
30
33
|
|
|
31
34
|
/**
|
|
@@ -85,8 +88,11 @@ const validTransitions = {
|
|
|
85
88
|
/**
|
|
86
89
|
* @typedef {object} VaultNotification
|
|
87
90
|
* @property {Amount<'nat'>} locked Amount of Collateral locked
|
|
88
|
-
* @property {{
|
|
89
|
-
*
|
|
91
|
+
* @property {{
|
|
92
|
+
* debt: Amount<'nat'>;
|
|
93
|
+
* interest: Ratio;
|
|
94
|
+
* }} debtSnapshot
|
|
95
|
+
* 'debt' at the point the compounded interest was 'interest'
|
|
90
96
|
* @property {Phase} vaultState
|
|
91
97
|
*/
|
|
92
98
|
|
|
@@ -26,6 +26,7 @@ export type MethodContext = Readonly<{
|
|
|
26
26
|
}>;
|
|
27
27
|
export type VaultDirectorParamManager = TypedParamManager<VaultDirectorParams>;
|
|
28
28
|
export type VaultDirector = EReturn<EReturn<typeof prepareVaultDirector>>;
|
|
29
|
+
import type { VaultManager } from './vaultManager.js';
|
|
29
30
|
/**
|
|
30
31
|
* @param {Baggage} baggage
|
|
31
32
|
* @param {VaultFactoryZCF} zcf
|
|
@@ -37,30 +38,30 @@ export type VaultDirector = EReturn<EReturn<typeof prepareVaultDirector>>;
|
|
|
37
38
|
* @param {ERemote<EMarshaller>} marshaller
|
|
38
39
|
* @param {MakeRecorderKit} makeRecorderKit
|
|
39
40
|
* @param {MakeERecorderKit} makeERecorderKit
|
|
40
|
-
* @param {Record<string,
|
|
41
|
+
* @param {Record<string, VaultManagerParamOverrides>} managerParams
|
|
41
42
|
*/
|
|
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,
|
|
43
|
+
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, VaultManagerParamOverrides>): () => import("@endo/exo").GuardedKit<{
|
|
43
44
|
creator: {
|
|
44
45
|
getParamMgrRetriever: () => {
|
|
45
46
|
/** @param {VaultFactoryParamPath} paramPath */
|
|
46
|
-
get: (paramPath?: VaultFactoryParamPath) =>
|
|
47
|
+
get: (paramPath?: VaultFactoryParamPath) => TypedParamManager<{
|
|
47
48
|
DebtLimit: "amount";
|
|
48
49
|
InterestRate: "ratio";
|
|
49
50
|
LiquidationPadding: "ratio";
|
|
50
51
|
LiquidationMargin: "ratio";
|
|
51
52
|
LiquidationPenalty: "ratio";
|
|
52
53
|
MintFee: "ratio";
|
|
53
|
-
}
|
|
54
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
54
|
+
}> | VaultDirectorParamManager;
|
|
55
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
55
56
|
/** @param {VaultFactoryParamPath} paramPath */
|
|
56
|
-
get: (paramPath?: VaultFactoryParamPath) =>
|
|
57
|
+
get: (paramPath?: VaultFactoryParamPath) => TypedParamManager<{
|
|
57
58
|
DebtLimit: "amount";
|
|
58
59
|
InterestRate: "ratio";
|
|
59
60
|
LiquidationPadding: "ratio";
|
|
60
61
|
LiquidationMargin: "ratio";
|
|
61
62
|
LiquidationPenalty: "ratio";
|
|
62
63
|
MintFee: "ratio";
|
|
63
|
-
}
|
|
64
|
+
}> | VaultDirectorParamManager;
|
|
64
65
|
}>;
|
|
65
66
|
/** @param {string} name */
|
|
66
67
|
getInvitation(name: string): Promise<globalThis.Invitation>;
|
|
@@ -76,7 +77,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
76
77
|
publicSubscribers: {
|
|
77
78
|
vault: {
|
|
78
79
|
description: string;
|
|
79
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
80
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
80
81
|
storagePath: Promise<string>;
|
|
81
82
|
};
|
|
82
83
|
};
|
|
@@ -89,7 +90,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
89
90
|
getPublicTopics(): {
|
|
90
91
|
vault: {
|
|
91
92
|
description: string;
|
|
92
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
93
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
93
94
|
storagePath: Promise<string>;
|
|
94
95
|
};
|
|
95
96
|
};
|
|
@@ -100,7 +101,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
100
101
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
101
102
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
102
103
|
}>;
|
|
103
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
104
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
104
105
|
}>;
|
|
105
106
|
getCollateralQuote(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
106
107
|
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
@@ -108,7 +109,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
108
109
|
publicSubscribers: {
|
|
109
110
|
vault: {
|
|
110
111
|
description: string;
|
|
111
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
112
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
112
113
|
storagePath: Promise<string>;
|
|
113
114
|
};
|
|
114
115
|
};
|
|
@@ -121,7 +122,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
121
122
|
getPublicTopics(): {
|
|
122
123
|
vault: {
|
|
123
124
|
description: string;
|
|
124
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
125
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
125
126
|
storagePath: Promise<string>;
|
|
126
127
|
};
|
|
127
128
|
};
|
|
@@ -132,10 +133,10 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
132
133
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
133
134
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
134
135
|
}>;
|
|
135
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
136
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
136
137
|
}, undefined>>;
|
|
137
138
|
getQuotes(): import("@agoric/notifier").StoredNotifier<import("@agoric/zoe/tools/types.js").PriceQuote>;
|
|
138
|
-
getCompoundedInterest(): Ratio;
|
|
139
|
+
getCompoundedInterest(): import("@agoric/ertp").Ratio;
|
|
139
140
|
getPublicTopics(): {
|
|
140
141
|
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").AssetState>;
|
|
141
142
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").MetricsNotification>;
|
|
@@ -145,20 +146,20 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
145
146
|
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
146
147
|
}>>;
|
|
147
148
|
makeCollectFeesInvitation(): Promise<globalThis.Invitation<string>>;
|
|
148
|
-
getRewardAllocation(): Allocation;
|
|
149
|
+
getRewardAllocation(): import("@agoric/zoe").Allocation;
|
|
149
150
|
makeLiquidationWaker(): {
|
|
150
151
|
wake: (timestamp: any) => any;
|
|
151
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
152
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
152
153
|
wake: (timestamp: any) => any;
|
|
153
154
|
}>;
|
|
154
155
|
makeReschedulerWaker(): {
|
|
155
156
|
wake: (timestamp: any) => any;
|
|
156
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
157
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
157
158
|
wake: (timestamp: any) => any;
|
|
158
159
|
}>;
|
|
159
160
|
makePriceLockWaker(): {
|
|
160
161
|
wake: (timestamp: any) => any;
|
|
161
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
162
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
162
163
|
wake: (timestamp: any) => any;
|
|
163
164
|
}>;
|
|
164
165
|
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
@@ -180,7 +181,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
180
181
|
publicSubscribers: {
|
|
181
182
|
vault: {
|
|
182
183
|
description: string;
|
|
183
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
184
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
184
185
|
storagePath: Promise<string>;
|
|
185
186
|
};
|
|
186
187
|
};
|
|
@@ -193,7 +194,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
193
194
|
getPublicTopics(): {
|
|
194
195
|
vault: {
|
|
195
196
|
description: string;
|
|
196
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
197
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
197
198
|
storagePath: Promise<string>;
|
|
198
199
|
};
|
|
199
200
|
};
|
|
@@ -204,7 +205,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
204
205
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
205
206
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
206
207
|
}>;
|
|
207
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
208
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
208
209
|
}>;
|
|
209
210
|
getCollateralQuote(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
210
211
|
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
@@ -212,7 +213,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
212
213
|
publicSubscribers: {
|
|
213
214
|
vault: {
|
|
214
215
|
description: string;
|
|
215
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
216
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
216
217
|
storagePath: Promise<string>;
|
|
217
218
|
};
|
|
218
219
|
};
|
|
@@ -225,7 +226,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
225
226
|
getPublicTopics(): {
|
|
226
227
|
vault: {
|
|
227
228
|
description: string;
|
|
228
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
229
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
229
230
|
storagePath: Promise<string>;
|
|
230
231
|
};
|
|
231
232
|
};
|
|
@@ -236,10 +237,10 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
236
237
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
237
238
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
238
239
|
}>;
|
|
239
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
240
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
240
241
|
}, undefined>>;
|
|
241
242
|
getQuotes(): import("@agoric/notifier").StoredNotifier<import("@agoric/zoe/tools/types.js").PriceQuote>;
|
|
242
|
-
getCompoundedInterest(): Ratio;
|
|
243
|
+
getCompoundedInterest(): import("@agoric/ertp").Ratio;
|
|
243
244
|
getPublicTopics(): {
|
|
244
245
|
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").AssetState>;
|
|
245
246
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").MetricsNotification>;
|
|
@@ -249,20 +250,20 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
249
250
|
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
250
251
|
}>>;
|
|
251
252
|
makeCollectFeesInvitation(): Promise<globalThis.Invitation<string>>;
|
|
252
|
-
getRewardAllocation(): Allocation;
|
|
253
|
+
getRewardAllocation(): import("@agoric/zoe").Allocation;
|
|
253
254
|
makeLiquidationWaker(): {
|
|
254
255
|
wake: (timestamp: any) => any;
|
|
255
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
256
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
256
257
|
wake: (timestamp: any) => any;
|
|
257
258
|
}>;
|
|
258
259
|
makeReschedulerWaker(): {
|
|
259
260
|
wake: (timestamp: any) => any;
|
|
260
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
261
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
261
262
|
wake: (timestamp: any) => any;
|
|
262
263
|
}>;
|
|
263
264
|
makePriceLockWaker(): {
|
|
264
265
|
wake: (timestamp: any) => any;
|
|
265
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
266
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
266
267
|
wake: (timestamp: any) => any;
|
|
267
268
|
}>;
|
|
268
269
|
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
@@ -274,7 +275,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
274
275
|
publicSubscribers: {
|
|
275
276
|
vault: {
|
|
276
277
|
description: string;
|
|
277
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
278
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
278
279
|
storagePath: Promise<string>;
|
|
279
280
|
};
|
|
280
281
|
};
|
|
@@ -287,7 +288,7 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
287
288
|
getPublicTopics(): {
|
|
288
289
|
vault: {
|
|
289
290
|
description: string;
|
|
290
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
291
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
291
292
|
storagePath: Promise<string>;
|
|
292
293
|
};
|
|
293
294
|
};
|
|
@@ -298,10 +299,10 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
298
299
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
299
300
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
300
301
|
}>;
|
|
301
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
302
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
302
303
|
}, undefined>>;
|
|
303
304
|
getQuotes(): import("@agoric/notifier").StoredNotifier<import("@agoric/zoe/tools/types.js").PriceQuote>;
|
|
304
|
-
getCompoundedInterest(): Ratio;
|
|
305
|
+
getCompoundedInterest(): import("@agoric/ertp").Ratio;
|
|
305
306
|
getPublicTopics(): {
|
|
306
307
|
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").AssetState>;
|
|
307
308
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").MetricsNotification>;
|
|
@@ -340,7 +341,9 @@ declare function prepareVaultDirector(baggage: Baggage, zcf: VaultFactoryZCF, di
|
|
|
340
341
|
start(): Promise<void>;
|
|
341
342
|
};
|
|
342
343
|
}>;
|
|
344
|
+
import type { BurnDebt } from './types-ambient.js';
|
|
343
345
|
import type { GovernedParamGetters } from './vaultManager.js';
|
|
346
|
+
import type { MintAndTransfer } from './types-ambient.js';
|
|
344
347
|
import type { ShortfallReporter } from '../reserve/assetReserve.js';
|
|
345
348
|
import type { VaultDirectorParams } from './params.js';
|
|
346
349
|
import type { TypedParamManager } from '@agoric/governance/src/contractGovernance/typedParamManager.js';
|
|
@@ -354,6 +357,9 @@ import type { ERemote } from '@agoric/internal';
|
|
|
354
357
|
import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
355
358
|
import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
356
359
|
import type { MakeERecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
360
|
+
import type { VaultManagerParamOverrides } from './params.js';
|
|
361
|
+
import type { VaultFactoryParamPath } from './types-ambient.js';
|
|
362
|
+
import type { VaultManagerParamValues } from './types-ambient.js';
|
|
357
363
|
import type { ZCFSeat } from '@agoric/zoe';
|
|
358
364
|
export {};
|
|
359
365
|
//# 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":"AAoGO,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,CAA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;;;;;;;;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;8BApfmD,oBAAoB;0CAZjC,mBAAmB;qCAaxB,oBAAoB;uCAZlB,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;gDAEnC,aAAa;2CAGlB,oBAAoB;6CAFR,oBAAoB;6BAhBlB,aAAa"}
|
|
@@ -55,6 +55,11 @@ import {
|
|
|
55
55
|
* @import {AuctioneerPublicFacet} from '../auction/auctioneer.js';
|
|
56
56
|
* @import {MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
57
57
|
* @import {MakeERecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
58
|
+
* @import {VaultManager} from './vaultManager.js';
|
|
59
|
+
* @import {VaultManagerParamOverrides} from './params.js';
|
|
60
|
+
* @import {BurnDebt, VaultManagerParamValues} from './types-ambient.js';
|
|
61
|
+
* @import {MintAndTransfer} from './types-ambient.js';
|
|
62
|
+
* @import {VaultFactoryParamPath} from './types-ambient.js';
|
|
58
63
|
*/
|
|
59
64
|
|
|
60
65
|
const trace = makeTracer('VD', true);
|
|
@@ -115,7 +120,7 @@ export const makeAllManagersDo = (collateralManagers, vaultManagers) => {
|
|
|
115
120
|
* @param {ERemote<EMarshaller>} marshaller
|
|
116
121
|
* @param {MakeRecorderKit} makeRecorderKit
|
|
117
122
|
* @param {MakeERecorderKit} makeERecorderKit
|
|
118
|
-
* @param {Record<string,
|
|
123
|
+
* @param {Record<string, VaultManagerParamOverrides>} managerParams
|
|
119
124
|
*/
|
|
120
125
|
const prepareVaultDirector = (
|
|
121
126
|
baggage,
|
|
@@ -21,33 +21,33 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
21
21
|
}, baggage: Baggage): Promise<{
|
|
22
22
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
23
23
|
getParamMgrRetriever: () => {
|
|
24
|
-
get: (paramPath?:
|
|
24
|
+
get: (paramPath?: import("./types-ambient.js").VaultFactoryParamPath) => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
25
25
|
DebtLimit: "amount";
|
|
26
26
|
InterestRate: "ratio";
|
|
27
27
|
LiquidationPadding: "ratio";
|
|
28
28
|
LiquidationMargin: "ratio";
|
|
29
29
|
LiquidationPenalty: "ratio";
|
|
30
30
|
MintFee: "ratio";
|
|
31
|
-
}
|
|
32
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
33
|
-
get: (paramPath?:
|
|
31
|
+
}> | import("./vaultDirector.js").VaultDirectorParamManager;
|
|
32
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
33
|
+
get: (paramPath?: import("./types-ambient.js").VaultFactoryParamPath) => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
34
34
|
DebtLimit: "amount";
|
|
35
35
|
InterestRate: "ratio";
|
|
36
36
|
LiquidationPadding: "ratio";
|
|
37
37
|
LiquidationMargin: "ratio";
|
|
38
38
|
LiquidationPenalty: "ratio";
|
|
39
39
|
MintFee: "ratio";
|
|
40
|
-
}
|
|
40
|
+
}> | import("./vaultDirector.js").VaultDirectorParamManager;
|
|
41
41
|
}>;
|
|
42
42
|
getInvitation(name: string): Promise<Invitation>;
|
|
43
43
|
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
44
|
-
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
44
|
+
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: Keyword, initialParamValues: import("./types-ambient.js").VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
45
45
|
getGovernedParams(): import("./vaultManager.js").GovernedParamGetters;
|
|
46
46
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
47
47
|
publicSubscribers: {
|
|
48
48
|
vault: {
|
|
49
49
|
description: string;
|
|
50
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
50
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
51
51
|
storagePath: Promise<string>;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
@@ -60,7 +60,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
60
60
|
getPublicTopics(): {
|
|
61
61
|
vault: {
|
|
62
62
|
description: string;
|
|
63
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
63
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
64
64
|
storagePath: Promise<string>;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
@@ -71,7 +71,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
71
71
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
72
72
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
73
73
|
}>;
|
|
74
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
74
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
75
75
|
}>;
|
|
76
76
|
getCollateralQuote(): PriceQuote;
|
|
77
77
|
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
@@ -79,7 +79,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
79
79
|
publicSubscribers: {
|
|
80
80
|
vault: {
|
|
81
81
|
description: string;
|
|
82
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
82
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
83
83
|
storagePath: Promise<string>;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
@@ -92,7 +92,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
92
92
|
getPublicTopics(): {
|
|
93
93
|
vault: {
|
|
94
94
|
description: string;
|
|
95
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
95
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
96
96
|
storagePath: Promise<string>;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
@@ -103,33 +103,33 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
103
103
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
104
104
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
105
105
|
}>;
|
|
106
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
106
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
107
107
|
}, undefined>>;
|
|
108
108
|
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
109
|
-
getCompoundedInterest(): Ratio;
|
|
109
|
+
getCompoundedInterest(): import("@agoric/ertp").Ratio;
|
|
110
110
|
getPublicTopics(): {
|
|
111
111
|
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").AssetState>;
|
|
112
112
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").MetricsNotification>;
|
|
113
113
|
};
|
|
114
114
|
}>;
|
|
115
115
|
lockOraclePrices(): PriceQuote;
|
|
116
|
-
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
116
|
+
liquidateVaults(auctionPF: ERef<import("../auction/auctioneer.js").AuctioneerPublicFacet>): Promise<void>;
|
|
117
117
|
}>>;
|
|
118
118
|
makeCollectFeesInvitation(): Promise<Invitation<string>>;
|
|
119
|
-
getRewardAllocation(): Allocation;
|
|
119
|
+
getRewardAllocation(): import("@agoric/zoe").Allocation;
|
|
120
120
|
makeLiquidationWaker(): {
|
|
121
121
|
wake: (timestamp: any) => any;
|
|
122
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
122
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
123
123
|
wake: (timestamp: any) => any;
|
|
124
124
|
}>;
|
|
125
125
|
makeReschedulerWaker(): {
|
|
126
126
|
wake: (timestamp: any) => any;
|
|
127
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
127
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
128
128
|
wake: (timestamp: any) => any;
|
|
129
129
|
}>;
|
|
130
130
|
makePriceLockWaker(): {
|
|
131
131
|
wake: (timestamp: any) => any;
|
|
132
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
132
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
133
133
|
wake: (timestamp: any) => any;
|
|
134
134
|
}>;
|
|
135
135
|
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
@@ -144,7 +144,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
144
144
|
publicSubscribers: {
|
|
145
145
|
vault: {
|
|
146
146
|
description: string;
|
|
147
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
147
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
148
148
|
storagePath: Promise<string>;
|
|
149
149
|
};
|
|
150
150
|
};
|
|
@@ -157,7 +157,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
157
157
|
getPublicTopics(): {
|
|
158
158
|
vault: {
|
|
159
159
|
description: string;
|
|
160
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
160
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
161
161
|
storagePath: Promise<string>;
|
|
162
162
|
};
|
|
163
163
|
};
|
|
@@ -168,10 +168,10 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
168
168
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
169
169
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
170
170
|
}>;
|
|
171
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
171
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
172
172
|
}, undefined>>;
|
|
173
173
|
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
174
|
-
getCompoundedInterest(): Ratio;
|
|
174
|
+
getCompoundedInterest(): import("@agoric/ertp").Ratio;
|
|
175
175
|
getPublicTopics(): {
|
|
176
176
|
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").AssetState>;
|
|
177
177
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").MetricsNotification>;
|
|
@@ -209,6 +209,7 @@ import type { ZCFSeat } from '@agoric/zoe';
|
|
|
209
209
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
210
210
|
import type { VaultDirectorParams } from './params.js';
|
|
211
211
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
212
|
+
import type { AssetReservePublicFacet } from '../reserve/assetReserve.js';
|
|
212
213
|
import type { TimerService } from '@agoric/time';
|
|
213
214
|
import type { ZCF } from '@agoric/zoe';
|
|
214
215
|
import type { ContractOf } from '@agoric/zoe/src/zoeService/utils.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultFactory.d.ts","sourceRoot":"","sources":["vaultFactory.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vaultFactory.d.ts","sourceRoot":"","sources":["vaultFactory.js"],"names":[],"mappings":"AA+CA;;;;;;;;GAQG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAerB;AAiBK,2BAbI,eAAe,eACf;IACN,aAAa,EAAE,aAAa,CAAC;IAC7B,sBAAsB,EAAE,UAAU,CAAC;IACnC,0BAA0B,EAAE,UAAU,CAAC;IACvC,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,kBAAkB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IACrD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IAC1D,sBAAsB,EAAE,CAAC,MAAM,CAAC,CAAC;CAClC,WACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFjB;8BA/HY,IACR,eAAe,CAAC,mBAAmB,CAAC,GAAG;IACrC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,YAAY,EAAE,YAAY,CAAC;CAC5B,CACF;mCA4HU,WAAW,OAAO,KAAK,CAAC;kCAhJoF,aAAa;mCAAb,aAAa;gCAAb,aAAa;4BAD9G,kBAAkB;8CAMA,0BAA0B;gDAExB,aAAa;6BAChC,4BAA4B;6BARoE,aAAa;gCAE1C,4BAA4B;yCACnF,aAAa;oCAD0C,4BAA4B;6CAI/E,4BAA4B;kCAFvC,cAAc;yBAJ6E,aAAa;gCAC1G,qCAAqC"}
|
|
@@ -38,6 +38,7 @@ import { provideDirector } from './vaultDirector.js';
|
|
|
38
38
|
* @import {VaultDirectorParams} from './params.js';
|
|
39
39
|
* @import {TimerService} from '@agoric/time';
|
|
40
40
|
* @import {start as auctioneerStart} from '../auction/auctioneer.js';
|
|
41
|
+
* @import {AssetReservePublicFacet} from '../reserve/assetReserve.js';
|
|
41
42
|
* @import {VaultManagerParamOverrides} from './params.js';
|
|
42
43
|
* @import {Baggage} from '@agoric/swingset-liveslots';
|
|
43
44
|
*/
|
|
@@ -30,7 +30,7 @@ export function prepareVaultHolder(baggage: Baggage, makeRecorderKit: MakeRecord
|
|
|
30
30
|
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
31
31
|
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
32
32
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
33
|
-
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
33
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
34
34
|
}>;
|
|
35
35
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
36
36
|
}>;
|
|
@@ -39,10 +39,10 @@ export function prepareVaultHolder(baggage: Baggage, makeRecorderKit: MakeRecord
|
|
|
39
39
|
abortLiquidation(): string;
|
|
40
40
|
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
41
41
|
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
42
|
-
makeTransferInvitation(): Promise<Invitation<VaultKit>>;
|
|
42
|
+
makeTransferInvitation(): Promise<Invitation<import("./vaultKit.js").VaultKit>>;
|
|
43
43
|
getCollateralAmount(): Amount<"nat">;
|
|
44
44
|
getCurrentDebt(): Amount<"nat">;
|
|
45
|
-
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
45
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
46
46
|
}>, storageNode: Remote<globalThis.StorageNode>) => import("@endo/exo").GuardedKit<{
|
|
47
47
|
helper: {
|
|
48
48
|
/** @throws if this holder no longer owns the vault */
|
|
@@ -78,7 +78,7 @@ export function prepareVaultHolder(baggage: Baggage, makeRecorderKit: MakeRecord
|
|
|
78
78
|
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
79
79
|
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
80
80
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
81
|
-
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
81
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
82
82
|
}>;
|
|
83
83
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
84
84
|
}>;
|
|
@@ -87,10 +87,10 @@ export function prepareVaultHolder(baggage: Baggage, makeRecorderKit: MakeRecord
|
|
|
87
87
|
abortLiquidation(): string;
|
|
88
88
|
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
89
89
|
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
90
|
-
makeTransferInvitation(): Promise<Invitation<VaultKit>>;
|
|
90
|
+
makeTransferInvitation(): Promise<Invitation<import("./vaultKit.js").VaultKit>>;
|
|
91
91
|
getCollateralAmount(): Amount<"nat">;
|
|
92
92
|
getCurrentDebt(): Amount<"nat">;
|
|
93
|
-
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
93
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
94
94
|
}>;
|
|
95
95
|
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
96
96
|
};
|
|
@@ -123,7 +123,7 @@ export function prepareVaultHolder(baggage: Baggage, makeRecorderKit: MakeRecord
|
|
|
123
123
|
makeTransferInvitation(): Promise<globalThis.Invitation</*elided*/ any>>;
|
|
124
124
|
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
125
125
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
126
|
-
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
126
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
127
127
|
}>;
|
|
128
128
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
129
129
|
}>>;
|
|
@@ -160,7 +160,7 @@ export function prepareVaultHolder(baggage: Baggage, makeRecorderKit: MakeRecord
|
|
|
160
160
|
}>>;
|
|
161
161
|
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
162
162
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
163
|
-
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
163
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
164
164
|
};
|
|
165
165
|
}>;
|
|
166
166
|
export type State = {
|
|
@@ -170,5 +170,7 @@ export type State = {
|
|
|
170
170
|
import type { Baggage } from '@agoric/swingset-liveslots';
|
|
171
171
|
import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
172
172
|
import type { Remote } from '@agoric/internal';
|
|
173
|
+
import type { VaultNotification } from './vault.js';
|
|
173
174
|
import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
175
|
+
import type { Vault } from './vault.js';
|
|
174
176
|
//# sourceMappingURL=vaultHolder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultHolder.d.ts","sourceRoot":"","sources":["vaultHolder.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vaultHolder.d.ts","sourceRoot":"","sources":["vaultHolder.js"],"names":[],"mappings":"AA0CO,4CAHI,OAAO,mBACP,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;YAqElB;;;eAGG;;;;;;;;;;;;;;;;;;;QA3CH,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;oBAwCtD;;;uBAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAHH;;;mBAGG;;;;;;;;;;;;;;;;;;;QAHH;;;WAGG;;;;;;;;;;;;;;;;;;;;;GAoBV;oBAnHY;IACR,QAAQ,EAAE,YAAY,iBAAiB,CAAC,CAAC;IACzC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;6BATsB,4BAA4B;qCACpB,6CAA6C;4BAJtD,kBAAkB;uCAKA,YAAY;iCAHzB,6CAA6C;2BAGhC,YAAY"}
|
|
@@ -11,6 +11,7 @@ import { UnguardedHelperI } from '@agoric/internal/src/typeGuards.js';
|
|
|
11
11
|
* @import {RecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
12
12
|
* @import {Baggage} from '@agoric/swingset-liveslots';
|
|
13
13
|
* @import {MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
14
|
+
* @import {Vault, VaultNotification} from './vault.js';
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
/**
|