@agoric/inter-protocol 0.16.2-dev-35e67be.0 → 0.16.2-dev-9de97ab.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/bundles/bundle-econCommitteeCharter-js-meta.json +137 -137
- package/bundles/bundle-econCommitteeCharter.js +1 -1
- package/bundles/bundle-fluxAggregatorKit-js-meta.json +171 -175
- package/bundles/bundle-fluxAggregatorKit.js +1 -1
- package/bundles/bundle-psm-js-meta.json +170 -170
- package/bundles/bundle-psm.js +1 -1
- package/package.json +18 -18
- package/src/price/roundsManager.js +1 -1
- package/src/provisionPool.d.ts +165 -0
- package/src/provisionPool.d.ts.map +1 -0
- package/src/provisionPool.js +119 -0
- package/src/provisionPoolKit.d.ts +379 -0
- package/src/provisionPoolKit.d.ts.map +1 -0
- package/src/provisionPoolKit.js +461 -0
- package/src/reserve/assetReserveKit.js +1 -1
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +3 -3
- package/src/vaultFactory/vaultDirector.d.ts +8 -8
- package/src/vaultFactory/vaultFactory.d.ts +4 -4
- package/src/vaultFactory/vaultHolder.d.ts +21 -21
- package/src/vaultFactory/vaultHolder.js +1 -1
- package/src/vaultFactory/vaultManager.d.ts +0 -384
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/typeGuards.d.ts +0 -3
- package/src/typeGuards.d.ts.map +0 -1
- package/src/typeGuards.js +0 -11
|
@@ -4,7 +4,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
4
4
|
publicSubscribers: {
|
|
5
5
|
vault: {
|
|
6
6
|
description: string;
|
|
7
|
-
subscriber: Subscriber<import("./vault
|
|
7
|
+
subscriber: Subscriber<import("./vault").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<import("./vault
|
|
20
|
+
subscriber: Subscriber<import("./vault").VaultNotification>;
|
|
21
21
|
storagePath: Promise<string>;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -30,9 +30,9 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
30
30
|
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
31
31
|
getCollateralAmount(): Amount<"nat">;
|
|
32
32
|
getCurrentDebt(): Amount<"nat">;
|
|
33
|
-
getNormalizedDebt(): import("./storeUtils
|
|
33
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
34
34
|
};
|
|
35
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault
|
|
35
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault").VaultNotification>;
|
|
36
36
|
}>;
|
|
37
37
|
liquidating(): void;
|
|
38
38
|
liquidated(): void;
|
|
@@ -42,7 +42,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
42
42
|
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
43
43
|
getCollateralAmount(): Amount<"nat">;
|
|
44
44
|
getCurrentDebt(): Amount<"nat">;
|
|
45
|
-
getNormalizedDebt(): import("./storeUtils
|
|
45
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
46
46
|
}, storageNode: StorageNode) => {
|
|
47
47
|
helper: {
|
|
48
48
|
/** @throws if this holder no longer owns the vault */
|
|
@@ -52,7 +52,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
52
52
|
publicSubscribers: {
|
|
53
53
|
vault: {
|
|
54
54
|
description: string;
|
|
55
|
-
subscriber: Subscriber<import("./vault
|
|
55
|
+
subscriber: Subscriber<import("./vault").VaultNotification>;
|
|
56
56
|
storagePath: Promise<string>;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
@@ -65,7 +65,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
65
65
|
getPublicTopics(): {
|
|
66
66
|
vault: {
|
|
67
67
|
description: string;
|
|
68
|
-
subscriber: Subscriber<import("./vault
|
|
68
|
+
subscriber: Subscriber<import("./vault").VaultNotification>;
|
|
69
69
|
storagePath: Promise<string>;
|
|
70
70
|
};
|
|
71
71
|
};
|
|
@@ -78,9 +78,9 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
78
78
|
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
79
79
|
getCollateralAmount(): Amount<"nat">;
|
|
80
80
|
getCurrentDebt(): Amount<"nat">;
|
|
81
|
-
getNormalizedDebt(): import("./storeUtils
|
|
81
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
82
82
|
};
|
|
83
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault
|
|
83
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault").VaultNotification>;
|
|
84
84
|
}>;
|
|
85
85
|
liquidating(): void;
|
|
86
86
|
liquidated(): void;
|
|
@@ -90,9 +90,9 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
90
90
|
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
91
91
|
getCollateralAmount(): Amount<"nat">;
|
|
92
92
|
getCurrentDebt(): Amount<"nat">;
|
|
93
|
-
getNormalizedDebt(): import("./storeUtils
|
|
93
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
94
94
|
};
|
|
95
|
-
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault
|
|
95
|
+
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault").VaultNotification>;
|
|
96
96
|
};
|
|
97
97
|
invitationMakers: {
|
|
98
98
|
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
@@ -103,7 +103,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
103
103
|
getPublicTopics(): {
|
|
104
104
|
vault: {
|
|
105
105
|
description: string;
|
|
106
|
-
subscriber: Subscriber<import("./vault
|
|
106
|
+
subscriber: Subscriber<import("./vault").VaultNotification>;
|
|
107
107
|
storagePath: Promise<string>;
|
|
108
108
|
};
|
|
109
109
|
};
|
|
@@ -116,7 +116,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
116
116
|
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
117
117
|
getCollateralAmount(): Amount<"nat">;
|
|
118
118
|
getCurrentDebt(): Amount<"nat">;
|
|
119
|
-
getNormalizedDebt(): import("./storeUtils
|
|
119
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
120
120
|
};
|
|
121
121
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
122
122
|
helper: {
|
|
@@ -127,7 +127,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
127
127
|
publicSubscribers: {
|
|
128
128
|
vault: {
|
|
129
129
|
description: string;
|
|
130
|
-
subscriber: Subscriber<import("./vault
|
|
130
|
+
subscriber: Subscriber<import("./vault").VaultNotification>;
|
|
131
131
|
storagePath: Promise<string>;
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -140,7 +140,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
140
140
|
getPublicTopics(): {
|
|
141
141
|
vault: {
|
|
142
142
|
description: string;
|
|
143
|
-
subscriber: Subscriber<import("./vault
|
|
143
|
+
subscriber: Subscriber<import("./vault").VaultNotification>;
|
|
144
144
|
storagePath: Promise<string>;
|
|
145
145
|
};
|
|
146
146
|
};
|
|
@@ -153,9 +153,9 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
153
153
|
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
154
154
|
getCollateralAmount(): Amount<"nat">;
|
|
155
155
|
getCurrentDebt(): Amount<"nat">;
|
|
156
|
-
getNormalizedDebt(): import("./storeUtils
|
|
156
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
157
157
|
};
|
|
158
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault
|
|
158
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault").VaultNotification>;
|
|
159
159
|
}>;
|
|
160
160
|
liquidating(): void;
|
|
161
161
|
liquidated(): void;
|
|
@@ -165,9 +165,9 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
165
165
|
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
166
166
|
getCollateralAmount(): Amount<"nat">;
|
|
167
167
|
getCurrentDebt(): Amount<"nat">;
|
|
168
|
-
getNormalizedDebt(): import("./storeUtils
|
|
168
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
169
169
|
};
|
|
170
|
-
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault
|
|
170
|
+
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault").VaultNotification>;
|
|
171
171
|
};
|
|
172
172
|
invitationMakers: {
|
|
173
173
|
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
@@ -178,7 +178,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
178
178
|
getPublicTopics(): {
|
|
179
179
|
vault: {
|
|
180
180
|
description: string;
|
|
181
|
-
subscriber: Subscriber<import("./vault
|
|
181
|
+
subscriber: Subscriber<import("./vault").VaultNotification>;
|
|
182
182
|
storagePath: Promise<string>;
|
|
183
183
|
};
|
|
184
184
|
};
|
|
@@ -191,7 +191,7 @@ export function prepareVaultHolder(baggage: import('@agoric/ertp').Baggage, make
|
|
|
191
191
|
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
192
192
|
getCollateralAmount(): Amount<"nat">;
|
|
193
193
|
getCurrentDebt(): Amount<"nat">;
|
|
194
|
-
getNormalizedDebt(): import("./storeUtils
|
|
194
|
+
getNormalizedDebt(): import("./storeUtils").NormalizedDebt;
|
|
195
195
|
};
|
|
196
196
|
}>;
|
|
197
197
|
export type State = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { AmountShape } from '@agoric/ertp';
|
|
3
3
|
import { M, prepareExoClassKit } from '@agoric/vat-data';
|
|
4
4
|
import { TopicsRecordShape } from '@agoric/zoe/src/contractSupport/index.js';
|
|
5
|
-
import { UnguardedHelperI } from '
|
|
5
|
+
import { UnguardedHelperI } from '@agoric/internal/src/typeGuards.js';
|
|
6
6
|
|
|
7
7
|
const { Fail } = assert;
|
|
8
8
|
|
|
@@ -71,102 +71,6 @@ export function prepareVaultManagerKit(baggage: import('@agoric/ertp').Baggage,
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
invitationMakers: {
|
|
74
|
-
/** @typedef {import('@agoric/time/src/types').RelativeTime} RelativeTime */
|
|
75
|
-
/**
|
|
76
|
-
* @typedef {object} MetricsNotification
|
|
77
|
-
* @property {Ratio | null} lockedQuote priceQuote that will be used for
|
|
78
|
-
* liquidation. Non-null from priceLock time until liquidation has taken
|
|
79
|
-
* place.
|
|
80
|
-
* @property {number} numActiveVaults present count of vaults
|
|
81
|
-
* @property {number} numLiquidatingVaults present count of liquidating vaults
|
|
82
|
-
* @property {Amount<'nat'>} totalCollateral present sum of collateral across
|
|
83
|
-
* all vaults
|
|
84
|
-
* @property {Amount<'nat'>} totalDebt present sum of debt across all vaults
|
|
85
|
-
* @property {Amount<'nat'>} retainedCollateral collateral held as a result of
|
|
86
|
-
* not returning excess refunds to owners of vaults liquidated with
|
|
87
|
-
* shortfalls
|
|
88
|
-
* @property {Amount<'nat'>} liquidatingCollateral present sum of collateral in
|
|
89
|
-
* vaults sent for liquidation
|
|
90
|
-
* @property {Amount<'nat'>} liquidatingDebt present sum of debt in vaults sent
|
|
91
|
-
* for liquidation
|
|
92
|
-
* @property {Amount<'nat'>} totalCollateralSold running sum of collateral sold
|
|
93
|
-
* in liquidation
|
|
94
|
-
* @property {Amount<'nat'>} totalOverageReceived running sum of overages,
|
|
95
|
-
* central received greater than debt
|
|
96
|
-
* @property {Amount<'nat'>} totalProceedsReceived running sum of minted
|
|
97
|
-
* received from liquidation
|
|
98
|
-
* @property {Amount<'nat'>} totalShortfallReceived running sum of shortfalls,
|
|
99
|
-
* minted received less than debt
|
|
100
|
-
* @property {number} numLiquidationsCompleted running count of liquidated
|
|
101
|
-
* vaults
|
|
102
|
-
* @property {number} numLiquidationsAborted running count of vault liquidations
|
|
103
|
-
* that were reverted.
|
|
104
|
-
*/
|
|
105
|
-
/**
|
|
106
|
-
* @typedef {{
|
|
107
|
-
* compoundedInterest: Ratio;
|
|
108
|
-
* interestRate: Ratio;
|
|
109
|
-
* latestInterestUpdate: Timestamp;
|
|
110
|
-
* }} AssetState
|
|
111
|
-
*
|
|
112
|
-
* @typedef {{
|
|
113
|
-
* getChargingPeriod: () => RelativeTime;
|
|
114
|
-
* getRecordingPeriod: () => RelativeTime;
|
|
115
|
-
* getDebtLimit: () => Amount<'nat'>;
|
|
116
|
-
* getInterestRate: () => Ratio;
|
|
117
|
-
* getLiquidationPadding: () => Ratio;
|
|
118
|
-
* getLiquidationMargin: () => Ratio;
|
|
119
|
-
* getLiquidationPenalty: () => Ratio;
|
|
120
|
-
* getMintFee: () => Ratio;
|
|
121
|
-
* getMinInitialDebt: () => Amount<'nat'>;
|
|
122
|
-
* }} GovernedParamGetters
|
|
123
|
-
*/
|
|
124
|
-
/**
|
|
125
|
-
* @typedef {Readonly<{
|
|
126
|
-
* debtMint: ZCFMint<'nat'>;
|
|
127
|
-
* collateralBrand: Brand<'nat'>;
|
|
128
|
-
* collateralUnit: Amount<'nat'>;
|
|
129
|
-
* descriptionScope: string;
|
|
130
|
-
* startTimeStamp: Timestamp;
|
|
131
|
-
* storageNode: StorageNode;
|
|
132
|
-
* }>} HeldParams
|
|
133
|
-
*/
|
|
134
|
-
/**
|
|
135
|
-
* @typedef {{
|
|
136
|
-
* assetTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<AssetState>;
|
|
137
|
-
* debtBrand: Brand<'nat'>;
|
|
138
|
-
* liquidatingVaults: SetStore<Vault>;
|
|
139
|
-
* metricsTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<MetricsNotification>;
|
|
140
|
-
* poolIncrementSeat: ZCFSeat;
|
|
141
|
-
* retainedCollateralSeat: ZCFSeat;
|
|
142
|
-
* unsettledVaults: MapStore<string, Vault>;
|
|
143
|
-
* }} ImmutableState
|
|
144
|
-
*/
|
|
145
|
-
/**
|
|
146
|
-
* @typedef {{
|
|
147
|
-
* compoundedInterest: Ratio;
|
|
148
|
-
* latestInterestUpdate: Timestamp;
|
|
149
|
-
* numLiquidationsCompleted: number;
|
|
150
|
-
* numLiquidationsAborted: number;
|
|
151
|
-
* totalCollateral: Amount<'nat'>;
|
|
152
|
-
* totalCollateralSold: Amount<'nat'>;
|
|
153
|
-
* totalDebt: Amount<'nat'>;
|
|
154
|
-
* liquidatingCollateral: Amount<'nat'>;
|
|
155
|
-
* liquidatingDebt: Amount<'nat'>;
|
|
156
|
-
* totalOverageReceived: Amount<'nat'>;
|
|
157
|
-
* totalProceedsReceived: Amount<'nat'>;
|
|
158
|
-
* totalShortfallReceived: Amount<'nat'>;
|
|
159
|
-
* vaultCounter: number;
|
|
160
|
-
* lockedQuote: PriceQuote | undefined;
|
|
161
|
-
* }} MutableState
|
|
162
|
-
*/
|
|
163
|
-
/**
|
|
164
|
-
* @type {(brand: Brand) => {
|
|
165
|
-
* prioritizedVaults: ReturnType<typeof makePrioritizedVaults>;
|
|
166
|
-
* storedQuotesNotifier: import('@agoric/notifier').StoredNotifier<PriceQuote>;
|
|
167
|
-
* storedCollateralQuote: PriceQuote;
|
|
168
|
-
* }}
|
|
169
|
-
*/
|
|
170
74
|
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
171
75
|
CloseVault(): Promise<Invitation<R, A>>;
|
|
172
76
|
TransferVault(): Promise<Invitation<R, A>>;
|
|
@@ -273,102 +177,6 @@ export function prepareVaultManagerKit(baggage: import('@agoric/ertp').Baggage,
|
|
|
273
177
|
};
|
|
274
178
|
};
|
|
275
179
|
invitationMakers: {
|
|
276
|
-
/** @typedef {import('@agoric/time/src/types').RelativeTime} RelativeTime */
|
|
277
|
-
/**
|
|
278
|
-
* @typedef {object} MetricsNotification
|
|
279
|
-
* @property {Ratio | null} lockedQuote priceQuote that will be used for
|
|
280
|
-
* liquidation. Non-null from priceLock time until liquidation has taken
|
|
281
|
-
* place.
|
|
282
|
-
* @property {number} numActiveVaults present count of vaults
|
|
283
|
-
* @property {number} numLiquidatingVaults present count of liquidating vaults
|
|
284
|
-
* @property {Amount<'nat'>} totalCollateral present sum of collateral across
|
|
285
|
-
* all vaults
|
|
286
|
-
* @property {Amount<'nat'>} totalDebt present sum of debt across all vaults
|
|
287
|
-
* @property {Amount<'nat'>} retainedCollateral collateral held as a result of
|
|
288
|
-
* not returning excess refunds to owners of vaults liquidated with
|
|
289
|
-
* shortfalls
|
|
290
|
-
* @property {Amount<'nat'>} liquidatingCollateral present sum of collateral in
|
|
291
|
-
* vaults sent for liquidation
|
|
292
|
-
* @property {Amount<'nat'>} liquidatingDebt present sum of debt in vaults sent
|
|
293
|
-
* for liquidation
|
|
294
|
-
* @property {Amount<'nat'>} totalCollateralSold running sum of collateral sold
|
|
295
|
-
* in liquidation
|
|
296
|
-
* @property {Amount<'nat'>} totalOverageReceived running sum of overages,
|
|
297
|
-
* central received greater than debt
|
|
298
|
-
* @property {Amount<'nat'>} totalProceedsReceived running sum of minted
|
|
299
|
-
* received from liquidation
|
|
300
|
-
* @property {Amount<'nat'>} totalShortfallReceived running sum of shortfalls,
|
|
301
|
-
* minted received less than debt
|
|
302
|
-
* @property {number} numLiquidationsCompleted running count of liquidated
|
|
303
|
-
* vaults
|
|
304
|
-
* @property {number} numLiquidationsAborted running count of vault liquidations
|
|
305
|
-
* that were reverted.
|
|
306
|
-
*/
|
|
307
|
-
/**
|
|
308
|
-
* @typedef {{
|
|
309
|
-
* compoundedInterest: Ratio;
|
|
310
|
-
* interestRate: Ratio;
|
|
311
|
-
* latestInterestUpdate: Timestamp;
|
|
312
|
-
* }} AssetState
|
|
313
|
-
*
|
|
314
|
-
* @typedef {{
|
|
315
|
-
* getChargingPeriod: () => RelativeTime;
|
|
316
|
-
* getRecordingPeriod: () => RelativeTime;
|
|
317
|
-
* getDebtLimit: () => Amount<'nat'>;
|
|
318
|
-
* getInterestRate: () => Ratio;
|
|
319
|
-
* getLiquidationPadding: () => Ratio;
|
|
320
|
-
* getLiquidationMargin: () => Ratio;
|
|
321
|
-
* getLiquidationPenalty: () => Ratio;
|
|
322
|
-
* getMintFee: () => Ratio;
|
|
323
|
-
* getMinInitialDebt: () => Amount<'nat'>;
|
|
324
|
-
* }} GovernedParamGetters
|
|
325
|
-
*/
|
|
326
|
-
/**
|
|
327
|
-
* @typedef {Readonly<{
|
|
328
|
-
* debtMint: ZCFMint<'nat'>;
|
|
329
|
-
* collateralBrand: Brand<'nat'>;
|
|
330
|
-
* collateralUnit: Amount<'nat'>;
|
|
331
|
-
* descriptionScope: string;
|
|
332
|
-
* startTimeStamp: Timestamp;
|
|
333
|
-
* storageNode: StorageNode;
|
|
334
|
-
* }>} HeldParams
|
|
335
|
-
*/
|
|
336
|
-
/**
|
|
337
|
-
* @typedef {{
|
|
338
|
-
* assetTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<AssetState>;
|
|
339
|
-
* debtBrand: Brand<'nat'>;
|
|
340
|
-
* liquidatingVaults: SetStore<Vault>;
|
|
341
|
-
* metricsTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<MetricsNotification>;
|
|
342
|
-
* poolIncrementSeat: ZCFSeat;
|
|
343
|
-
* retainedCollateralSeat: ZCFSeat;
|
|
344
|
-
* unsettledVaults: MapStore<string, Vault>;
|
|
345
|
-
* }} ImmutableState
|
|
346
|
-
*/
|
|
347
|
-
/**
|
|
348
|
-
* @typedef {{
|
|
349
|
-
* compoundedInterest: Ratio;
|
|
350
|
-
* latestInterestUpdate: Timestamp;
|
|
351
|
-
* numLiquidationsCompleted: number;
|
|
352
|
-
* numLiquidationsAborted: number;
|
|
353
|
-
* totalCollateral: Amount<'nat'>;
|
|
354
|
-
* totalCollateralSold: Amount<'nat'>;
|
|
355
|
-
* totalDebt: Amount<'nat'>;
|
|
356
|
-
* liquidatingCollateral: Amount<'nat'>;
|
|
357
|
-
* liquidatingDebt: Amount<'nat'>;
|
|
358
|
-
* totalOverageReceived: Amount<'nat'>;
|
|
359
|
-
* totalProceedsReceived: Amount<'nat'>;
|
|
360
|
-
* totalShortfallReceived: Amount<'nat'>;
|
|
361
|
-
* vaultCounter: number;
|
|
362
|
-
* lockedQuote: PriceQuote | undefined;
|
|
363
|
-
* }} MutableState
|
|
364
|
-
*/
|
|
365
|
-
/**
|
|
366
|
-
* @type {(brand: Brand) => {
|
|
367
|
-
* prioritizedVaults: ReturnType<typeof makePrioritizedVaults>;
|
|
368
|
-
* storedQuotesNotifier: import('@agoric/notifier').StoredNotifier<PriceQuote>;
|
|
369
|
-
* storedCollateralQuote: PriceQuote;
|
|
370
|
-
* }}
|
|
371
|
-
*/
|
|
372
180
|
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
373
181
|
CloseVault(): Promise<Invitation<R, A>>;
|
|
374
182
|
TransferVault(): Promise<Invitation<R, A>>;
|
|
@@ -462,102 +270,6 @@ export function prepareVaultManagerKit(baggage: import('@agoric/ertp').Baggage,
|
|
|
462
270
|
};
|
|
463
271
|
};
|
|
464
272
|
invitationMakers: {
|
|
465
|
-
/** @typedef {import('@agoric/time/src/types').RelativeTime} RelativeTime */
|
|
466
|
-
/**
|
|
467
|
-
* @typedef {object} MetricsNotification
|
|
468
|
-
* @property {Ratio | null} lockedQuote priceQuote that will be used for
|
|
469
|
-
* liquidation. Non-null from priceLock time until liquidation has taken
|
|
470
|
-
* place.
|
|
471
|
-
* @property {number} numActiveVaults present count of vaults
|
|
472
|
-
* @property {number} numLiquidatingVaults present count of liquidating vaults
|
|
473
|
-
* @property {Amount<'nat'>} totalCollateral present sum of collateral across
|
|
474
|
-
* all vaults
|
|
475
|
-
* @property {Amount<'nat'>} totalDebt present sum of debt across all vaults
|
|
476
|
-
* @property {Amount<'nat'>} retainedCollateral collateral held as a result of
|
|
477
|
-
* not returning excess refunds to owners of vaults liquidated with
|
|
478
|
-
* shortfalls
|
|
479
|
-
* @property {Amount<'nat'>} liquidatingCollateral present sum of collateral in
|
|
480
|
-
* vaults sent for liquidation
|
|
481
|
-
* @property {Amount<'nat'>} liquidatingDebt present sum of debt in vaults sent
|
|
482
|
-
* for liquidation
|
|
483
|
-
* @property {Amount<'nat'>} totalCollateralSold running sum of collateral sold
|
|
484
|
-
* in liquidation
|
|
485
|
-
* @property {Amount<'nat'>} totalOverageReceived running sum of overages,
|
|
486
|
-
* central received greater than debt
|
|
487
|
-
* @property {Amount<'nat'>} totalProceedsReceived running sum of minted
|
|
488
|
-
* received from liquidation
|
|
489
|
-
* @property {Amount<'nat'>} totalShortfallReceived running sum of shortfalls,
|
|
490
|
-
* minted received less than debt
|
|
491
|
-
* @property {number} numLiquidationsCompleted running count of liquidated
|
|
492
|
-
* vaults
|
|
493
|
-
* @property {number} numLiquidationsAborted running count of vault liquidations
|
|
494
|
-
* that were reverted.
|
|
495
|
-
*/
|
|
496
|
-
/**
|
|
497
|
-
* @typedef {{
|
|
498
|
-
* compoundedInterest: Ratio;
|
|
499
|
-
* interestRate: Ratio;
|
|
500
|
-
* latestInterestUpdate: Timestamp;
|
|
501
|
-
* }} AssetState
|
|
502
|
-
*
|
|
503
|
-
* @typedef {{
|
|
504
|
-
* getChargingPeriod: () => RelativeTime;
|
|
505
|
-
* getRecordingPeriod: () => RelativeTime;
|
|
506
|
-
* getDebtLimit: () => Amount<'nat'>;
|
|
507
|
-
* getInterestRate: () => Ratio;
|
|
508
|
-
* getLiquidationPadding: () => Ratio;
|
|
509
|
-
* getLiquidationMargin: () => Ratio;
|
|
510
|
-
* getLiquidationPenalty: () => Ratio;
|
|
511
|
-
* getMintFee: () => Ratio;
|
|
512
|
-
* getMinInitialDebt: () => Amount<'nat'>;
|
|
513
|
-
* }} GovernedParamGetters
|
|
514
|
-
*/
|
|
515
|
-
/**
|
|
516
|
-
* @typedef {Readonly<{
|
|
517
|
-
* debtMint: ZCFMint<'nat'>;
|
|
518
|
-
* collateralBrand: Brand<'nat'>;
|
|
519
|
-
* collateralUnit: Amount<'nat'>;
|
|
520
|
-
* descriptionScope: string;
|
|
521
|
-
* startTimeStamp: Timestamp;
|
|
522
|
-
* storageNode: StorageNode;
|
|
523
|
-
* }>} HeldParams
|
|
524
|
-
*/
|
|
525
|
-
/**
|
|
526
|
-
* @typedef {{
|
|
527
|
-
* assetTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<AssetState>;
|
|
528
|
-
* debtBrand: Brand<'nat'>;
|
|
529
|
-
* liquidatingVaults: SetStore<Vault>;
|
|
530
|
-
* metricsTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<MetricsNotification>;
|
|
531
|
-
* poolIncrementSeat: ZCFSeat;
|
|
532
|
-
* retainedCollateralSeat: ZCFSeat;
|
|
533
|
-
* unsettledVaults: MapStore<string, Vault>;
|
|
534
|
-
* }} ImmutableState
|
|
535
|
-
*/
|
|
536
|
-
/**
|
|
537
|
-
* @typedef {{
|
|
538
|
-
* compoundedInterest: Ratio;
|
|
539
|
-
* latestInterestUpdate: Timestamp;
|
|
540
|
-
* numLiquidationsCompleted: number;
|
|
541
|
-
* numLiquidationsAborted: number;
|
|
542
|
-
* totalCollateral: Amount<'nat'>;
|
|
543
|
-
* totalCollateralSold: Amount<'nat'>;
|
|
544
|
-
* totalDebt: Amount<'nat'>;
|
|
545
|
-
* liquidatingCollateral: Amount<'nat'>;
|
|
546
|
-
* liquidatingDebt: Amount<'nat'>;
|
|
547
|
-
* totalOverageReceived: Amount<'nat'>;
|
|
548
|
-
* totalProceedsReceived: Amount<'nat'>;
|
|
549
|
-
* totalShortfallReceived: Amount<'nat'>;
|
|
550
|
-
* vaultCounter: number;
|
|
551
|
-
* lockedQuote: PriceQuote | undefined;
|
|
552
|
-
* }} MutableState
|
|
553
|
-
*/
|
|
554
|
-
/**
|
|
555
|
-
* @type {(brand: Brand) => {
|
|
556
|
-
* prioritizedVaults: ReturnType<typeof makePrioritizedVaults>;
|
|
557
|
-
* storedQuotesNotifier: import('@agoric/notifier').StoredNotifier<PriceQuote>;
|
|
558
|
-
* storedCollateralQuote: PriceQuote;
|
|
559
|
-
* }}
|
|
560
|
-
*/
|
|
561
273
|
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
562
274
|
CloseVault(): Promise<Invitation<R, A>>;
|
|
563
275
|
TransferVault(): Promise<Invitation<R, A>>;
|
|
@@ -664,102 +376,6 @@ export function prepareVaultManagerKit(baggage: import('@agoric/ertp').Baggage,
|
|
|
664
376
|
};
|
|
665
377
|
};
|
|
666
378
|
invitationMakers: {
|
|
667
|
-
/** @typedef {import('@agoric/time/src/types').RelativeTime} RelativeTime */
|
|
668
|
-
/**
|
|
669
|
-
* @typedef {object} MetricsNotification
|
|
670
|
-
* @property {Ratio | null} lockedQuote priceQuote that will be used for
|
|
671
|
-
* liquidation. Non-null from priceLock time until liquidation has taken
|
|
672
|
-
* place.
|
|
673
|
-
* @property {number} numActiveVaults present count of vaults
|
|
674
|
-
* @property {number} numLiquidatingVaults present count of liquidating vaults
|
|
675
|
-
* @property {Amount<'nat'>} totalCollateral present sum of collateral across
|
|
676
|
-
* all vaults
|
|
677
|
-
* @property {Amount<'nat'>} totalDebt present sum of debt across all vaults
|
|
678
|
-
* @property {Amount<'nat'>} retainedCollateral collateral held as a result of
|
|
679
|
-
* not returning excess refunds to owners of vaults liquidated with
|
|
680
|
-
* shortfalls
|
|
681
|
-
* @property {Amount<'nat'>} liquidatingCollateral present sum of collateral in
|
|
682
|
-
* vaults sent for liquidation
|
|
683
|
-
* @property {Amount<'nat'>} liquidatingDebt present sum of debt in vaults sent
|
|
684
|
-
* for liquidation
|
|
685
|
-
* @property {Amount<'nat'>} totalCollateralSold running sum of collateral sold
|
|
686
|
-
* in liquidation
|
|
687
|
-
* @property {Amount<'nat'>} totalOverageReceived running sum of overages,
|
|
688
|
-
* central received greater than debt
|
|
689
|
-
* @property {Amount<'nat'>} totalProceedsReceived running sum of minted
|
|
690
|
-
* received from liquidation
|
|
691
|
-
* @property {Amount<'nat'>} totalShortfallReceived running sum of shortfalls,
|
|
692
|
-
* minted received less than debt
|
|
693
|
-
* @property {number} numLiquidationsCompleted running count of liquidated
|
|
694
|
-
* vaults
|
|
695
|
-
* @property {number} numLiquidationsAborted running count of vault liquidations
|
|
696
|
-
* that were reverted.
|
|
697
|
-
*/
|
|
698
|
-
/**
|
|
699
|
-
* @typedef {{
|
|
700
|
-
* compoundedInterest: Ratio;
|
|
701
|
-
* interestRate: Ratio;
|
|
702
|
-
* latestInterestUpdate: Timestamp;
|
|
703
|
-
* }} AssetState
|
|
704
|
-
*
|
|
705
|
-
* @typedef {{
|
|
706
|
-
* getChargingPeriod: () => RelativeTime;
|
|
707
|
-
* getRecordingPeriod: () => RelativeTime;
|
|
708
|
-
* getDebtLimit: () => Amount<'nat'>;
|
|
709
|
-
* getInterestRate: () => Ratio;
|
|
710
|
-
* getLiquidationPadding: () => Ratio;
|
|
711
|
-
* getLiquidationMargin: () => Ratio;
|
|
712
|
-
* getLiquidationPenalty: () => Ratio;
|
|
713
|
-
* getMintFee: () => Ratio;
|
|
714
|
-
* getMinInitialDebt: () => Amount<'nat'>;
|
|
715
|
-
* }} GovernedParamGetters
|
|
716
|
-
*/
|
|
717
|
-
/**
|
|
718
|
-
* @typedef {Readonly<{
|
|
719
|
-
* debtMint: ZCFMint<'nat'>;
|
|
720
|
-
* collateralBrand: Brand<'nat'>;
|
|
721
|
-
* collateralUnit: Amount<'nat'>;
|
|
722
|
-
* descriptionScope: string;
|
|
723
|
-
* startTimeStamp: Timestamp;
|
|
724
|
-
* storageNode: StorageNode;
|
|
725
|
-
* }>} HeldParams
|
|
726
|
-
*/
|
|
727
|
-
/**
|
|
728
|
-
* @typedef {{
|
|
729
|
-
* assetTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<AssetState>;
|
|
730
|
-
* debtBrand: Brand<'nat'>;
|
|
731
|
-
* liquidatingVaults: SetStore<Vault>;
|
|
732
|
-
* metricsTopicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<MetricsNotification>;
|
|
733
|
-
* poolIncrementSeat: ZCFSeat;
|
|
734
|
-
* retainedCollateralSeat: ZCFSeat;
|
|
735
|
-
* unsettledVaults: MapStore<string, Vault>;
|
|
736
|
-
* }} ImmutableState
|
|
737
|
-
*/
|
|
738
|
-
/**
|
|
739
|
-
* @typedef {{
|
|
740
|
-
* compoundedInterest: Ratio;
|
|
741
|
-
* latestInterestUpdate: Timestamp;
|
|
742
|
-
* numLiquidationsCompleted: number;
|
|
743
|
-
* numLiquidationsAborted: number;
|
|
744
|
-
* totalCollateral: Amount<'nat'>;
|
|
745
|
-
* totalCollateralSold: Amount<'nat'>;
|
|
746
|
-
* totalDebt: Amount<'nat'>;
|
|
747
|
-
* liquidatingCollateral: Amount<'nat'>;
|
|
748
|
-
* liquidatingDebt: Amount<'nat'>;
|
|
749
|
-
* totalOverageReceived: Amount<'nat'>;
|
|
750
|
-
* totalProceedsReceived: Amount<'nat'>;
|
|
751
|
-
* totalShortfallReceived: Amount<'nat'>;
|
|
752
|
-
* vaultCounter: number;
|
|
753
|
-
* lockedQuote: PriceQuote | undefined;
|
|
754
|
-
* }} MutableState
|
|
755
|
-
*/
|
|
756
|
-
/**
|
|
757
|
-
* @type {(brand: Brand) => {
|
|
758
|
-
* prioritizedVaults: ReturnType<typeof makePrioritizedVaults>;
|
|
759
|
-
* storedQuotesNotifier: import('@agoric/notifier').StoredNotifier<PriceQuote>;
|
|
760
|
-
* storedCollateralQuote: PriceQuote;
|
|
761
|
-
* }}
|
|
762
|
-
*/
|
|
763
379
|
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
764
380
|
CloseVault(): Promise<Invitation<R, A>>;
|
|
765
381
|
TransferVault(): Promise<Invitation<R, A>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaultManager.d.ts","sourceRoot":"","sources":["vaultManager.js"],"names":[],"mappings":"AA4LO,gDATI,OAAO,cAAc,EAAE,OAAO,uDAC9B;IACV,GAAO,EAAE,OAAO,mBAAmB,EAAE,eAAe,CAAC;IACrD,UAAc,EAAE,KAAK,UAAU,CAAC,CAAC;IACjC,eAAmB,EAAE,OAAO,6CAA6C,EAAE,eAAe,CAAC;IAC3F,gBAAoB,EAAE,OAAO,6CAA6C,EAAE,gBAAgB,CAAC;IAC7F,aAAiB,EAAE,OAAO,oBAAoB,EAAE,kBAAkB,CAAC;CAChE;cA1DW,QAAQ,KAAK,CAAC;qBACP,MAAM,KAAK,CAAC;oBACb,OAAO,KAAK,CAAC;sBACX,MAAM;oBACR,SAAS;iBACZ,WAAW;;wBAgEmB,WAAW;;;;;;;;;;;;QA4JnD,2EAA2E;;QAoE3E,oCAAoC;oCAAxB,SAAS;;;;;QAuGrB;;;;;WAKG;kCAJQ,OAAO,KAAK,CAAC,cACb,OAAO,KAAK,CAAC,WACb,OAAO,KAAK,CAAC,aACb,OAAO,KAAK,CAAC;;QA8ExB;;;;;;;;;;;;;;WAcG;2CARQ,mBAAmB,aACnB,OAAO,KAAK,CAAC,sBACb,KAAK,UAAU,EAAE,aAAa,CAAC,aAC/B,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AAC,CAAC;IACzC,eAAmB,EAAE,OAAO,KAAK,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,KAAK,CAAC,CAAC;IACxC,qBAAyB,EAAE,OAAO,KAAK,CAAC,CAAC;IACzC,sBAA0B,EAAE,OAAO,KAAK,CAAC,CAAC;IAC1C,YAAgB,EAAE,MAAM,CAAC;IACzB,WAAe,EAAE,UAAU,GAAG,SAAS,CAAC;CACrC;8BAohCU,QAAQ,WAAW,WAAW,6BAA6B,CAAC,CAAC,CAAC;;;;;;;;2BAE/D,eAAe,CAAC,MAAM,CAAC;gCAMtB,eAAe,CAAC,YAAY,CAAC"}
|
package/src/typeGuards.d.ts
DELETED
package/src/typeGuards.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAIA,iFAAiF;AACjF,mCAKE"}
|
package/src/typeGuards.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @jessie-check
|
|
2
|
-
|
|
3
|
-
import { M } from '@agoric/store';
|
|
4
|
-
|
|
5
|
-
/** To be used only for 'helper' facets where the calls are from trusted code. */
|
|
6
|
-
export const UnguardedHelperI = M.interface(
|
|
7
|
-
'helper',
|
|
8
|
-
{},
|
|
9
|
-
// not exposed so sloppy okay
|
|
10
|
-
{ sloppy: true },
|
|
11
|
-
);
|