@agoric/inter-protocol 0.16.2-dev-89cb9d4.0.89cb9d4 → 0.16.2-dev-1c96426.0.1c96426
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -16
- package/src/auction/auctionBook.d.ts +1 -0
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +1 -0
- package/src/auction/auctionMath.d.ts +1 -0
- package/src/auction/auctionMath.d.ts.map +1 -1
- package/src/auction/auctionMath.js +1 -0
- package/src/auction/auctioneer.d.ts +6 -5
- package/src/auction/auctioneer.d.ts.map +1 -1
- package/src/auction/auctioneer.js +1 -0
- package/src/auction/offerBook.d.ts +1 -0
- package/src/auction/offerBook.d.ts.map +1 -1
- package/src/auction/offerBook.js +1 -0
- package/src/auction/params.d.ts +5 -2
- package/src/auction/params.d.ts.map +1 -1
- package/src/auction/params.js +2 -1
- package/src/auction/scheduleMath.d.ts +1 -0
- package/src/auction/scheduleMath.d.ts.map +1 -1
- package/src/auction/scheduleMath.js +1 -0
- package/src/auction/scheduler.d.ts +3 -1
- package/src/auction/scheduler.d.ts.map +1 -1
- package/src/auction/scheduler.js +8 -1
- package/src/auction/sortedOffers.d.ts +1 -0
- package/src/auction/sortedOffers.d.ts.map +1 -1
- package/src/auction/sortedOffers.js +4 -0
- package/src/auction/util.d.ts +2 -1
- package/src/auction/util.d.ts.map +1 -1
- package/src/auction/util.js +1 -0
- package/src/contractSupport.d.ts +1 -1
- package/src/contractSupport.d.ts.map +1 -1
- package/src/econCommitteeCharter.d.ts +3 -3
- package/src/feeDistributor.d.ts +17 -17
- package/src/interest-math.d.ts +1 -0
- package/src/interest-math.d.ts.map +1 -1
- package/src/interest-math.js +1 -0
- package/src/interest.d.ts +6 -0
- package/src/interest.d.ts.map +1 -1
- package/src/interest.js +3 -0
- package/src/price/fluxAggregatorContract.d.ts +2 -2
- package/src/price/fluxAggregatorKit.d.ts +1 -1
- package/src/price/roundsManager.d.ts +1 -1
- package/src/proposals/replace-fee-distributor.js +1 -0
- package/src/proposals/startPSM.js +1 -0
- package/src/proposals/upgrade-vaults.js +2 -2
- package/src/proposals/utils.d.ts +2 -1
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/proposals/utils.js +4 -0
- package/src/provisionPool.d.ts +2 -2
- package/src/provisionPoolKit.d.ts +2 -2
- package/src/psm/psm.d.ts +4 -2
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +1 -0
- package/src/psm/types-ambient.d.ts +1 -1
- package/src/psm/types-ambient.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.d.ts +2 -2
- package/src/vaultFactory/liquidation.d.ts +2 -0
- package/src/vaultFactory/liquidation.d.ts.map +1 -1
- package/src/vaultFactory/liquidation.js +2 -0
- package/src/vaultFactory/math.d.ts +1 -0
- package/src/vaultFactory/math.d.ts.map +1 -1
- package/src/vaultFactory/math.js +4 -1
- package/src/vaultFactory/orderedVaultStore.d.ts +12 -12
- package/src/vaultFactory/params.d.ts +6 -0
- package/src/vaultFactory/params.d.ts.map +1 -1
- package/src/vaultFactory/params.js +6 -1
- package/src/vaultFactory/prioritizedVaults.d.ts +31 -29
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.js +2 -0
- package/src/vaultFactory/proceeds.d.ts +1 -0
- package/src/vaultFactory/proceeds.d.ts.map +1 -1
- package/src/vaultFactory/proceeds.js +4 -1
- package/src/vaultFactory/storeUtils.d.ts +7 -3
- package/src/vaultFactory/storeUtils.d.ts.map +1 -1
- package/src/vaultFactory/storeUtils.js +8 -2
- package/src/vaultFactory/types-ambient.d.ts +39 -46
- package/src/vaultFactory/types-ambient.d.ts.map +1 -1
- package/src/vaultFactory/types-ambient.js +23 -16
- package/src/vaultFactory/vault.d.ts +10 -4
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +8 -2
- package/src/vaultFactory/vaultDirector.d.ts +39 -33
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +6 -1
- package/src/vaultFactory/vaultFactory.d.ts +23 -22
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
- package/src/vaultFactory/vaultFactory.js +1 -0
- package/src/vaultFactory/vaultHolder.d.ts +10 -8
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultHolder.js +1 -0
- package/src/vaultFactory/vaultKit.d.ts +4 -3
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +1 -0
- package/src/vaultFactory/vaultManager.d.ts +46 -36
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +13 -6
|
@@ -27,7 +27,7 @@ export function start(zcf: ZCF<ChainlinkConfig & {
|
|
|
27
27
|
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
28
28
|
Electorate: "invitation";
|
|
29
29
|
}>;
|
|
30
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
30
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
31
31
|
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
32
32
|
Electorate: "invitation";
|
|
33
33
|
}>;
|
|
@@ -37,7 +37,7 @@ export function start(zcf: ZCF<ChainlinkConfig & {
|
|
|
37
37
|
makeOracleInvitation(oracleId: string): Promise<globalThis.Invitation<{
|
|
38
38
|
invitationMakers: {
|
|
39
39
|
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
|
|
40
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
40
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
41
41
|
PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
|
|
42
42
|
}>;
|
|
43
43
|
oracle: import("@endo/exo").Guarded<{
|
|
@@ -20,7 +20,7 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
|
|
|
20
20
|
invitationMakers: {
|
|
21
21
|
/** @param {PriceRound} result */
|
|
22
22
|
PushPrice(result: PriceRound): Promise<globalThis.Invitation<void, undefined>>;
|
|
23
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
23
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
24
24
|
/** @param {PriceRound} result */
|
|
25
25
|
PushPrice(result: PriceRound): Promise<globalThis.Invitation<void, undefined>>;
|
|
26
26
|
}>;
|
|
@@ -92,7 +92,7 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<Chainli
|
|
|
92
92
|
}): ((priceQuery: any) => Promise<{
|
|
93
93
|
quoteAmount: import("@agoric/ertp").SetAmount<PriceDescription>;
|
|
94
94
|
quotePayment: globalThis.Payment<"set", PriceDescription>;
|
|
95
|
-
}> | undefined) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
|
|
95
|
+
}> | undefined) & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
|
|
96
96
|
quoteAmount: import("@agoric/ertp").SetAmount<PriceDescription>;
|
|
97
97
|
quotePayment: globalThis.Payment<"set", PriceDescription>;
|
|
98
98
|
}> | undefined>;
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
/**
|
|
28
28
|
* @import {BootstrapManifest} from '@agoric/vats/src/core/lib-boot.js'
|
|
29
29
|
* @import {PSMKit} from './econ-behaviors.js';
|
|
30
|
+
* @import {FeeMintAccess} from '@agoric/zoe';
|
|
30
31
|
*/
|
|
31
32
|
/** @import {MetricsNotification} from '../psm/psm.js' */
|
|
32
33
|
/** @import {EconomyBootstrapPowers} from './econ-behaviors.js' */
|
|
@@ -11,9 +11,9 @@ import { Fail } from '@endo/errors';
|
|
|
11
11
|
import { TimeMath } from '@agoric/time';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* @import {EconomyBootstrapPowers} from '../../src/proposals/econ-behaviors';
|
|
14
|
+
* @import {EconomyBootstrapPowers} from '../../src/proposals/econ-behaviors.js';
|
|
15
15
|
* @import {start} from '../auction/auctioneer.js';
|
|
16
|
-
* @import {VaultFactoryContract} from '../../src/vaultFactory/vaultFactory';
|
|
16
|
+
* @import {VaultFactoryContract} from '../../src/vaultFactory/vaultFactory.js';
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
const trace = makeTracer('upgrade Vaults proposal');
|
package/src/proposals/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function reserveThenGetNamePaths(nameAdmin: ERef<NameAdmin>, paths: string[][]): Promise<
|
|
1
|
+
export function reserveThenGetNamePaths(nameAdmin: ERef<NameAdmin>, paths: string[][]): Promise<unknown[]>;
|
|
2
2
|
export function reserveThenGetNames(nameAdmin: ERef<NameAdmin>, names: string[]): Promise<any[]>;
|
|
3
3
|
export function reserveThenDeposit(debugName: string, namesByAddressAdmin: ERef<NameAdmin>, addr: string, payments: ERef<Payment>[]): Promise<void>;
|
|
4
4
|
export function makeInstallCache(homeP: Promise<{
|
|
@@ -19,5 +19,6 @@ export const sanitizePathSegment: (name: string) => string;
|
|
|
19
19
|
export function provideRetiredInstances(consume: Promise<MapStore>, produce: Producer<MapStore>): Promise<MapStore>;
|
|
20
20
|
import type { NameAdmin } from '@agoric/vats';
|
|
21
21
|
import type { ScratchPad } from '@agoric/internal/src/scratch.js';
|
|
22
|
+
import type { Bundle } from '@agoric/swingset-vat';
|
|
22
23
|
import type { MapStore } from '@agoric/store';
|
|
23
24
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAmBO,mDAHI,IAAI,CAAC,SAAS,CAAC,SACf,MAAM,EAAE,EAAE,sBAgCpB;AAOM,+CAJI,IAAI,CAAC,SAAS,CAAC,SACf,MAAM,EAAE,GACN,OAAO,CAAC,GAAG,EAAE,CAAC,CAMxB;AAQI,8CALI,MAAM,uBACN,IAAI,CAAC,SAAS,CAAC,QACf,MAAM,YACN,IAAI,CAAC,OAAO,CAAC,EAAE,iBAwBzB;AA2BM,wCAPI,OAAO,CAAC;IACd,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;CAC3B,CAAC,mCAEF;IAAkE,UAAU,EAApE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACrC,eAAe;CAAC;oCAkCD,UAAK,EAAE,UAAK,EAAE,SAAI;;GAkBzD;AAEM,iFACsC;AAEtC,6DAC+B;AAEtC,uCAAuC;AACvC,kCADW,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAKjC;AAUK,iDAJI,OAAO,CAAC,QAAQ,CAAC,WACjB,QAAQ,CAAC,QAAQ,CAAC,GAChB,OAAO,CAAC,QAAQ,CAAC,CAW7B;+BA7L2B,cAAc;gCACb,iCAAiC;4BACrC,sBAAsB;8BAHV,eAAe"}
|
package/src/proposals/utils.js
CHANGED
|
@@ -10,6 +10,7 @@ import { makeScalarBigMapStore } from '@agoric/vat-data';
|
|
|
10
10
|
* @import {MapStore, SetStore} from '@agoric/store';
|
|
11
11
|
* @import {NameAdmin} from '@agoric/vats';
|
|
12
12
|
* @import {ScratchPad} from '@agoric/internal/src/scratch.js';
|
|
13
|
+
* @import {Bundle} from '@agoric/swingset-vat';
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -20,6 +21,7 @@ export const reserveThenGetNamePaths = async (nameAdmin, paths) => {
|
|
|
20
21
|
/**
|
|
21
22
|
* @param {ERef<NameAdmin>} nextAdmin
|
|
22
23
|
* @param {string[]} path
|
|
24
|
+
* @returns {Promise<unknown>}
|
|
23
25
|
*/
|
|
24
26
|
const nextPath = async (nextAdmin, path) => {
|
|
25
27
|
const [nextName, ...rest] = path;
|
|
@@ -50,6 +52,7 @@ export const reserveThenGetNamePaths = async (nameAdmin, paths) => {
|
|
|
50
52
|
/**
|
|
51
53
|
* @param {ERef<NameAdmin>} nameAdmin
|
|
52
54
|
* @param {string[]} names
|
|
55
|
+
* @returns {Promise<any[]>}
|
|
53
56
|
*/
|
|
54
57
|
export const reserveThenGetNames = async (nameAdmin, names) =>
|
|
55
58
|
reserveThenGetNamePaths(
|
|
@@ -70,6 +73,7 @@ export const reserveThenDeposit = async (
|
|
|
70
73
|
payments,
|
|
71
74
|
) => {
|
|
72
75
|
console.info('awaiting depositFacet for', debugName);
|
|
76
|
+
/** @type {any} */
|
|
73
77
|
const [depositFacet] = await reserveThenGetNamePaths(namesByAddressAdmin, [
|
|
74
78
|
[addr, WalletName.depositFacet],
|
|
75
79
|
]);
|
package/src/provisionPool.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export function start(zcf: ZCF<ProvisionTerms>, privateArgs: {
|
|
|
25
25
|
} & {
|
|
26
26
|
Electorate: "invitation";
|
|
27
27
|
}>;
|
|
28
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
28
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
29
29
|
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
30
30
|
PerAccountInitialAmount: "amount";
|
|
31
31
|
} & {
|
|
@@ -45,7 +45,7 @@ export function start(zcf: ZCF<ProvisionTerms>, privateArgs: {
|
|
|
45
45
|
getInstallation: (name: string) => Installation;
|
|
46
46
|
getInvitationAmount: (name: string) => InvitationAmount;
|
|
47
47
|
getNat: (name: string) => bigint;
|
|
48
|
-
getRatio: (name: string) => Ratio;
|
|
48
|
+
getRatio: (name: string) => import("@agoric/ertp").Ratio;
|
|
49
49
|
getString: (name: string) => string;
|
|
50
50
|
getTimestamp: (name: string) => import("@agoric/time").TimestampRecord;
|
|
51
51
|
getRelativeTime: (name: string) => import("@agoric/time").RelativeTimeRecord;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function prepareBridgeProvisionTool(zone: Zone): (bankManager: ERef<import("@endo/exo").Guarded<{
|
|
2
2
|
getAssetSubscription(): IterableEachTopic<AssetDescriptor>;
|
|
3
|
-
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<import("
|
|
3
|
+
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<import("@endo/far").EOnly<import("@agoric/ertp").DepositFacet>>;
|
|
4
4
|
getModuleAccountAddress(moduleName: string): Promise<string | null>;
|
|
5
5
|
addAsset(denom: string, issuerName: string, proposedName: string, kit: AssetIssuerKit & {
|
|
6
6
|
payment?: ERef<Payment<"nat">>;
|
|
7
7
|
}): Promise<void>;
|
|
8
8
|
getBankForAddress(address: string): Promise<Bank>;
|
|
9
9
|
}>>, walletFactory: ERef<import("@endo/exo").Guarded<{
|
|
10
|
-
provideSmartWallet(address: string, bank: ERef<Bank>, namesByAddressAdmin: ERef<NameAdmin>): Promise<[wallet: import("@agoric/smart-wallet/src/smartWallet").SmartWallet, isNew: boolean]>;
|
|
10
|
+
provideSmartWallet(address: string, bank: ERef<Bank>, namesByAddressAdmin: ERef<NameAdmin>): Promise<[wallet: import("@agoric/smart-wallet/src/smartWallet.js").SmartWallet, isNew: boolean]>;
|
|
11
11
|
}>>, namesByAddressAdmin: ERef<NameAdmin>, forHandler: any) => import("@endo/exo").Guarded<{
|
|
12
12
|
/** @param {BridgeMessage} obj */
|
|
13
13
|
fromBridge(obj: BridgeMessage): Promise<void>;
|
package/src/psm/psm.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* @import {TypedPattern, Remote} from '@agoric/internal';
|
|
11
11
|
* @import {Baggage} from '@agoric/vat-data'
|
|
12
12
|
* @import {ContractMeta, FeeMintAccess, Installation} from '@agoric/zoe';
|
|
13
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
13
14
|
*/
|
|
14
15
|
/**
|
|
15
16
|
* @typedef {object} MetricsNotification Metrics naming scheme is that nouns are
|
|
@@ -49,7 +50,7 @@ export function start(zcf: ZCF<GovernanceTerms<{
|
|
|
49
50
|
} & {
|
|
50
51
|
Electorate: "invitation";
|
|
51
52
|
}>;
|
|
52
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
53
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
53
54
|
get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
54
55
|
GiveMintedFee: "ratio";
|
|
55
56
|
MintLimit: "amount";
|
|
@@ -60,7 +61,7 @@ export function start(zcf: ZCF<GovernanceTerms<{
|
|
|
60
61
|
}>;
|
|
61
62
|
getInvitation: (name: any) => Promise<globalThis.Invitation>;
|
|
62
63
|
getLimitedCreatorFacet: () => import("@endo/exo").Guarded<{
|
|
63
|
-
getRewardAllocation(): Allocation;
|
|
64
|
+
getRewardAllocation(): import("@agoric/zoe").Allocation;
|
|
64
65
|
makeCollectFeesInvitation(): Promise<globalThis.Invitation<string>>;
|
|
65
66
|
makeRestoreMetricsInvitation(): Promise<globalThis.Invitation<void, Omit<MetricsNotification, "anchorPoolBalance">>>;
|
|
66
67
|
}>;
|
|
@@ -124,6 +125,7 @@ export type MetricsNotification = {
|
|
|
124
125
|
};
|
|
125
126
|
export type PsmPublicFacet = EReturn<typeof start>["publicFacet"];
|
|
126
127
|
import type { ContractMeta } from '@agoric/zoe';
|
|
128
|
+
import type { Ratio } from '@agoric/ertp';
|
|
127
129
|
import type { FeeMintAccess } from '@agoric/zoe';
|
|
128
130
|
import type { Remote } from '@agoric/internal';
|
|
129
131
|
import type { Baggage } from '@agoric/vat-data';
|
package/src/psm/psm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"psm.d.ts","sourceRoot":"","sources":["psm.js"],"names":[],"mappings":"AAsCA;;;;;;GAMG;AAEH
|
|
1
|
+
{"version":3,"file":"psm.d.ts","sourceRoot":"","sources":["psm.js"],"names":[],"mappings":"AAsCA;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;GAaG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAkCrB;AAsBK,2BAlBI,GAAG,CACT,eAAe,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,QAAQ,CAAC;CACrB,CAAC,GAAG;IACH,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAC1B,eAAe,EAAE,KAAK,CAAC;CACxB,CACF,eACO;IACN,aAAa,EAAE,aAAa,CAAC;IAC7B,sBAAsB,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;CAChC,WACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqUjB;;;;;;;;;;uBAvYa,MAAM,CAAC,KAAK,CAAC;;;;;uBAEb,MAAM,CAAC,KAAK,CAAC;;;;;oBAEb,MAAM,CAAC,KAAK,CAAC;;;;;yBAEb,MAAM,CAAC,KAAK,CAAC;;;;;yBAEb,MAAM,CAAC,KAAK,CAAC;;6BAkYb,QAAQ,OAAO,KAAK,CAAb,CAAe,aAAa,CAAC;kCAjZU,aAAa;2BACjD,cAAc;mCADsB,aAAa;4BAFlC,kBAAkB;6BAC/B,kBAAkB;kCACgB,aAAa;6BAH/C,WAAW"}
|
package/src/psm/psm.js
CHANGED
|
@@ -49,6 +49,7 @@ import { makeNatAmountShape } from '../contractSupport.js';
|
|
|
49
49
|
* @import {TypedPattern, Remote} from '@agoric/internal';
|
|
50
50
|
* @import {Baggage} from '@agoric/vat-data'
|
|
51
51
|
* @import {ContractMeta, FeeMintAccess, Installation} from '@agoric/zoe';
|
|
52
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
52
53
|
*/
|
|
53
54
|
|
|
54
55
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=types-ambient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":""}
|
|
@@ -42,7 +42,7 @@ export function prepareAssetReserveKit(baggage: Baggage, { feeMint, makeRecorder
|
|
|
42
42
|
*/
|
|
43
43
|
addIssuer(issuer: Issuer, keyword: string): Promise<void>;
|
|
44
44
|
/** XXX redundant with getPublicTopics metrics `allocation` */
|
|
45
|
-
getAllocations(): Allocation;
|
|
45
|
+
getAllocations(): import("@agoric/zoe").Allocation;
|
|
46
46
|
makeShortfallReportingInvitation(): Promise<globalThis.Invitation<import("@endo/exo").Guarded<{
|
|
47
47
|
/** @param {Amount<'nat'>} shortfall */
|
|
48
48
|
increaseLiquidationShortfall(shortfall: Amount<"nat">): void;
|
|
@@ -63,7 +63,7 @@ export function prepareAssetReserveKit(baggage: Baggage, { feeMint, makeRecorder
|
|
|
63
63
|
/** Anyone can deposit any assets to the reserve */
|
|
64
64
|
makeAddCollateralInvitation(): Promise<globalThis.Invitation<string, never>>;
|
|
65
65
|
getPublicTopics(): {
|
|
66
|
-
metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<MetricsNotification>;
|
|
66
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<MetricsNotification>;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
shortfallReportingFacet: {
|
|
@@ -21,7 +21,9 @@ import type { AuctioneerPublicFacet } from '../auction/auctioneer.js';
|
|
|
21
21
|
import type { TimerService } from '@agoric/time';
|
|
22
22
|
import type { TimerWaker } from '@agoric/time';
|
|
23
23
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
24
|
+
import type { Ratio } from '@agoric/ertp';
|
|
24
25
|
import type { makePrioritizedVaults } from './prioritizedVaults.js';
|
|
26
|
+
import type { Vault } from './vault.js';
|
|
25
27
|
import type { SetStore } from '@agoric/store';
|
|
26
28
|
import type { MapStore } from '@agoric/store';
|
|
27
29
|
//# sourceMappingURL=liquidation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liquidation.d.ts","sourceRoot":"","sources":["liquidation.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"liquidation.d.ts","sourceRoot":"","sources":["liquidation.js"],"names":[],"mappings":"AA0JO,gEAPI,IAAI,CAAC,qBAAqB,CAAC,SAC3B,IAAI,CAAC,YAAY,CAAC,kBAClB,UAAU,oBACV,UAAU,oBACV,UAAU,GACR,OAAO,CAAC,IAAI,CAAC,CAqCzB;AAQM,yCAJI,MAAM,CAAC,KAAK,CAAC,UACb,MAAM,CAAC,KAAK,CAAC,GACX;IAAE,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;CAAE,CAYhE;AAWM,gEALI,IAAI,CAAC,qBAAqB,CAAC,SAC3B,IAAI,CAAC,YAAY,CAAC,oBAClB,UAAU,GACR,IAAI,CA0BhB;AAsBM,2CAnBI,GAAG,4BAEX;IAA6C,KAAK,EAA1C,UAAU;IACsB,QAAQ,EAAxC,KAAK;IAC2B,MAAM,EAAtC,KAAK;CACb,qBAAQ,UAAU,CAAC,4BAA4B,CAAC,qBACxC,SAAS,KAAK,CAAC,aACf,KAAK,CAAC,KAAK,CAAC,mBACZ,KAAK,CAAC,KAAK,CAAC,GACV;IACR,SAAS,EAAE,SACf,KAAW,EACX;QAAQ,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;KAAE,CAC/D,CAAC;IACF,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB,CAiDH;2CAnSuC,0BAA0B;kCAJH,cAAc;gCAAd,cAAc;gCAChD,4BAA4B;2BAKjC,cAAc;2CADE,wBAAwB;2BAExC,YAAY;8BARC,eAAe;8BAAf,eAAe"}
|
|
@@ -20,6 +20,8 @@ const trace = makeTracer('LIQ');
|
|
|
20
20
|
* @import {TimestampRecord} from '@agoric/time';
|
|
21
21
|
* @import {AuctioneerPublicFacet} from '../auction/auctioneer.js';
|
|
22
22
|
* @import {makePrioritizedVaults} from './prioritizedVaults.js';
|
|
23
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
24
|
+
* @import {Vault} from './vault.js';
|
|
23
25
|
*/
|
|
24
26
|
|
|
25
27
|
const makeCancelToken = makeCancelTokenMaker('liq');
|
|
@@ -7,5 +7,6 @@ export function calculateDebtCosts(currentDebt: Amount<"nat">, give: Amount<"nat
|
|
|
7
7
|
fee: import("@agoric/ertp").NatAmount;
|
|
8
8
|
surplus: import("@agoric/ertp").NatAmount;
|
|
9
9
|
};
|
|
10
|
+
import type { Ratio } from '@agoric/ertp';
|
|
10
11
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
11
12
|
//# sourceMappingURL=math.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["math.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["math.js"],"names":[],"mappings":"AA+BO,qEAJI,KAAK,sBACL,KAAK,GACH,KAAK,CAKmC;AAS9C,qCAJI,UAAU,WACV,UAAU,GACR,KAAK,CAajB;AAYM,6CALI,UAAU,qBACV,KAAK,sBACL,KAAK,GACH,MAAM,CAAC,KAAK,CAAC,CAczB;AAaM,gDALI,MAAM,CAAC,KAAK,CAAC,QACb,MAAM,CAAC,KAAK,CAAC,QACb,MAAM,CAAC,KAAK,CAAC,WACb,KAAK;;;;;EASf;2BA9EuB,cAAc;gCADuD,4BAA4B"}
|
package/src/vaultFactory/math.js
CHANGED
|
@@ -16,7 +16,10 @@ import {
|
|
|
16
16
|
import { priceFrom } from '../auction/util.js';
|
|
17
17
|
import { addSubtract } from '../contractSupport.js';
|
|
18
18
|
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
21
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
22
|
+
*/
|
|
20
23
|
|
|
21
24
|
/**
|
|
22
25
|
* Calculate the minimum collateralization given the liquidation margin and the
|
|
@@ -2,14 +2,14 @@ export function makeOrderedVaultStore(store: MapStore<string, Vault>): {
|
|
|
2
2
|
addVault: (vaultId: string, vault: Vault) => string;
|
|
3
3
|
removeByKey: (key: string) => Vault;
|
|
4
4
|
has: (key: string) => boolean;
|
|
5
|
-
keys: (keyPatt?: Pattern, valuePatt?: Pattern) => Iterable<string>;
|
|
6
|
-
entries: (keyPatt?: Pattern, valuePatt?: Pattern) => Iterable<[string, import("@endo/exo").Guarded<{
|
|
5
|
+
keys: (keyPatt?: import("@endo/patterns").Pattern, valuePatt?: import("@endo/patterns").Pattern) => Iterable<string>;
|
|
6
|
+
entries: (keyPatt?: import("@endo/patterns").Pattern, valuePatt?: import("@endo/patterns").Pattern) => Iterable<[string, import("@endo/exo").Guarded<{
|
|
7
7
|
getVaultSeat(): globalThis.ZCFSeat;
|
|
8
8
|
initVaultKit(seat: ZCFSeat, storageNode: import("@agoric/internal").Remote<StorageNode>): Promise<{
|
|
9
9
|
publicSubscribers: {
|
|
10
10
|
vault: {
|
|
11
11
|
description: string;
|
|
12
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
12
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
13
13
|
storagePath: Promise<string>;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -22,7 +22,7 @@ export function makeOrderedVaultStore(store: MapStore<string, Vault>): {
|
|
|
22
22
|
getPublicTopics(): {
|
|
23
23
|
vault: {
|
|
24
24
|
description: string;
|
|
25
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
25
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
26
26
|
storagePath: Promise<string>;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -33,26 +33,26 @@ export function makeOrderedVaultStore(store: MapStore<string, Vault>): {
|
|
|
33
33
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
34
34
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
35
35
|
}>;
|
|
36
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
36
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
37
37
|
}>;
|
|
38
38
|
liquidating(): void;
|
|
39
39
|
liquidated(): void;
|
|
40
40
|
abortLiquidation(): string;
|
|
41
41
|
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
42
42
|
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
43
|
-
makeTransferInvitation(): Promise<Invitation<VaultKit>>;
|
|
43
|
+
makeTransferInvitation(): Promise<Invitation<import("./vaultKit.js").VaultKit>>;
|
|
44
44
|
getCollateralAmount(): Amount<"nat">;
|
|
45
45
|
getCurrentDebt(): Amount<"nat">;
|
|
46
46
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
47
47
|
}>]>;
|
|
48
|
-
getSize: (keyPatt?: Pattern, valuePatt?: Pattern) => number;
|
|
49
|
-
values: (keyPatt?: Pattern, valuePatt?: Pattern) => Iterable<import("@endo/exo").Guarded<{
|
|
48
|
+
getSize: (keyPatt?: import("@endo/patterns").Pattern, valuePatt?: import("@endo/patterns").Pattern) => number;
|
|
49
|
+
values: (keyPatt?: import("@endo/patterns").Pattern, valuePatt?: import("@endo/patterns").Pattern) => Iterable<import("@endo/exo").Guarded<{
|
|
50
50
|
getVaultSeat(): globalThis.ZCFSeat;
|
|
51
51
|
initVaultKit(seat: ZCFSeat, storageNode: import("@agoric/internal").Remote<StorageNode>): Promise<{
|
|
52
52
|
publicSubscribers: {
|
|
53
53
|
vault: {
|
|
54
54
|
description: string;
|
|
55
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
55
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
56
56
|
storagePath: Promise<string>;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
@@ -65,7 +65,7 @@ export function makeOrderedVaultStore(store: MapStore<string, Vault>): {
|
|
|
65
65
|
getPublicTopics(): {
|
|
66
66
|
vault: {
|
|
67
67
|
description: string;
|
|
68
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
68
|
+
subscriber: globalThis.Subscriber<import("./vault.js").VaultNotification>;
|
|
69
69
|
storagePath: Promise<string>;
|
|
70
70
|
};
|
|
71
71
|
};
|
|
@@ -76,14 +76,14 @@ export function makeOrderedVaultStore(store: MapStore<string, Vault>): {
|
|
|
76
76
|
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
77
77
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
78
78
|
}>;
|
|
79
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
79
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
80
80
|
}>;
|
|
81
81
|
liquidating(): void;
|
|
82
82
|
liquidated(): void;
|
|
83
83
|
abortLiquidation(): string;
|
|
84
84
|
makeAdjustBalancesInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
85
85
|
makeCloseInvitation(): Promise<globalThis.Invitation<string, undefined>>;
|
|
86
|
-
makeTransferInvitation(): Promise<Invitation<VaultKit>>;
|
|
86
|
+
makeTransferInvitation(): Promise<Invitation<import("./vaultKit.js").VaultKit>>;
|
|
87
87
|
getCollateralAmount(): Amount<"nat">;
|
|
88
88
|
getCurrentDebt(): Amount<"nat">;
|
|
89
89
|
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
8
8
|
* @import {TimerService} from '@agoric/time';
|
|
9
9
|
* @import {Baggage} from '@agoric/vat-data';
|
|
10
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
11
|
+
* @import {AssetReservePublicFacet} from '../reserve/assetReserve.js';
|
|
12
|
+
* @import {InterestTiming, VaultManagerParamValues} from './types-ambient.js';
|
|
10
13
|
*/
|
|
11
14
|
export const CHARGING_PERIOD_KEY: "ChargingPeriod";
|
|
12
15
|
export const RECORDING_PERIOD_KEY: "RecordingPeriod";
|
|
@@ -112,8 +115,11 @@ export type VaultManagerParamOverrides = VaultManagerParamValues & {
|
|
|
112
115
|
brand: Brand;
|
|
113
116
|
};
|
|
114
117
|
import type { StoredPublisherKit } from '@agoric/notifier';
|
|
118
|
+
import type { VaultManagerParamValues } from './types-ambient.js';
|
|
115
119
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
116
120
|
import type { TimerService } from '@agoric/time';
|
|
121
|
+
import type { AssetReservePublicFacet } from '../reserve/assetReserve.js';
|
|
122
|
+
import type { InterestTiming } from './types-ambient.js';
|
|
117
123
|
import type { Baggage } from '@agoric/vat-data';
|
|
118
124
|
import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
119
125
|
import type { ERemote } from '@agoric/internal';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAiBA
|
|
1
|
+
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;GAYG;AAEH,kCAAmC,gBAAgB,CAAC;AACpD,mCAAoC,iBAAiB,CAAC;AAEtD,6BAA8B,WAAW,CAAC;AAC1C,qCAAsC,mBAAmB,CAAC;AAC1D,sCAAuC,oBAAoB,CAAC;AAC5D,sCAAuC,oBAAoB,CAAC;AAC5D,gCAAiC,cAAc,CAAC;AAChD,2BAA4B,SAAS,CAAC;AACtC,mCAAoC,gBAAgB,CAAC;AACrD,uCAAwC,qBAAqB,CAAC;AAC9D,gCAAiC,cAAc,CAAC;;;;;;;AAoEzC,oDAHI,mBAAmB,2BAA2B,CAAC,oGAC/C,uBAAuB;;;;;;;GAoB9B;AACJ,4EAA4E;AAE5E,iEAYE;AAeK,8MAZI;IACN,0BAA0B,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1B,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,cAAc,EAAE,cAAc,CAAC;IAC/B,yBAAyB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BH;AAeM,mDAJI,OAAO,cACP,QAAQ,WAAW,CAAC,yBACpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC;IAwDjD;;;;OAIG;2BAHQ,KAAK,eACL,OAAO,WAAW,CAAC,sBACnB,uBAAuB;;;;;;;;IAOlC,2BAA2B;eAAf,KAAK;;;;;;;;EAKpB;kCA3KY,wBACR,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAC3C;gCAgCU,UAAU,CAAC,OAAO,qBAAqB,CAAC;yCAwDxC,uBAAuB,GAAG;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE;wCAlKnB,kBAAkB;6CAKG,oBAAoB;oCAP7C,4BAA4B;kCAG9B,cAAc;6CAGH,4BAA4B;oCACZ,oBAAoB;6BAHpD,kBAAkB;iCANd,iDAAiD;6BAD7C,kBAAkB;4BAAlB,kBAAkB;AAoCpD;;;;;;GAMG;AACH,qEANW,MAAM,CAAC,KAAK,CAAC,kBACb,MAAM,CAAC,KAAK,CAAC,6BACb,MAAM,CAAC,KAAK,CAAC,gBACb,MAAM,kBACN,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;EAgCxB;6CArEyC,gEAAgE"}
|
|
@@ -24,6 +24,9 @@ import { amountPattern, ratioPattern } from '../contractSupport.js';
|
|
|
24
24
|
* @import {StoredPublisherKit} from '@agoric/notifier';
|
|
25
25
|
* @import {TimerService} from '@agoric/time';
|
|
26
26
|
* @import {Baggage} from '@agoric/vat-data';
|
|
27
|
+
* @import {Ratio} from '@agoric/ertp';
|
|
28
|
+
* @import {AssetReservePublicFacet} from '../reserve/assetReserve.js';
|
|
29
|
+
* @import {InterestTiming, VaultManagerParamValues} from './types-ambient.js';
|
|
27
30
|
*/
|
|
28
31
|
|
|
29
32
|
export const CHARGING_PERIOD_KEY = 'ChargingPeriod';
|
|
@@ -95,7 +98,9 @@ harden(makeVaultDirectorParams);
|
|
|
95
98
|
* >} VaultDirectorParams
|
|
96
99
|
*/
|
|
97
100
|
|
|
98
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* @type {(liquidationMargin: Ratio) => Ratio}
|
|
103
|
+
*/
|
|
99
104
|
const zeroRatio = liquidationMargin =>
|
|
100
105
|
subtractRatios(liquidationMargin, liquidationMargin);
|
|
101
106
|
|