@agoric/inter-protocol 0.16.2-dev-f8abc2e.0 → 0.16.2-dev-860d051.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -16
- package/src/auction/auctionBook.d.ts +1 -1
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +1 -1
- package/src/auction/auctioneer.d.ts +21 -7
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +1 -1
- package/src/auction/offerBook.d.ts +2 -2
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/offerBook.js +1 -1
- package/src/auction/params.d.ts +2 -4
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +2 -2
- package/src/auction/scheduleMath.d.ts.map +1 -1
- package/src/auction/scheduler.d.ts +1 -1
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/util.d.ts +4 -4
- package/src/auction/util.d.ts.map +1 -1
- package/src/feeDistributor.d.ts +5 -5
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +2 -3
- package/src/interest.d.ts +4 -5
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +2 -3
- package/src/price/fluxAggregatorContract.d.ts +6 -7
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorContract.js +2 -3
- package/src/price/fluxAggregatorKit.d.ts +4 -48
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.js +5 -9
- package/src/price/roundsManager.d.ts +37 -14
- package/src/price/roundsManager.d.ts.map +1 -1
- package/src/price/roundsManager.js +3 -4
- package/src/proposals/addAssetToVault.d.ts +1 -1
- package/src/proposals/addAssetToVault.d.ts.map +1 -1
- package/src/proposals/addAssetToVault.js +1 -1
- package/src/proposals/core-proposal.d.ts.map +1 -1
- package/src/proposals/core-proposal.js +0 -2
- package/src/proposals/econ-behaviors.d.ts +8 -10
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/proposals/econ-behaviors.js +2 -4
- package/src/proposals/startPSM.d.ts +7 -9
- package/src/proposals/startPSM.d.ts.map +1 -1
- package/src/proposals/startPSM.js +4 -4
- package/src/proposals/utils.d.ts +1 -1
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/provisionPoolKit.d.ts +13 -17
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +1 -2
- package/src/psm/psm.d.ts +2 -3
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +1 -1
- package/src/psm/types.d.ts +1 -1
- package/src/psm/types.d.ts.map +1 -1
- package/src/psm/types.js +1 -1
- package/src/reserve/assetReserve.d.ts +1 -1
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +1 -1
- package/src/vaultFactory/liquidation.d.ts +154 -16
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +4 -4
- package/src/vaultFactory/orderedVaultStore.d.ts +225 -17
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.js +2 -2
- package/src/vaultFactory/params.d.ts +14 -9
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +625 -62
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +2 -2
- package/src/vaultFactory/storeUtils.d.ts +1 -2
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/storeUtils.js +1 -1
- package/src/vaultFactory/types.d.ts +120 -11
- package/src/vaultFactory/types.d.ts.map +1 -1
- package/src/vaultFactory/types.js +10 -20
- package/src/vaultFactory/vault.d.ts +63 -5
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +2 -2
- package/src/vaultFactory/vaultDirector.d.ts +34 -34
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +1 -1
- package/src/vaultFactory/vaultFactory.d.ts +21 -16
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -1
- package/src/vaultFactory/vaultHolder.d.ts +95 -17
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +1 -1
- package/src/vaultFactory/vaultKit.d.ts +74 -4
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +1 -1
- package/src/vaultFactory/vaultManager.d.ts +391 -41
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +3 -3
|
@@ -16,7 +16,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
16
16
|
initialShortfallInvitation: Invitation;
|
|
17
17
|
storageNode: ERef<StorageNode>;
|
|
18
18
|
marshaller: ERef<Marshaller<unknown>>;
|
|
19
|
-
}, baggage:
|
|
19
|
+
}, baggage: MapStore<string, any>): Promise<{
|
|
20
20
|
creatorFacet: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
21
21
|
getParamMgrRetriever: () => {
|
|
22
22
|
get: (paramPath?: VaultFactoryParamPath) => import("./vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
@@ -45,7 +45,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
45
45
|
publicSubscribers: {
|
|
46
46
|
vault: {
|
|
47
47
|
description: string;
|
|
48
|
-
subscriber: Subscriber<
|
|
48
|
+
subscriber: Subscriber<VaultNotification>;
|
|
49
49
|
storagePath: Promise<string>;
|
|
50
50
|
};
|
|
51
51
|
};
|
|
@@ -58,7 +58,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
58
58
|
getPublicTopics(): {
|
|
59
59
|
vault: {
|
|
60
60
|
description: string;
|
|
61
|
-
subscriber: Subscriber<
|
|
61
|
+
subscriber: Subscriber<VaultNotification>;
|
|
62
62
|
storagePath: Promise<string>;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
@@ -69,7 +69,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
69
69
|
getCurrentDebt(): Amount<"nat">;
|
|
70
70
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
71
71
|
}>;
|
|
72
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
72
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
73
73
|
}>;
|
|
74
74
|
getCollateralQuote(): PriceQuote;
|
|
75
75
|
getPublicFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
@@ -77,7 +77,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
77
77
|
publicSubscribers: {
|
|
78
78
|
vault: {
|
|
79
79
|
description: string;
|
|
80
|
-
subscriber: Subscriber<
|
|
80
|
+
subscriber: Subscriber<VaultNotification>;
|
|
81
81
|
storagePath: Promise<string>;
|
|
82
82
|
};
|
|
83
83
|
};
|
|
@@ -90,7 +90,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
90
90
|
getPublicTopics(): {
|
|
91
91
|
vault: {
|
|
92
92
|
description: string;
|
|
93
|
-
subscriber: Subscriber<
|
|
93
|
+
subscriber: Subscriber<VaultNotification>;
|
|
94
94
|
storagePath: Promise<string>;
|
|
95
95
|
};
|
|
96
96
|
};
|
|
@@ -101,7 +101,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
101
101
|
getCurrentDebt(): Amount<"nat">;
|
|
102
102
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
103
103
|
}>;
|
|
104
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
104
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
105
105
|
}, undefined>>;
|
|
106
106
|
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
107
107
|
getCompoundedInterest(): Ratio;
|
|
@@ -113,13 +113,13 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
113
113
|
lockOraclePrices(): PriceQuote;
|
|
114
114
|
liquidateVaults(auctionPF: ERef<GovernedPublicFacet<{
|
|
115
115
|
getElectorate: () => Amount<"set">;
|
|
116
|
-
getStartFrequency: () =>
|
|
117
|
-
getClockStep: () =>
|
|
116
|
+
getStartFrequency: () => RelativeTime;
|
|
117
|
+
getClockStep: () => RelativeTime;
|
|
118
118
|
getStartingRate: () => bigint;
|
|
119
119
|
getLowestRate: () => bigint;
|
|
120
120
|
getDiscountStep: () => bigint;
|
|
121
|
-
getAuctionStartDelay: () =>
|
|
122
|
-
getPriceLockPeriod: () =>
|
|
121
|
+
getAuctionStartDelay: () => RelativeTime;
|
|
122
|
+
getPriceLockPeriod: () => RelativeTime;
|
|
123
123
|
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
124
124
|
maxBuy: Amount<"nat">;
|
|
125
125
|
} & {
|
|
@@ -177,7 +177,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
177
177
|
publicSubscribers: {
|
|
178
178
|
vault: {
|
|
179
179
|
description: string;
|
|
180
|
-
subscriber: Subscriber<
|
|
180
|
+
subscriber: Subscriber<VaultNotification>;
|
|
181
181
|
storagePath: Promise<string>;
|
|
182
182
|
};
|
|
183
183
|
};
|
|
@@ -190,7 +190,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
190
190
|
getPublicTopics(): {
|
|
191
191
|
vault: {
|
|
192
192
|
description: string;
|
|
193
|
-
subscriber: Subscriber<
|
|
193
|
+
subscriber: Subscriber<VaultNotification>;
|
|
194
194
|
storagePath: Promise<string>;
|
|
195
195
|
};
|
|
196
196
|
};
|
|
@@ -201,7 +201,7 @@ export function start(zcf: VaultFactoryZCF, privateArgs: {
|
|
|
201
201
|
getCurrentDebt(): Amount<"nat">;
|
|
202
202
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
203
203
|
}>;
|
|
204
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
204
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
205
205
|
}, undefined>>;
|
|
206
206
|
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
207
207
|
getCompoundedInterest(): Ratio;
|
|
@@ -231,7 +231,7 @@ export type VaultFactoryZCF = {
|
|
|
231
231
|
saveIssuer: (issuerP: ERef<Issuer<AssetKind>>, keyword: string) => Promise<IssuerRecord<any>>;
|
|
232
232
|
makeInvitation: <R, A = undefined>(offerHandler: OfferHandler<ERef<R>, A>, description: string, customDetails?: object | undefined, proposalShape?: any) => Promise<Invitation<R, A>>;
|
|
233
233
|
shutdown: (completion: any) => void;
|
|
234
|
-
shutdownWithFailure:
|
|
234
|
+
shutdownWithFailure: ShutdownWithFailure;
|
|
235
235
|
getZoeService: () => ERef<ZoeService>;
|
|
236
236
|
getInvitationIssuer: () => Issuer<"set">;
|
|
237
237
|
getTerms: () => StandardTerms & GovernanceTerms<import("@agoric/governance/src/contractGovernance/typedParamManager.js").ParamTypesMapFromRecord<{
|
|
@@ -263,7 +263,12 @@ export type VaultFactoryZCF = {
|
|
|
263
263
|
}>> & {
|
|
264
264
|
auctioneerPublicFacet: import('../auction/auctioneer.js').AuctioneerPublicFacet;
|
|
265
265
|
priceAuthority: ERef<PriceAuthority>;
|
|
266
|
-
reservePublicFacet:
|
|
266
|
+
reservePublicFacet: GovernedPublicFacet<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
267
|
+
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
268
|
+
getPublicTopics(): {
|
|
269
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
270
|
+
};
|
|
271
|
+
}>>;
|
|
267
272
|
timerService: import('@agoric/time').TimerService;
|
|
268
273
|
};
|
|
269
274
|
getBrandForIssuer: <K extends AssetKind>(issuer: Issuer<K>) => Brand<K>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultFactory.d.ts","sourceRoot":"","sources":["vaultFactory.js"],"names":[],"mappings":"AAmCA;;;;;;;;;GASG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAerB;AAcK,2BAVI,eAAe;mBAEN,aAAa;4BACJ,UAAU;gCACN,UAAU
|
|
1
|
+
{"version":3,"file":"vaultFactory.d.ts","sourceRoot":"","sources":["vaultFactory.js"],"names":[],"mappings":"AAmCA;;;;;;;;;GASG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAerB;AAcK,2BAVI,eAAe;mBAEN,aAAa;4BACJ,UAAU;gCACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmF1C;;;;;;;;;;;;;;;;;;;;;;;;;;YA1GD,2BAA2B;;;;;;;;;;;;+BARG,OAAO,0BAA0B,EAAE,qBAAqB;;;;;;;;sBAGjE,OAAO,cAAc,EAAE,YAAY;;;;;;;;;;;;;;;;;mCAkH1C,WAAW,YAAY,CAAC"}
|
|
@@ -71,7 +71,7 @@ harden(meta);
|
|
|
71
71
|
* storageNode: ERef<StorageNode>;
|
|
72
72
|
* marshaller: ERef<Marshaller>;
|
|
73
73
|
* }} privateArgs
|
|
74
|
-
* @param {import('@agoric/
|
|
74
|
+
* @param {import('@agoric/swingset-liveslots').Baggage} baggage
|
|
75
75
|
*/
|
|
76
76
|
export const start = async (zcf, privateArgs, baggage) => {
|
|
77
77
|
trace('prepare start', privateArgs, [...baggage.keys()]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export function prepareVaultHolder(baggage:
|
|
1
|
+
export function prepareVaultHolder(baggage: MapStore<string, any>, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit): (vault: import("@endo/exo/src/exo-makers").Guarded<{
|
|
2
2
|
getVaultSeat(): ZCFSeat;
|
|
3
3
|
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
4
4
|
publicSubscribers: {
|
|
5
5
|
vault: {
|
|
6
6
|
description: string;
|
|
7
|
-
subscriber: Subscriber<
|
|
7
|
+
subscriber: Subscriber<VaultNotification>;
|
|
8
8
|
storagePath: Promise<string>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -17,7 +17,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
17
17
|
getPublicTopics(): {
|
|
18
18
|
vault: {
|
|
19
19
|
description: string;
|
|
20
|
-
subscriber: Subscriber<
|
|
20
|
+
subscriber: Subscriber<VaultNotification>;
|
|
21
21
|
storagePath: Promise<string>;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -32,7 +32,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
32
32
|
getCurrentDebt(): Amount<"nat">;
|
|
33
33
|
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
34
34
|
}>;
|
|
35
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
35
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
36
36
|
}>;
|
|
37
37
|
liquidating(): void;
|
|
38
38
|
liquidated(): void;
|
|
@@ -43,7 +43,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
43
43
|
publicSubscribers: {
|
|
44
44
|
vault: {
|
|
45
45
|
description: string;
|
|
46
|
-
subscriber: Subscriber<
|
|
46
|
+
subscriber: Subscriber<VaultNotification>;
|
|
47
47
|
storagePath: Promise<string>;
|
|
48
48
|
};
|
|
49
49
|
};
|
|
@@ -56,7 +56,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
56
56
|
getPublicTopics(): {
|
|
57
57
|
vault: {
|
|
58
58
|
description: string;
|
|
59
|
-
subscriber: Subscriber<
|
|
59
|
+
subscriber: Subscriber<VaultNotification>;
|
|
60
60
|
storagePath: Promise<string>;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
@@ -71,7 +71,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
71
71
|
getCurrentDebt(): Amount<"nat">;
|
|
72
72
|
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
73
73
|
}>;
|
|
74
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
74
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
75
75
|
}, undefined>>;
|
|
76
76
|
getCollateralAmount(): Amount<"nat">;
|
|
77
77
|
getCurrentDebt(): Amount<"nat">;
|
|
@@ -85,7 +85,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
85
85
|
publicSubscribers: {
|
|
86
86
|
vault: {
|
|
87
87
|
description: string;
|
|
88
|
-
subscriber: Subscriber<
|
|
88
|
+
subscriber: Subscriber<VaultNotification>;
|
|
89
89
|
storagePath: Promise<string>;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
@@ -98,7 +98,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
98
98
|
getPublicTopics(): {
|
|
99
99
|
vault: {
|
|
100
100
|
description: string;
|
|
101
|
-
subscriber: Subscriber<
|
|
101
|
+
subscriber: Subscriber<VaultNotification>;
|
|
102
102
|
storagePath: Promise<string>;
|
|
103
103
|
};
|
|
104
104
|
};
|
|
@@ -113,7 +113,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
113
113
|
getCurrentDebt(): Amount<"nat">;
|
|
114
114
|
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
115
115
|
}>;
|
|
116
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
116
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
117
117
|
}>;
|
|
118
118
|
liquidating(): void;
|
|
119
119
|
liquidated(): void;
|
|
@@ -124,7 +124,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
124
124
|
publicSubscribers: {
|
|
125
125
|
vault: {
|
|
126
126
|
description: string;
|
|
127
|
-
subscriber: Subscriber<
|
|
127
|
+
subscriber: Subscriber<VaultNotification>;
|
|
128
128
|
storagePath: Promise<string>;
|
|
129
129
|
};
|
|
130
130
|
};
|
|
@@ -137,7 +137,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
137
137
|
getPublicTopics(): {
|
|
138
138
|
vault: {
|
|
139
139
|
description: string;
|
|
140
|
-
subscriber: Subscriber<
|
|
140
|
+
subscriber: Subscriber<VaultNotification>;
|
|
141
141
|
storagePath: Promise<string>;
|
|
142
142
|
};
|
|
143
143
|
};
|
|
@@ -152,13 +152,13 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
152
152
|
getCurrentDebt(): Amount<"nat">;
|
|
153
153
|
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
154
154
|
}>;
|
|
155
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
155
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
156
156
|
}, undefined>>;
|
|
157
157
|
getCollateralAmount(): Amount<"nat">;
|
|
158
158
|
getCurrentDebt(): Amount<"nat">;
|
|
159
159
|
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
160
160
|
}>;
|
|
161
|
-
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
161
|
+
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
162
162
|
};
|
|
163
163
|
invitationMakers: {
|
|
164
164
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
@@ -169,7 +169,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
169
169
|
getPublicTopics(): {
|
|
170
170
|
vault: {
|
|
171
171
|
description: string;
|
|
172
|
-
subscriber: Subscriber<
|
|
172
|
+
subscriber: Subscriber<VaultNotification>;
|
|
173
173
|
storagePath: Promise<string>;
|
|
174
174
|
};
|
|
175
175
|
};
|
|
@@ -186,7 +186,85 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
186
186
|
};
|
|
187
187
|
}>;
|
|
188
188
|
export type State = {
|
|
189
|
-
topicKit: import(
|
|
190
|
-
vault:
|
|
189
|
+
topicKit: import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<VaultNotification>;
|
|
190
|
+
vault: import("@endo/exo/src/exo-makers").Guarded<{
|
|
191
|
+
getVaultSeat(): ZCFSeat;
|
|
192
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
193
|
+
publicSubscribers: {
|
|
194
|
+
vault: {
|
|
195
|
+
description: string;
|
|
196
|
+
subscriber: Subscriber<VaultNotification>;
|
|
197
|
+
storagePath: Promise<string>;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
invitationMakers: import("@endo/exo/src/exo-makers").Guarded<{
|
|
201
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
202
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
203
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
204
|
+
}>;
|
|
205
|
+
vault: import("@endo/exo/src/exo-makers").Guarded<{
|
|
206
|
+
getPublicTopics(): {
|
|
207
|
+
vault: {
|
|
208
|
+
description: string;
|
|
209
|
+
subscriber: Subscriber<VaultNotification>;
|
|
210
|
+
storagePath: Promise<string>;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
214
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
215
|
+
/**
|
|
216
|
+
* Starting a transfer revokes the vault holder. The associated updater
|
|
217
|
+
* will get a special notification that the vault is being transferred.
|
|
218
|
+
*/
|
|
219
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
220
|
+
getCollateralAmount(): Amount<"nat">;
|
|
221
|
+
getCurrentDebt(): Amount<"nat">;
|
|
222
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
223
|
+
}>;
|
|
224
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
225
|
+
}>;
|
|
226
|
+
liquidating(): void;
|
|
227
|
+
liquidated(): void;
|
|
228
|
+
abortLiquidation(): string;
|
|
229
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
230
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
231
|
+
makeTransferInvitation(): Promise<Invitation<{
|
|
232
|
+
publicSubscribers: {
|
|
233
|
+
vault: {
|
|
234
|
+
description: string;
|
|
235
|
+
subscriber: Subscriber<VaultNotification>;
|
|
236
|
+
storagePath: Promise<string>;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
invitationMakers: import("@endo/exo/src/exo-makers").Guarded<{
|
|
240
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
241
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
242
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
243
|
+
}>;
|
|
244
|
+
vault: import("@endo/exo/src/exo-makers").Guarded<{
|
|
245
|
+
getPublicTopics(): {
|
|
246
|
+
vault: {
|
|
247
|
+
description: string;
|
|
248
|
+
subscriber: Subscriber<VaultNotification>;
|
|
249
|
+
storagePath: Promise<string>;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
253
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
254
|
+
/**
|
|
255
|
+
* Starting a transfer revokes the vault holder. The associated updater
|
|
256
|
+
* will get a special notification that the vault is being transferred.
|
|
257
|
+
*/
|
|
258
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
259
|
+
getCollateralAmount(): Amount<"nat">;
|
|
260
|
+
getCurrentDebt(): Amount<"nat">;
|
|
261
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
262
|
+
}>;
|
|
263
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
264
|
+
}, undefined>>;
|
|
265
|
+
getCollateralAmount(): Amount<"nat">;
|
|
266
|
+
getCurrentDebt(): Amount<"nat">;
|
|
267
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
268
|
+
}> | null;
|
|
191
269
|
};
|
|
192
270
|
//# sourceMappingURL=vaultHolder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultHolder.d.ts","sourceRoot":"","sources":["vaultHolder.js"],"names":[],"mappings":"AAkCO,
|
|
1
|
+
{"version":3,"file":"vaultHolder.d.ts","sourceRoot":"","sources":["vaultHolder.js"],"names":[],"mappings":"AAkCO,oFAFI,OAAO,6CAA6C,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;YAoExE;;;eAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAHH;;;eAGG;;;;;;;;;;;;;QA3CH,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;oBAwCtD;;;uBAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAHH;;;uBAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAHH;;;WAGG;;;;;;GAoBV;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAvBO;;;mBAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAHH;;;mBAGG"}
|
|
@@ -29,7 +29,7 @@ const PUBLIC_TOPICS = {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* @param {import('@agoric/
|
|
32
|
+
* @param {import('@agoric/swingset-liveslots').Baggage} baggage
|
|
33
33
|
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit} makeRecorderKit
|
|
34
34
|
*/
|
|
35
35
|
export const prepareVaultHolder = (baggage, makeRecorderKit) => {
|
|
@@ -1,8 +1,78 @@
|
|
|
1
|
-
export function prepareVaultKit(baggage:
|
|
1
|
+
export function prepareVaultKit(baggage: MapStore<string, any>, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit): (vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
2
|
+
getVaultSeat(): ZCFSeat;
|
|
3
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
4
|
+
publicSubscribers: {
|
|
5
|
+
vault: {
|
|
6
|
+
description: string;
|
|
7
|
+
subscriber: Subscriber<VaultNotification>;
|
|
8
|
+
storagePath: Promise<string>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
12
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
13
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
14
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
15
|
+
}>;
|
|
16
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
17
|
+
getPublicTopics(): {
|
|
18
|
+
vault: {
|
|
19
|
+
description: string;
|
|
20
|
+
subscriber: Subscriber<VaultNotification>;
|
|
21
|
+
storagePath: Promise<string>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
25
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
26
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
27
|
+
getCollateralAmount(): Amount<"nat">;
|
|
28
|
+
getCurrentDebt(): Amount<"nat">;
|
|
29
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
30
|
+
}>;
|
|
31
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
32
|
+
}>;
|
|
33
|
+
liquidating(): void;
|
|
34
|
+
liquidated(): void;
|
|
35
|
+
abortLiquidation(): string;
|
|
36
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
37
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
38
|
+
makeTransferInvitation(): Promise<Invitation<{
|
|
39
|
+
publicSubscribers: {
|
|
40
|
+
vault: {
|
|
41
|
+
description: string;
|
|
42
|
+
subscriber: Subscriber<VaultNotification>;
|
|
43
|
+
storagePath: Promise<string>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
invitationMakers: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
47
|
+
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
48
|
+
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
49
|
+
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
50
|
+
}>;
|
|
51
|
+
vault: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
52
|
+
getPublicTopics(): {
|
|
53
|
+
vault: {
|
|
54
|
+
description: string;
|
|
55
|
+
subscriber: Subscriber<VaultNotification>;
|
|
56
|
+
storagePath: Promise<string>;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
60
|
+
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
61
|
+
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
62
|
+
getCollateralAmount(): Amount<"nat">;
|
|
63
|
+
getCurrentDebt(): Amount<"nat">;
|
|
64
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
65
|
+
}>;
|
|
66
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
67
|
+
}, undefined>>;
|
|
68
|
+
getCollateralAmount(): Amount<"nat">;
|
|
69
|
+
getCurrentDebt(): Amount<"nat">;
|
|
70
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
71
|
+
}>, storageNode: StorageNode) => {
|
|
2
72
|
publicSubscribers: {
|
|
3
73
|
vault: {
|
|
4
74
|
description: string;
|
|
5
|
-
subscriber: Subscriber<
|
|
75
|
+
subscriber: Subscriber<VaultNotification>;
|
|
6
76
|
storagePath: Promise<string>;
|
|
7
77
|
};
|
|
8
78
|
};
|
|
@@ -15,7 +85,7 @@ export function prepareVaultKit(baggage: import('@agoric/ertp').Baggage, makeRec
|
|
|
15
85
|
getPublicTopics(): {
|
|
16
86
|
vault: {
|
|
17
87
|
description: string;
|
|
18
|
-
subscriber: Subscriber<
|
|
88
|
+
subscriber: Subscriber<VaultNotification>;
|
|
19
89
|
storagePath: Promise<string>;
|
|
20
90
|
};
|
|
21
91
|
};
|
|
@@ -26,7 +96,7 @@ export function prepareVaultKit(baggage: import('@agoric/ertp').Baggage, makeRec
|
|
|
26
96
|
getCurrentDebt(): Amount<"nat">;
|
|
27
97
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
28
98
|
}>;
|
|
29
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<
|
|
99
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
30
100
|
};
|
|
31
101
|
export type VaultKit = ReturnType<ReturnType<typeof prepareVaultKit>>;
|
|
32
102
|
//# sourceMappingURL=vaultKit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultKit.d.ts","sourceRoot":"","sources":["vaultKit.js"],"names":[],"mappings":"AAgBO,
|
|
1
|
+
{"version":3,"file":"vaultKit.d.ts","sourceRoot":"","sources":["vaultKit.js"],"names":[],"mappings":"AAgBO,iFAFI,OAAO,6CAA6C,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUnE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBvB;uBAEa,WAAW,WAAW,sBAAsB,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ const trace = makeTracer('VK', true);
|
|
|
11
11
|
* Wrap the VaultHolder duration object in a record suitable for the result of
|
|
12
12
|
* an invitation.
|
|
13
13
|
*
|
|
14
|
-
* @param {import('@agoric/
|
|
14
|
+
* @param {import('@agoric/swingset-liveslots').Baggage} baggage
|
|
15
15
|
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit} makeRecorderKit
|
|
16
16
|
*/
|
|
17
17
|
export const prepareVaultKit = (baggage, makeRecorderKit) => {
|