@agoric/inter-protocol 0.16.2-dev-16095c5.0 → 0.16.2-dev-980ff41.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 -17
- package/src/auction/auctionBook.d.ts +1 -1
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +1 -4
- package/src/auction/auctioneer.d.ts +1 -1
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +1 -2
- package/src/auction/params.d.ts +2 -2
- package/src/econCommitteeCharter.d.ts.map +1 -1
- package/src/econCommitteeCharter.js +1 -2
- package/src/feeDistributor.d.ts +8 -8
- package/src/feeDistributor.d.ts.map +1 -1
- package/src/feeDistributor.js +1 -1
- package/src/price/roundsManager.d.ts +3 -3
- package/src/proposals/econ-behaviors.d.ts +57 -67
- package/src/proposals/econ-behaviors.d.ts.map +1 -1
- package/src/provisionPool.d.ts +1 -1
- package/src/provisionPool.d.ts.map +1 -1
- package/src/provisionPoolKit.d.ts +1 -1
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/psm/psm.d.ts +3 -3
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +1 -4
- package/src/reserve/assetReserve.d.ts +1 -1
- package/src/reserve/assetReserveKit.d.ts +1 -1
- package/src/vaultFactory/burn.d.ts.map +1 -1
- package/src/vaultFactory/burn.js +1 -2
- package/src/vaultFactory/liquidation.d.ts +12 -12
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/math.d.ts +4 -4
- package/src/vaultFactory/orderedVaultStore.d.ts +30 -30
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/params.d.ts +6 -6
- package/src/vaultFactory/prioritizedVaults.d.ts +96 -240
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.d.ts +6 -6
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +0 -3
- package/src/vaultFactory/vaultDirector.d.ts +18 -17
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +2 -2
- package/src/vaultFactory/vaultFactory.d.ts +13 -13
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -4
- package/src/vaultFactory/vaultHolder.d.ts +20 -20
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.d.ts +8 -8
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +1 -1
- package/src/vaultFactory/vaultManager.d.ts +45 -45
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +1 -1
- package/exported.js +0 -2
- package/src/vaultFactory/type-imports.d.ts +0 -2
- package/src/vaultFactory/type-imports.d.ts.map +0 -1
- package/src/vaultFactory/type-imports.js +0 -4
|
@@ -2,10 +2,10 @@ export function calculateMinimumCollateralization(liquidationMargin: Ratio, liqu
|
|
|
2
2
|
export function minimumPrice(quoteA: PriceQuote, quoteB?: PriceQuote | undefined): Ratio;
|
|
3
3
|
export function maxDebtForVault(quoteAmount: PriceQuote, liquidationMargin: Ratio, liquidationPadding: Ratio): Amount<"nat">;
|
|
4
4
|
export function calculateDebtCosts(currentDebt: Amount<"nat">, give: Amount<"nat">, want: Amount<"nat">, debtFee: Ratio): {
|
|
5
|
-
newDebt: import("@agoric/ertp/
|
|
6
|
-
toMint: import("@agoric/ertp/
|
|
7
|
-
fee: import("@agoric/ertp/
|
|
8
|
-
surplus: import("@agoric/ertp/
|
|
5
|
+
newDebt: import("@agoric/ertp/src/types.js").NatAmount;
|
|
6
|
+
toMint: import("@agoric/ertp/src/types.js").NatAmount;
|
|
7
|
+
fee: import("@agoric/ertp/src/types.js").NatAmount;
|
|
8
|
+
surplus: import("@agoric/ertp/src/types.js").NatAmount;
|
|
9
9
|
};
|
|
10
10
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
11
11
|
//# sourceMappingURL=math.d.ts.map
|
|
@@ -24,8 +24,8 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
24
24
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
25
25
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
26
26
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
27
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
28
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
27
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
28
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
29
29
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
30
30
|
}>;
|
|
31
31
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -59,14 +59,14 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
59
59
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
60
60
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
61
61
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
62
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
63
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
62
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
63
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
64
64
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
65
65
|
}>;
|
|
66
66
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
67
67
|
}, undefined>>;
|
|
68
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
69
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
68
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
69
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
70
70
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
71
71
|
}>>): {
|
|
72
72
|
addVault: (vaultId: string, vault: import("@endo/exo").Guarded<{
|
|
@@ -95,8 +95,8 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
95
95
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
96
96
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
97
97
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
98
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
99
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
98
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
99
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
100
100
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
101
101
|
}>;
|
|
102
102
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -130,14 +130,14 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
130
130
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
131
131
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
132
132
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
133
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
134
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
133
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
134
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
135
135
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
136
136
|
}>;
|
|
137
137
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
138
138
|
}, undefined>>;
|
|
139
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
140
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
139
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
140
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
141
141
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
142
142
|
}>) => string;
|
|
143
143
|
removeByKey: (key: string) => import("@endo/exo").Guarded<{
|
|
@@ -166,8 +166,8 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
166
166
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
167
167
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
168
168
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
169
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
170
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
169
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
170
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
171
171
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
172
172
|
}>;
|
|
173
173
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -201,14 +201,14 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
201
201
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
202
202
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
203
203
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
204
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
205
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
204
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
205
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
206
206
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
207
207
|
}>;
|
|
208
208
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
209
209
|
}, undefined>>;
|
|
210
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
211
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
210
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
211
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
212
212
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
213
213
|
}>;
|
|
214
214
|
has: (key: string) => boolean;
|
|
@@ -239,8 +239,8 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
239
239
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
240
240
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
241
241
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
242
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
243
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
242
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
243
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
244
244
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
245
245
|
}>;
|
|
246
246
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -274,14 +274,14 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
274
274
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
275
275
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
276
276
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
277
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
278
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
277
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
278
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
279
279
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
280
280
|
}>;
|
|
281
281
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
282
282
|
}, undefined>>;
|
|
283
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
284
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
283
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
284
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
285
285
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
286
286
|
}>]>;
|
|
287
287
|
getSize: (keyPatt?: globalThis.Pattern, valuePatt?: globalThis.Pattern) => number;
|
|
@@ -311,8 +311,8 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
311
311
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
312
312
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
313
313
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
314
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
315
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
314
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
315
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
316
316
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
317
317
|
}>;
|
|
318
318
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
@@ -346,14 +346,14 @@ export function makeOrderedVaultStore(store: globalThis.MapStore<string, import(
|
|
|
346
346
|
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
347
347
|
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
348
348
|
makeTransferInvitation(): Promise<Invitation<any, undefined>>;
|
|
349
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
350
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
349
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
350
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
351
351
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
352
352
|
}>;
|
|
353
353
|
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
354
354
|
}, undefined>>;
|
|
355
|
-
getCollateralAmount(): import("@agoric/ertp/
|
|
356
|
-
getCurrentDebt(): import("@agoric/ertp/
|
|
355
|
+
getCollateralAmount(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
356
|
+
getCurrentDebt(): import("@agoric/ertp/src/types.js").NatAmount;
|
|
357
357
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
358
358
|
}>>;
|
|
359
359
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderedVaultStore.d.ts","sourceRoot":"","sources":["orderedVaultStore.js"],"names":[],"mappings":"AAiBO;;
|
|
1
|
+
{"version":3,"file":"orderedVaultStore.d.ts","sourceRoot":"","sources":["orderedVaultStore.js"],"names":[],"mappings":"AAiBO;;uBAiDy7kB,OAAO,eAA0B,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA/C/9kB,MAAM;;2BA+C66kB,OAAO,eAA0B,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAnC/9kB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkClB"}
|
|
@@ -53,15 +53,15 @@ export function makeGovernedTerms({ bootstrapPaymentValue, electorateInvitationA
|
|
|
53
53
|
governedParams: {
|
|
54
54
|
Electorate: {
|
|
55
55
|
type: "invitation";
|
|
56
|
-
value: import("@agoric/ertp/
|
|
56
|
+
value: import("@agoric/ertp/src/types.js").SetAmount<import("@endo/patterns").Key>;
|
|
57
57
|
};
|
|
58
58
|
MinInitialDebt: {
|
|
59
59
|
type: "amount";
|
|
60
|
-
value: import("@agoric/ertp/
|
|
60
|
+
value: import("@agoric/ertp/src/types.js").NatAmount;
|
|
61
61
|
};
|
|
62
62
|
ShortfallInvitation: {
|
|
63
63
|
type: "invitation";
|
|
64
|
-
value: import("@agoric/ertp/
|
|
64
|
+
value: import("@agoric/ertp/src/types.js").SetAmount<import("@endo/patterns").Key>;
|
|
65
65
|
};
|
|
66
66
|
ReferencedUI: {
|
|
67
67
|
type: "string";
|
|
@@ -118,15 +118,15 @@ import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
|
118
118
|
declare function makeVaultDirectorParams(electorateInvitationAmount: Amount<"set">, minInitialDebt: Amount<"nat">, shortfallInvitationAmount: Amount<"set">, referencedUi: string, interestTiming: InterestTiming): {
|
|
119
119
|
Electorate: {
|
|
120
120
|
type: "invitation";
|
|
121
|
-
value: import("@agoric/ertp/
|
|
121
|
+
value: import("@agoric/ertp/src/types.js").SetAmount<import("@endo/patterns").Key>;
|
|
122
122
|
};
|
|
123
123
|
MinInitialDebt: {
|
|
124
124
|
type: "amount";
|
|
125
|
-
value: import("@agoric/ertp/
|
|
125
|
+
value: import("@agoric/ertp/src/types.js").NatAmount;
|
|
126
126
|
};
|
|
127
127
|
ShortfallInvitation: {
|
|
128
128
|
type: "invitation";
|
|
129
|
-
value: import("@agoric/ertp/
|
|
129
|
+
value: import("@agoric/ertp/src/types.js").SetAmount<import("@endo/patterns").Key>;
|
|
130
130
|
};
|
|
131
131
|
ReferencedUI: {
|
|
132
132
|
type: "string";
|