@agoric/inter-protocol 0.16.2-dev-a3bdfb1.0 → 0.16.2-dev-fa844b5.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 +17 -17
- package/src/auction/auctionBook.d.ts +2 -2
- package/src/auction/auctioneer.d.ts +4 -4
- package/src/auction/offerBook.d.ts +2 -2
- package/src/auction/params.d.ts +4 -4
- package/src/contractSupport.d.ts +3 -3
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +2 -2
- package/src/feeDistributor.d.ts +47 -31
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +5 -1
- package/src/price/fluxAggregatorContract.d.ts +6 -6
- package/src/price/fluxAggregatorKit.d.ts +4 -4
- package/src/price/priceOracleKit.d.ts +1 -1
- package/src/price/roundsManager.d.ts +7 -7
- package/src/proposals/econ-behaviors.d.ts +83 -83
- package/src/proposals/price-feed-proposal.d.ts +2 -2
- package/src/proposals/utils.d.ts +1 -1
- package/src/provisionPool.d.ts +22 -22
- package/src/provisionPoolKit.d.ts +120 -118
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +7 -2
- package/src/psm/psm.d.ts +7 -7
- package/src/reserve/assetReserve.d.ts +6 -6
- package/src/reserve/assetReserveKit.d.ts +2 -2
- package/src/vaultFactory/burn.d.ts +1 -1
- package/src/vaultFactory/burn.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.d.ts +32 -32
- package/src/vaultFactory/math.d.ts +4 -4
- package/src/vaultFactory/orderedVaultStore.d.ts +55 -55
- package/src/vaultFactory/params.d.ts +18 -18
- package/src/vaultFactory/prioritizedVaults.d.ts +132 -132
- package/src/vaultFactory/types.d.ts +15 -15
- package/src/vaultFactory/vault.d.ts +24 -24
- package/src/vaultFactory/vaultDirector.d.ts +49 -49
- package/src/vaultFactory/vaultFactory.d.ts +37 -37
- package/src/vaultFactory/vaultHolder.d.ts +36 -36
- package/src/vaultFactory/vaultKit.d.ts +15 -15
- package/src/vaultFactory/vaultManager.d.ts +89 -89
|
@@ -31,7 +31,7 @@ type VaultManagerParamValues = {
|
|
|
31
31
|
*/
|
|
32
32
|
liquidationPadding?: Ratio | undefined;
|
|
33
33
|
};
|
|
34
|
-
type AddVaultType = (collateralIssuer: Issuer, collateralKeyword: Keyword, params: VaultManagerParamValues) => Promise<import("@endo/exo
|
|
34
|
+
type AddVaultType = (collateralIssuer: Issuer, collateralKeyword: Keyword, params: VaultManagerParamValues) => Promise<import("@endo/exo").Guarded<{
|
|
35
35
|
getGovernedParams(): import("./vaultManager.js").GovernedParamGetters;
|
|
36
36
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
37
37
|
publicSubscribers: {
|
|
@@ -41,12 +41,12 @@ type AddVaultType = (collateralIssuer: Issuer, collateralKeyword: Keyword, param
|
|
|
41
41
|
storagePath: Promise<string>;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
invitationMakers: import("@endo/exo
|
|
44
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
45
45
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
46
46
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
47
47
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
48
48
|
}>;
|
|
49
|
-
vault: import("@endo/exo
|
|
49
|
+
vault: import("@endo/exo").Guarded<{
|
|
50
50
|
getPublicTopics(): {
|
|
51
51
|
vault: {
|
|
52
52
|
description: string;
|
|
@@ -57,14 +57,14 @@ type AddVaultType = (collateralIssuer: Issuer, collateralKeyword: Keyword, param
|
|
|
57
57
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
58
58
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
59
59
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
60
|
-
getCollateralAmount(): Amount<"nat">;
|
|
61
|
-
getCurrentDebt(): Amount<"nat">;
|
|
60
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
61
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
62
62
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
63
63
|
}>;
|
|
64
64
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
65
65
|
}>;
|
|
66
66
|
getCollateralQuote(): PriceQuote;
|
|
67
|
-
getPublicFacet(): import("@endo/exo
|
|
67
|
+
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
68
68
|
makeVaultInvitation(): Promise<Invitation<{
|
|
69
69
|
publicSubscribers: {
|
|
70
70
|
vault: {
|
|
@@ -73,12 +73,12 @@ type AddVaultType = (collateralIssuer: Issuer, collateralKeyword: Keyword, param
|
|
|
73
73
|
storagePath: Promise<string>;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
|
-
invitationMakers: import("@endo/exo
|
|
76
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
77
77
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
78
78
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
79
79
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
80
80
|
}>;
|
|
81
|
-
vault: import("@endo/exo
|
|
81
|
+
vault: import("@endo/exo").Guarded<{
|
|
82
82
|
getPublicTopics(): {
|
|
83
83
|
vault: {
|
|
84
84
|
description: string;
|
|
@@ -89,8 +89,8 @@ type AddVaultType = (collateralIssuer: Issuer, collateralKeyword: Keyword, param
|
|
|
89
89
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
90
90
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
91
91
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
92
|
-
getCollateralAmount(): Amount<"nat">;
|
|
93
|
-
getCurrentDebt(): Amount<"nat">;
|
|
92
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
93
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
94
94
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
95
95
|
}>;
|
|
96
96
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -104,7 +104,7 @@ type AddVaultType = (collateralIssuer: Issuer, collateralKeyword: Keyword, param
|
|
|
104
104
|
}>;
|
|
105
105
|
lockOraclePrices(): PriceQuote;
|
|
106
106
|
liquidateVaults(auctionPF: ERef<GovernedPublicFacet<{
|
|
107
|
-
getElectorate: () => Amount<"set">;
|
|
107
|
+
getElectorate: () => globalThis.Amount<"set">;
|
|
108
108
|
getStartFrequency: () => RelativeTime;
|
|
109
109
|
getClockStep: () => RelativeTime;
|
|
110
110
|
getStartingRate: () => bigint;
|
|
@@ -112,14 +112,14 @@ type AddVaultType = (collateralIssuer: Issuer, collateralKeyword: Keyword, param
|
|
|
112
112
|
getDiscountStep: () => bigint;
|
|
113
113
|
getAuctionStartDelay: () => RelativeTime;
|
|
114
114
|
getPriceLockPeriod: () => RelativeTime;
|
|
115
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
116
|
-
maxBuy: Amount<"nat">;
|
|
115
|
+
makeBidInvitation(collateralBrand: globalThis.Brand<"nat">): Promise<Invitation<string, ({
|
|
116
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
117
117
|
} & {
|
|
118
118
|
exitAfterBuy?: boolean | undefined;
|
|
119
119
|
} & {
|
|
120
120
|
offerPrice: Ratio;
|
|
121
121
|
}) | ({
|
|
122
|
-
maxBuy: Amount<"nat">;
|
|
122
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
123
123
|
} & {
|
|
124
124
|
exitAfterBuy?: boolean | undefined;
|
|
125
125
|
} & {
|
|
@@ -137,7 +137,7 @@ type AddVaultType = (collateralIssuer: Issuer, collateralKeyword: Keyword, param
|
|
|
137
137
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
138
138
|
};
|
|
139
139
|
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
140
|
-
goal: Amount<"nat">;
|
|
140
|
+
goal: globalThis.Amount<"nat">;
|
|
141
141
|
}>>;
|
|
142
142
|
}>>): Promise<void>;
|
|
143
143
|
}>>;
|
|
@@ -67,12 +67,12 @@ export const VaultI: import("@endo/patterns").InterfaceGuard<{
|
|
|
67
67
|
makeTransferInvitation: import("@endo/patterns").MethodGuard;
|
|
68
68
|
abortLiquidation: import("@endo/patterns").MethodGuard;
|
|
69
69
|
}>;
|
|
70
|
-
export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit, zcf: ZCF): (manager: VaultManager, idInManager: string, storageNode: StorageNode) => import("@endo/exo
|
|
70
|
+
export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit, zcf: ZCF): (manager: VaultManager, idInManager: string, storageNode: StorageNode) => import("@endo/exo").GuardedKit<{
|
|
71
71
|
helper: {
|
|
72
|
-
collateralBrand(): Brand<"nat">;
|
|
73
|
-
debtBrand(): Brand<"nat">;
|
|
74
|
-
emptyCollateral(): Amount<"nat">;
|
|
75
|
-
emptyDebt(): Amount<"nat">;
|
|
72
|
+
collateralBrand(): globalThis.Brand<"nat">;
|
|
73
|
+
debtBrand(): globalThis.Brand<"nat">;
|
|
74
|
+
emptyCollateral(): globalThis.Amount<"nat">;
|
|
75
|
+
emptyDebt(): globalThis.Amount<"nat">;
|
|
76
76
|
/**
|
|
77
77
|
* @typedef {{
|
|
78
78
|
* give: { Collateral: Amount<'nat'>; Minted: Amount<'nat'> };
|
|
@@ -116,7 +116,7 @@ export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: im
|
|
|
116
116
|
*/
|
|
117
117
|
updateDebtAccounting(oldDebtNormalized: NormalizedDebt, oldCollateral: Amount<'nat'>, newDebtActual: Amount<'nat'>): void;
|
|
118
118
|
/** @param {ZCFSeat} seat */
|
|
119
|
-
getCollateralAllocated(seat: ZCFSeat): Amount<"nat">;
|
|
119
|
+
getCollateralAllocated(seat: ZCFSeat): globalThis.Amount<"nat">;
|
|
120
120
|
getMintedAllocated(seat: any): any;
|
|
121
121
|
assertVaultHoldsNoMinted(): void;
|
|
122
122
|
/**
|
|
@@ -127,10 +127,10 @@ export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: im
|
|
|
127
127
|
/** @param {HolderPhase} newPhase */
|
|
128
128
|
getStateSnapshot(newPhase: HolderPhase): {
|
|
129
129
|
debtSnapshot: {
|
|
130
|
-
debt: Amount<"nat">;
|
|
130
|
+
debt: globalThis.Amount<"nat">;
|
|
131
131
|
interest: Ratio;
|
|
132
132
|
};
|
|
133
|
-
locked: Amount<"nat">;
|
|
133
|
+
locked: globalThis.Amount<"nat">;
|
|
134
134
|
vaultState: HolderPhase;
|
|
135
135
|
};
|
|
136
136
|
/** call this whenever anything changes! */
|
|
@@ -149,10 +149,10 @@ export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: im
|
|
|
149
149
|
* @param {Amount<'nat'>} wantAmount
|
|
150
150
|
*/
|
|
151
151
|
debtFee(currentDebt: Amount<'nat'>, giveAmount: Amount<'nat'>, wantAmount: Amount<'nat'>): {
|
|
152
|
-
newDebt: Amount<"nat">;
|
|
153
|
-
toMint: Amount<"nat">;
|
|
154
|
-
fee: Amount<"nat">;
|
|
155
|
-
surplus: Amount<"nat">;
|
|
152
|
+
newDebt: globalThis.Amount<"nat">;
|
|
153
|
+
toMint: globalThis.Amount<"nat">;
|
|
154
|
+
fee: globalThis.Amount<"nat">;
|
|
155
|
+
surplus: globalThis.Amount<"nat">;
|
|
156
156
|
};
|
|
157
157
|
/**
|
|
158
158
|
* Adjust principal and collateral (atomically for offer safety)
|
|
@@ -195,12 +195,12 @@ export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: im
|
|
|
195
195
|
storagePath: Promise<string>;
|
|
196
196
|
};
|
|
197
197
|
};
|
|
198
|
-
invitationMakers: import("@endo/exo
|
|
198
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
199
199
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
200
200
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
201
201
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
202
202
|
}>;
|
|
203
|
-
vault: import("@endo/exo
|
|
203
|
+
vault: import("@endo/exo").Guarded<{
|
|
204
204
|
getPublicTopics(): {
|
|
205
205
|
vault: {
|
|
206
206
|
description: string;
|
|
@@ -211,8 +211,8 @@ export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: im
|
|
|
211
211
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
212
212
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
213
213
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
214
|
-
getCollateralAmount(): Amount<"nat">;
|
|
215
|
-
getCurrentDebt(): Amount<"nat">;
|
|
214
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
215
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
216
216
|
getNormalizedDebt(): NormalizedDebt;
|
|
217
217
|
}>;
|
|
218
218
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -232,12 +232,12 @@ export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: im
|
|
|
232
232
|
storagePath: Promise<string>;
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
invitationMakers: import("@endo/exo
|
|
235
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
236
236
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
237
237
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
238
238
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
239
239
|
}>;
|
|
240
|
-
vault: import("@endo/exo
|
|
240
|
+
vault: import("@endo/exo").Guarded<{
|
|
241
241
|
getPublicTopics(): {
|
|
242
242
|
vault: {
|
|
243
243
|
description: string;
|
|
@@ -248,8 +248,8 @@ export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: im
|
|
|
248
248
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
249
249
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
250
250
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
251
|
-
getCollateralAmount(): Amount<"nat">;
|
|
252
|
-
getCurrentDebt(): Amount<"nat">;
|
|
251
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
252
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
253
253
|
getNormalizedDebt(): NormalizedDebt;
|
|
254
254
|
}>;
|
|
255
255
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -279,12 +279,12 @@ export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: im
|
|
|
279
279
|
storagePath: Promise<string>;
|
|
280
280
|
};
|
|
281
281
|
};
|
|
282
|
-
invitationMakers: import("@endo/exo
|
|
282
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
283
283
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
284
284
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
285
285
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
286
286
|
}>;
|
|
287
|
-
vault: import("@endo/exo
|
|
287
|
+
vault: import("@endo/exo").Guarded<{
|
|
288
288
|
getPublicTopics(): {
|
|
289
289
|
vault: {
|
|
290
290
|
description: string;
|
|
@@ -295,8 +295,8 @@ export function prepareVault(baggage: MapStore<string, any>, makeRecorderKit: im
|
|
|
295
295
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
296
296
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
297
297
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
298
|
-
getCollateralAmount(): Amount<"nat">;
|
|
299
|
-
getCurrentDebt(): Amount<"nat">;
|
|
298
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
299
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
300
300
|
getNormalizedDebt(): NormalizedDebt;
|
|
301
301
|
}>;
|
|
302
302
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ) => ReturnType<ReturnType<typeof prepareVaultDirector>>}
|
|
7
7
|
*/
|
|
8
8
|
export const provideDirector: (...pvdArgs: [baggage: MapStore<string, any>, zcf: import("./vaultFactory.js").VaultFactoryZCF, directorParamManager: VaultDirectorParamManager, debtMint: ZCFMint<"nat">, timer: ERef<import("@agoric/time").TimerService>, auctioneer: ERef<GovernedPublicFacet<{
|
|
9
|
-
getElectorate: () => Amount<"set">;
|
|
9
|
+
getElectorate: () => globalThis.Amount<"set">;
|
|
10
10
|
getStartFrequency: () => RelativeTime;
|
|
11
11
|
getClockStep: () => RelativeTime;
|
|
12
12
|
getStartingRate: () => bigint;
|
|
@@ -14,14 +14,14 @@ export const provideDirector: (...pvdArgs: [baggage: MapStore<string, any>, zcf:
|
|
|
14
14
|
getDiscountStep: () => bigint;
|
|
15
15
|
getAuctionStartDelay: () => RelativeTime;
|
|
16
16
|
getPriceLockPeriod: () => RelativeTime;
|
|
17
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
18
|
-
maxBuy: Amount<"nat">;
|
|
17
|
+
makeBidInvitation(collateralBrand: globalThis.Brand<"nat">): Promise<Invitation<string, ({
|
|
18
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
19
19
|
} & {
|
|
20
20
|
exitAfterBuy?: boolean | undefined;
|
|
21
21
|
} & {
|
|
22
22
|
offerPrice: Ratio;
|
|
23
23
|
}) | ({
|
|
24
|
-
maxBuy: Amount<"nat">;
|
|
24
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
25
25
|
} & {
|
|
26
26
|
exitAfterBuy?: boolean | undefined;
|
|
27
27
|
} & {
|
|
@@ -39,7 +39,7 @@ export const provideDirector: (...pvdArgs: [baggage: MapStore<string, any>, zcf:
|
|
|
39
39
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
40
40
|
};
|
|
41
41
|
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
42
|
-
goal: Amount<"nat">;
|
|
42
|
+
goal: globalThis.Amount<"nat">;
|
|
43
43
|
}>>;
|
|
44
44
|
}>>, storageNode: ERef<StorageNode>, marshaller: ERef<Marshaller<unknown>>, makeRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>, makeERecorderKit: <T_1>(storageNodeP: ERef<StorageNode>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T_1> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").EventualRecorderKit<T_1>]) => ReturnType<ReturnType<typeof prepareVaultDirector>>;
|
|
45
45
|
export type MetricsNotification = {
|
|
@@ -72,7 +72,7 @@ export type VaultDirectorParamManager = import('@agoric/governance/src/contractG
|
|
|
72
72
|
* @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeERecorderKit} makeERecorderKit
|
|
73
73
|
*/
|
|
74
74
|
declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: import('./vaultFactory.js').VaultFactoryZCF, directorParamManager: VaultDirectorParamManager, debtMint: ZCFMint<'nat'>, timer: ERef<import("@agoric/time").TimerService>, auctioneer: ERef<GovernedPublicFacet<{
|
|
75
|
-
getElectorate: () => Amount<"set">;
|
|
75
|
+
getElectorate: () => globalThis.Amount<"set">;
|
|
76
76
|
getStartFrequency: () => RelativeTime;
|
|
77
77
|
getClockStep: () => RelativeTime;
|
|
78
78
|
getStartingRate: () => bigint;
|
|
@@ -80,14 +80,14 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
80
80
|
getDiscountStep: () => bigint;
|
|
81
81
|
getAuctionStartDelay: () => RelativeTime;
|
|
82
82
|
getPriceLockPeriod: () => RelativeTime;
|
|
83
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
84
|
-
maxBuy: Amount<"nat">;
|
|
83
|
+
makeBidInvitation(collateralBrand: globalThis.Brand<"nat">): Promise<Invitation<string, ({
|
|
84
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
85
85
|
} & {
|
|
86
86
|
exitAfterBuy?: boolean | undefined;
|
|
87
87
|
} & {
|
|
88
88
|
offerPrice: Ratio;
|
|
89
89
|
}) | ({
|
|
90
|
-
maxBuy: Amount<"nat">;
|
|
90
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
91
91
|
} & {
|
|
92
92
|
exitAfterBuy?: boolean | undefined;
|
|
93
93
|
} & {
|
|
@@ -105,9 +105,9 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
105
105
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
106
106
|
};
|
|
107
107
|
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
108
|
-
goal: Amount<"nat">;
|
|
108
|
+
goal: globalThis.Amount<"nat">;
|
|
109
109
|
}>>;
|
|
110
|
-
}>>, storageNode: ERef<StorageNode>, marshaller: ERef<Marshaller<unknown>>, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit, makeERecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeERecorderKit): () => import("@endo/exo
|
|
110
|
+
}>>, storageNode: ERef<StorageNode>, marshaller: ERef<Marshaller<unknown>>, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit, makeERecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeERecorderKit): () => import("@endo/exo").GuardedKit<{
|
|
111
111
|
creator: {
|
|
112
112
|
getParamMgrRetriever: () => {
|
|
113
113
|
/** @param {VaultFactoryParamPath} paramPath */
|
|
@@ -132,13 +132,13 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
132
132
|
}>;
|
|
133
133
|
/** @param {string} name */
|
|
134
134
|
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
135
|
-
getLimitedCreatorFacet(): import("@endo/exo
|
|
135
|
+
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
136
136
|
/**
|
|
137
137
|
* @param {Issuer<'nat'>} collateralIssuer
|
|
138
138
|
* @param {Keyword} collateralKeyword
|
|
139
139
|
* @param {VaultManagerParamValues} initialParamValues
|
|
140
140
|
*/
|
|
141
|
-
addVaultType(collateralIssuer: Issuer<'nat'>, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo
|
|
141
|
+
addVaultType(collateralIssuer: Issuer<'nat'>, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
142
142
|
getGovernedParams(): import("./vaultManager.js").GovernedParamGetters;
|
|
143
143
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
144
144
|
publicSubscribers: {
|
|
@@ -148,12 +148,12 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
148
148
|
storagePath: Promise<string>;
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
|
-
invitationMakers: import("@endo/exo
|
|
151
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
152
152
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
153
153
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
154
154
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
155
155
|
}>;
|
|
156
|
-
vault: import("@endo/exo
|
|
156
|
+
vault: import("@endo/exo").Guarded<{
|
|
157
157
|
getPublicTopics(): {
|
|
158
158
|
vault: {
|
|
159
159
|
description: string;
|
|
@@ -164,14 +164,14 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
164
164
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
165
165
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
166
166
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
167
|
-
getCollateralAmount(): Amount<"nat">;
|
|
168
|
-
getCurrentDebt(): Amount<"nat">;
|
|
167
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
168
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
169
169
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
170
170
|
}>;
|
|
171
171
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
172
172
|
}>;
|
|
173
173
|
getCollateralQuote(): PriceQuote;
|
|
174
|
-
getPublicFacet(): import("@endo/exo
|
|
174
|
+
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
175
175
|
makeVaultInvitation(): Promise<Invitation<{
|
|
176
176
|
publicSubscribers: {
|
|
177
177
|
vault: {
|
|
@@ -180,12 +180,12 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
180
180
|
storagePath: Promise<string>;
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
|
-
invitationMakers: import("@endo/exo
|
|
183
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
184
184
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
185
185
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
186
186
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
187
187
|
}>;
|
|
188
|
-
vault: import("@endo/exo
|
|
188
|
+
vault: import("@endo/exo").Guarded<{
|
|
189
189
|
getPublicTopics(): {
|
|
190
190
|
vault: {
|
|
191
191
|
description: string;
|
|
@@ -196,8 +196,8 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
196
196
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
197
197
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
198
198
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
199
|
-
getCollateralAmount(): Amount<"nat">;
|
|
200
|
-
getCurrentDebt(): Amount<"nat">;
|
|
199
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
200
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
201
201
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
202
202
|
}>;
|
|
203
203
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -211,7 +211,7 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
211
211
|
}>;
|
|
212
212
|
lockOraclePrices(): PriceQuote;
|
|
213
213
|
liquidateVaults(auctionPF: ERef<GovernedPublicFacet<{
|
|
214
|
-
getElectorate: () => Amount<"set">;
|
|
214
|
+
getElectorate: () => globalThis.Amount<"set">;
|
|
215
215
|
getStartFrequency: () => RelativeTime;
|
|
216
216
|
getClockStep: () => RelativeTime;
|
|
217
217
|
getStartingRate: () => bigint;
|
|
@@ -219,14 +219,14 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
219
219
|
getDiscountStep: () => bigint;
|
|
220
220
|
getAuctionStartDelay: () => RelativeTime;
|
|
221
221
|
getPriceLockPeriod: () => RelativeTime;
|
|
222
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
223
|
-
maxBuy: Amount<"nat">;
|
|
222
|
+
makeBidInvitation(collateralBrand: globalThis.Brand<"nat">): Promise<Invitation<string, ({
|
|
223
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
224
224
|
} & {
|
|
225
225
|
exitAfterBuy?: boolean | undefined;
|
|
226
226
|
} & {
|
|
227
227
|
offerPrice: Ratio;
|
|
228
228
|
}) | ({
|
|
229
|
-
maxBuy: Amount<"nat">;
|
|
229
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
230
230
|
} & {
|
|
231
231
|
exitAfterBuy?: boolean | undefined;
|
|
232
232
|
} & {
|
|
@@ -244,7 +244,7 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
244
244
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
245
245
|
};
|
|
246
246
|
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
247
|
-
goal: Amount<"nat">;
|
|
247
|
+
goal: globalThis.Amount<"nat">;
|
|
248
248
|
}>>;
|
|
249
249
|
}>>): Promise<void>;
|
|
250
250
|
}>>;
|
|
@@ -277,7 +277,7 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
277
277
|
* @param {Keyword} collateralKeyword
|
|
278
278
|
* @param {VaultManagerParamValues} initialParamValues
|
|
279
279
|
*/
|
|
280
|
-
addVaultType(collateralIssuer: Issuer<'nat'>, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo
|
|
280
|
+
addVaultType(collateralIssuer: Issuer<'nat'>, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
281
281
|
getGovernedParams(): import("./vaultManager.js").GovernedParamGetters;
|
|
282
282
|
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
283
283
|
publicSubscribers: {
|
|
@@ -287,12 +287,12 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
287
287
|
storagePath: Promise<string>;
|
|
288
288
|
};
|
|
289
289
|
};
|
|
290
|
-
invitationMakers: import("@endo/exo
|
|
290
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
291
291
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
292
292
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
293
293
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
294
294
|
}>;
|
|
295
|
-
vault: import("@endo/exo
|
|
295
|
+
vault: import("@endo/exo").Guarded<{
|
|
296
296
|
getPublicTopics(): {
|
|
297
297
|
vault: {
|
|
298
298
|
description: string;
|
|
@@ -303,14 +303,14 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
303
303
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
304
304
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
305
305
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
306
|
-
getCollateralAmount(): Amount<"nat">;
|
|
307
|
-
getCurrentDebt(): Amount<"nat">;
|
|
306
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
307
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
308
308
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
309
309
|
}>;
|
|
310
310
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
311
311
|
}>;
|
|
312
312
|
getCollateralQuote(): PriceQuote;
|
|
313
|
-
getPublicFacet(): import("@endo/exo
|
|
313
|
+
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
314
314
|
makeVaultInvitation(): Promise<Invitation<{
|
|
315
315
|
publicSubscribers: {
|
|
316
316
|
vault: {
|
|
@@ -319,12 +319,12 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
319
319
|
storagePath: Promise<string>;
|
|
320
320
|
};
|
|
321
321
|
};
|
|
322
|
-
invitationMakers: import("@endo/exo
|
|
322
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
323
323
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
324
324
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
325
325
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
326
326
|
}>;
|
|
327
|
-
vault: import("@endo/exo
|
|
327
|
+
vault: import("@endo/exo").Guarded<{
|
|
328
328
|
getPublicTopics(): {
|
|
329
329
|
vault: {
|
|
330
330
|
description: string;
|
|
@@ -335,8 +335,8 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
335
335
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
336
336
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
337
337
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
338
|
-
getCollateralAmount(): Amount<"nat">;
|
|
339
|
-
getCurrentDebt(): Amount<"nat">;
|
|
338
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
339
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
340
340
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
341
341
|
}>;
|
|
342
342
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -350,7 +350,7 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
350
350
|
}>;
|
|
351
351
|
lockOraclePrices(): PriceQuote;
|
|
352
352
|
liquidateVaults(auctionPF: ERef<GovernedPublicFacet<{
|
|
353
|
-
getElectorate: () => Amount<"set">;
|
|
353
|
+
getElectorate: () => globalThis.Amount<"set">;
|
|
354
354
|
getStartFrequency: () => RelativeTime;
|
|
355
355
|
getClockStep: () => RelativeTime;
|
|
356
356
|
getStartingRate: () => bigint;
|
|
@@ -358,14 +358,14 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
358
358
|
getDiscountStep: () => bigint;
|
|
359
359
|
getAuctionStartDelay: () => RelativeTime;
|
|
360
360
|
getPriceLockPeriod: () => RelativeTime;
|
|
361
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, ({
|
|
362
|
-
maxBuy: Amount<"nat">;
|
|
361
|
+
makeBidInvitation(collateralBrand: globalThis.Brand<"nat">): Promise<Invitation<string, ({
|
|
362
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
363
363
|
} & {
|
|
364
364
|
exitAfterBuy?: boolean | undefined;
|
|
365
365
|
} & {
|
|
366
366
|
offerPrice: Ratio;
|
|
367
367
|
}) | ({
|
|
368
|
-
maxBuy: Amount<"nat">;
|
|
368
|
+
maxBuy: globalThis.Amount<"nat">;
|
|
369
369
|
} & {
|
|
370
370
|
exitAfterBuy?: boolean | undefined;
|
|
371
371
|
} & {
|
|
@@ -383,7 +383,7 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
383
383
|
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
384
384
|
};
|
|
385
385
|
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
386
|
-
goal: Amount<"nat">;
|
|
386
|
+
goal: globalThis.Amount<"nat">;
|
|
387
387
|
}>>;
|
|
388
388
|
}>>): Promise<void>;
|
|
389
389
|
}>>;
|
|
@@ -407,7 +407,7 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
407
407
|
};
|
|
408
408
|
public: {
|
|
409
409
|
/** @param {Brand} brandIn */
|
|
410
|
-
getCollateralManager(brandIn: Brand): import("@endo/exo
|
|
410
|
+
getCollateralManager(brandIn: Brand): import("@endo/exo").Guarded<{
|
|
411
411
|
makeVaultInvitation(): Promise<Invitation<{
|
|
412
412
|
publicSubscribers: {
|
|
413
413
|
vault: {
|
|
@@ -416,12 +416,12 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
416
416
|
storagePath: Promise<string>;
|
|
417
417
|
};
|
|
418
418
|
};
|
|
419
|
-
invitationMakers: import("@endo/exo
|
|
419
|
+
invitationMakers: import("@endo/exo").Guarded<{
|
|
420
420
|
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
421
421
|
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
422
422
|
TransferVault(): Promise<Invitation<any, undefined>>;
|
|
423
423
|
}>;
|
|
424
|
-
vault: import("@endo/exo
|
|
424
|
+
vault: import("@endo/exo").Guarded<{
|
|
425
425
|
getPublicTopics(): {
|
|
426
426
|
vault: {
|
|
427
427
|
description: string;
|
|
@@ -432,8 +432,8 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
432
432
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
433
433
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
434
434
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
435
|
-
getCollateralAmount(): Amount<"nat">;
|
|
436
|
-
getCurrentDebt(): Amount<"nat">;
|
|
435
|
+
getCollateralAmount(): globalThis.Amount<"nat">;
|
|
436
|
+
getCurrentDebt(): globalThis.Amount<"nat">;
|
|
437
437
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
438
438
|
}>;
|
|
439
439
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -445,7 +445,7 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
445
445
|
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").MetricsNotification>;
|
|
446
446
|
};
|
|
447
447
|
}>;
|
|
448
|
-
getDebtIssuer(): Issuer<"nat">;
|
|
448
|
+
getDebtIssuer(): globalThis.Issuer<"nat">;
|
|
449
449
|
/**
|
|
450
450
|
* subscription for the paramManager for a particular vaultManager
|
|
451
451
|
*
|
|
@@ -469,7 +469,7 @@ declare function prepareVaultDirector(baggage: MapStore<string, any>, zcf: impor
|
|
|
469
469
|
collateralBrand: Brand;
|
|
470
470
|
}): ERef<ParamStateRecord>;
|
|
471
471
|
/** @param {string} name */
|
|
472
|
-
getInvitationAmount(name: string): Amount<"set">;
|
|
472
|
+
getInvitationAmount(name: string): globalThis.Amount<"set">;
|
|
473
473
|
};
|
|
474
474
|
helper: {
|
|
475
475
|
resetWakeupsForNextAuction(): Promise<void>;
|