@agoric/inter-protocol 0.16.2-dev-6e5b422.0 → 0.16.2-dev-bd1190d.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-auctioneer-js-meta.json +116 -116
- package/bundles/bundle-econCommitteeCharter-js-meta.json +71 -71
- package/bundles/bundle-feeDistributor-js-meta.json +57 -57
- package/bundles/bundle-fluxAggregatorKit-js-meta.json +111 -111
- package/bundles/bundle-psm-js-meta.json +109 -109
- package/bundles/bundle-reserve-js-meta.json +108 -108
- package/bundles/bundle-scaledPriceAuthority-js-meta.json +84 -84
- package/bundles/bundle-vaultFactory-js-meta.json +133 -133
- package/package.json +19 -17
- package/src/auction/auctionBook.d.ts +80 -0
- package/src/auction/auctionBook.d.ts.map +1 -0
- package/src/auction/auctioneer.d.ts +75 -0
- package/src/auction/auctioneer.d.ts.map +1 -0
- package/src/auction/offerBook.d.ts +72 -0
- package/src/auction/offerBook.d.ts.map +1 -0
- package/src/auction/params.d.ts +142 -0
- package/src/auction/params.d.ts.map +1 -0
- package/src/auction/scheduleMath.d.ts +4 -0
- package/src/auction/scheduleMath.d.ts.map +1 -0
- package/src/auction/scheduler.d.ts +49 -0
- package/src/auction/scheduler.d.ts.map +1 -0
- package/src/auction/sortedOffers.d.ts +8 -0
- package/src/auction/sortedOffers.d.ts.map +1 -0
- package/src/auction/util.d.ts +30 -0
- package/src/auction/util.d.ts.map +1 -0
- package/src/clientSupport.d.ts +129 -0
- package/src/clientSupport.d.ts.map +1 -0
- package/src/collectFees.d.ts +2 -0
- package/src/collectFees.d.ts.map +1 -0
- package/src/contractSupport.d.ts +33 -0
- package/src/contractSupport.d.ts.map +1 -0
- package/src/econCommitteeCharter.d.ts +45 -0
- package/src/econCommitteeCharter.d.ts.map +1 -0
- package/src/feeDistributor.d.ts +234 -0
- package/src/feeDistributor.d.ts.map +1 -0
- package/src/index.d.ts +2 -0
- package/src/index.d.ts.map +1 -0
- package/src/interest-math.d.ts +3 -0
- package/src/interest-math.d.ts.map +1 -0
- package/src/interest.d.ts +28 -0
- package/src/interest.d.ts.map +1 -0
- package/src/price/fluxAggregatorContract.d.ts +110 -0
- package/src/price/fluxAggregatorContract.d.ts.map +1 -0
- package/src/price/fluxAggregatorKit.d.ts +150 -0
- package/src/price/fluxAggregatorKit.d.ts.map +1 -0
- package/src/price/priceOracleKit.d.ts +58 -0
- package/src/price/priceOracleKit.d.ts.map +1 -0
- package/src/price/roundsManager.d.ts +348 -0
- package/src/price/roundsManager.d.ts.map +1 -0
- package/src/proposals/addAssetToVault.d.ts +155 -0
- package/src/proposals/addAssetToVault.d.ts.map +1 -0
- package/src/proposals/committee-proposal.d.ts +121 -0
- package/src/proposals/committee-proposal.d.ts.map +1 -0
- package/src/proposals/core-proposal.d.ts +149 -0
- package/src/proposals/core-proposal.d.ts.map +1 -0
- package/src/proposals/econ-behaviors.d.ts +201 -0
- package/src/proposals/econ-behaviors.d.ts.map +1 -0
- package/src/proposals/price-feed-proposal.d.ts +83 -0
- package/src/proposals/price-feed-proposal.d.ts.map +1 -0
- package/src/proposals/startEconCommittee.d.ts +34 -0
- package/src/proposals/startEconCommittee.d.ts.map +1 -0
- package/src/proposals/startPSM.d.ts +61 -0
- package/src/proposals/startPSM.d.ts.map +1 -0
- package/src/proposals/startPSM.js +8 -7
- package/src/proposals/utils.d.ts +15 -0
- package/src/proposals/utils.d.ts.map +1 -0
- package/src/psm/psm.d.ts +193 -0
- package/src/psm/psm.d.ts.map +1 -0
- package/src/psm/types.d.ts +2 -0
- package/src/psm/types.d.ts.map +1 -0
- package/src/reserve/assetReserve.d.ts +42 -0
- package/src/reserve/assetReserve.d.ts.map +1 -0
- package/src/reserve/assetReserveKit.d.ts +126 -0
- package/src/reserve/assetReserveKit.d.ts.map +1 -0
- package/src/reserve/params.d.ts +10 -0
- package/src/reserve/params.d.ts.map +1 -0
- package/src/tokens.d.ts +36 -0
- package/src/tokens.d.ts.map +1 -0
- package/src/typeGuards.d.ts +5 -0
- package/src/typeGuards.d.ts.map +1 -0
- package/src/vaultFactory/burn.d.ts +2 -0
- package/src/vaultFactory/burn.d.ts.map +1 -0
- package/src/vaultFactory/liquidation.d.ts +24 -0
- package/src/vaultFactory/liquidation.d.ts.map +1 -0
- package/src/vaultFactory/math.d.ts +10 -0
- package/src/vaultFactory/math.d.ts.map +1 -0
- package/src/vaultFactory/orderedVaultStore.d.ts +94 -0
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -0
- package/src/vaultFactory/params.d.ts +162 -0
- package/src/vaultFactory/params.d.ts.map +1 -0
- package/src/vaultFactory/prioritizedVaults.d.ts +279 -0
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -0
- package/src/vaultFactory/proceeds.d.ts +34 -0
- package/src/vaultFactory/proceeds.d.ts.map +1 -0
- package/src/vaultFactory/storeUtils.d.ts +29 -0
- package/src/vaultFactory/storeUtils.d.ts.map +1 -0
- package/src/vaultFactory/type-imports.d.ts +2 -0
- package/src/vaultFactory/type-imports.d.ts.map +1 -0
- package/src/vaultFactory/types.d.ts +132 -0
- package/src/vaultFactory/types.d.ts.map +1 -0
- package/src/vaultFactory/vault.d.ts +585 -0
- package/src/vaultFactory/vault.d.ts.map +1 -0
- package/src/vaultFactory/vaultDirector.d.ts +582 -0
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -0
- package/src/vaultFactory/vaultFactory.d.ts +159 -0
- package/src/vaultFactory/vaultFactory.d.ts.map +1 -0
- package/src/vaultFactory/vaultHolder.d.ts +205 -0
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -0
- package/src/vaultFactory/vaultKit.d.ts +32 -0
- package/src/vaultFactory/vaultKit.d.ts.map +1 -0
- package/src/vaultFactory/vaultManager.d.ts +552 -0
- package/src/vaultFactory/vaultManager.d.ts.map +1 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {ZCF<GovernanceTerms<import('./params').VaultDirectorParams> & {
|
|
3
|
+
* auctioneerPublicFacet: import('../auction/auctioneer.js').AuctioneerPublicFacet,
|
|
4
|
+
* priceAuthority: ERef<PriceAuthority>,
|
|
5
|
+
* reservePublicFacet: AssetReservePublicFacet,
|
|
6
|
+
* timerService: import('@agoric/time/src/types').TimerService,
|
|
7
|
+
* }>} VaultFactoryZCF
|
|
8
|
+
*/
|
|
9
|
+
export const privateArgsShape: import("@endo/patterns").Matcher;
|
|
10
|
+
export function prepare(zcf: VaultFactoryZCF, privateArgs: {
|
|
11
|
+
feeMintAccess: FeeMintAccess;
|
|
12
|
+
initialPoserInvitation: Invitation;
|
|
13
|
+
initialShortfallInvitation: Invitation;
|
|
14
|
+
storageNode: ERef<StorageNode>;
|
|
15
|
+
marshaller: ERef<Marshaller>;
|
|
16
|
+
}, baggage: MapStore<string, unknown>): Promise<{
|
|
17
|
+
creatorFacet: {
|
|
18
|
+
getParamMgrRetriever: () => {
|
|
19
|
+
get: (paramPath?: VaultFactoryParamPath) => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
20
|
+
DebtLimit: "amount";
|
|
21
|
+
StabilityFee: "ratio";
|
|
22
|
+
LiquidationPadding: "ratio";
|
|
23
|
+
LiquidationMargin: "ratio";
|
|
24
|
+
LiquidationPenalty: "ratio";
|
|
25
|
+
MintFee: "ratio";
|
|
26
|
+
}> | import("./vaultDirector.js").VaultDirectorParamManager;
|
|
27
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
28
|
+
get: (paramPath?: VaultFactoryParamPath) => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
29
|
+
DebtLimit: "amount";
|
|
30
|
+
StabilityFee: "ratio";
|
|
31
|
+
LiquidationPadding: "ratio";
|
|
32
|
+
LiquidationMargin: "ratio";
|
|
33
|
+
LiquidationPenalty: "ratio";
|
|
34
|
+
MintFee: "ratio";
|
|
35
|
+
}> | import("./vaultDirector.js").VaultDirectorParamManager;
|
|
36
|
+
}>;
|
|
37
|
+
getInvitation(name: string): Promise<Invitation<R, A>>;
|
|
38
|
+
getLimitedCreatorFacet(): {
|
|
39
|
+
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: string, initialParamValues: VaultManagerParamValues): Promise<{
|
|
40
|
+
getGovernedParams(): import("./vaultManager.js").GovernedParamGetters;
|
|
41
|
+
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
42
|
+
publicSubscribers: {
|
|
43
|
+
vault: {
|
|
44
|
+
description: string;
|
|
45
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
46
|
+
storagePath: Promise<string>;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
invitationMakers: {
|
|
50
|
+
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
51
|
+
CloseVault(): Promise<Invitation<R, A>>;
|
|
52
|
+
TransferVault(): Promise<Invitation<R, A>>;
|
|
53
|
+
};
|
|
54
|
+
vault: {
|
|
55
|
+
getPublicTopics(): {
|
|
56
|
+
vault: {
|
|
57
|
+
description: string;
|
|
58
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
59
|
+
storagePath: Promise<string>;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
63
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
64
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
65
|
+
getCollateralAmount(): Amount<"nat">;
|
|
66
|
+
getCurrentDebt(): Amount<"nat">;
|
|
67
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
68
|
+
};
|
|
69
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
70
|
+
}>;
|
|
71
|
+
getCollateralQuote(): PriceQuote;
|
|
72
|
+
getPublicFacet(): {
|
|
73
|
+
makeVaultInvitation(): Promise<Invitation<R, A>>;
|
|
74
|
+
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
75
|
+
getCompoundedStabilityFee(): Ratio;
|
|
76
|
+
getPublicTopics(): {
|
|
77
|
+
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").AssetState>;
|
|
78
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").MetricsNotification>;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
lockOraclePrices(): PriceQuote;
|
|
82
|
+
liquidateVaults(auctionPF: ERef<GovernedPublicFacet<{
|
|
83
|
+
getElectorate: () => Amount<"set">;
|
|
84
|
+
getStartFrequency: () => import("@agoric/time/src/types").RelativeTime;
|
|
85
|
+
getClockStep: () => import("@agoric/time/src/types").RelativeTime;
|
|
86
|
+
getStartingRate: () => bigint;
|
|
87
|
+
getLowestRate: () => bigint;
|
|
88
|
+
getDiscountStep: () => bigint;
|
|
89
|
+
getAuctionStartDelay: () => import("@agoric/time/src/types").RelativeTime;
|
|
90
|
+
getPriceLockPeriod: () => import("@agoric/time/src/types").RelativeTime;
|
|
91
|
+
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<R, A>>;
|
|
92
|
+
getSchedules(): {
|
|
93
|
+
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
94
|
+
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
95
|
+
};
|
|
96
|
+
getScheduleUpdates(): Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
97
|
+
getBookDataUpdates(brand: any): Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
98
|
+
getPublicTopics(brand: any): {
|
|
99
|
+
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
100
|
+
} | {
|
|
101
|
+
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
102
|
+
};
|
|
103
|
+
makeDepositInvitation: () => Promise<Invitation<R, A>>;
|
|
104
|
+
}>>): Promise<void>;
|
|
105
|
+
}>;
|
|
106
|
+
makeCollectFeesInvitation(): Promise<Invitation<R, A>>;
|
|
107
|
+
getRewardAllocation(): AmountKeywordRecord;
|
|
108
|
+
makeLiquidationWaker(): {
|
|
109
|
+
wake: (timestamp: any) => any;
|
|
110
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
111
|
+
wake: (timestamp: any) => any;
|
|
112
|
+
}>;
|
|
113
|
+
makeReschedulerWaker(): {
|
|
114
|
+
wake: (timestamp: any) => any;
|
|
115
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
116
|
+
wake: (timestamp: any) => any;
|
|
117
|
+
}>;
|
|
118
|
+
makePriceLockWaker(): {
|
|
119
|
+
wake: (timestamp: any) => any;
|
|
120
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
121
|
+
wake: (timestamp: any) => any;
|
|
122
|
+
}>;
|
|
123
|
+
};
|
|
124
|
+
getGovernedApis(): ERef<GovernedApis>;
|
|
125
|
+
getGovernedApiNames(): never[];
|
|
126
|
+
setOfferFilter: (strings: any) => Promise<void>;
|
|
127
|
+
};
|
|
128
|
+
publicFacet: {
|
|
129
|
+
getCollateralManager(brandIn: Brand<AssetKind>): {
|
|
130
|
+
makeVaultInvitation(): Promise<Invitation<R, A>>;
|
|
131
|
+
getQuotes(): import("@agoric/notifier").StoredNotifier<PriceQuote>;
|
|
132
|
+
getCompoundedStabilityFee(): Ratio;
|
|
133
|
+
getPublicTopics(): {
|
|
134
|
+
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").AssetState>;
|
|
135
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultManager.js").MetricsNotification>;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
getDebtIssuer(): Issuer<"nat">;
|
|
139
|
+
getSubscription({ collateralBrand }: {
|
|
140
|
+
collateralBrand: Brand<AssetKind>;
|
|
141
|
+
}): StoredSubscription<GovernanceSubscriptionState>;
|
|
142
|
+
getPublicTopics(): {
|
|
143
|
+
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./vaultDirector.js").MetricsNotification>;
|
|
144
|
+
};
|
|
145
|
+
getElectorateSubscription(): StoredSubscription<GovernanceSubscriptionState>;
|
|
146
|
+
getGovernedParams({ collateralBrand }: {
|
|
147
|
+
collateralBrand: Brand<AssetKind>;
|
|
148
|
+
}): ERef<ParamStateRecord>;
|
|
149
|
+
getInvitationAmount(name: string): Amount<"set">;
|
|
150
|
+
};
|
|
151
|
+
}>;
|
|
152
|
+
export type VaultFactoryZCF = ZCF<GovernanceTerms<import('./params').VaultDirectorParams> & {
|
|
153
|
+
auctioneerPublicFacet: import('../auction/auctioneer.js').AuctioneerPublicFacet;
|
|
154
|
+
priceAuthority: ERef<PriceAuthority>;
|
|
155
|
+
reservePublicFacet: AssetReservePublicFacet;
|
|
156
|
+
timerService: import('@agoric/time/src/types').TimerService;
|
|
157
|
+
}>;
|
|
158
|
+
export type VaultFactoryContract = ContractOf<typeof prepare>;
|
|
159
|
+
//# sourceMappingURL=vaultFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaultFactory.d.ts","sourceRoot":"","sources":["vaultFactory.js"],"names":[],"mappings":"AAmCA;;;;;;;GAOG;AAEH,gEAWE;AAcK,6BAVI,eAAe;mBAEN,aAAa;4BACJ,UAAU;gCACN,UAAU;iBACzB,KAAK,WAAW,CAAC;gBAClB,KAAK,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiFhC;8BA9GY,IAAI,gBAAgB,OAAO,UAAU,EAAE,mBAAmB,CAAC,GAAG;IAC1E,qBAAyB,EAAE,OAAO,0BAA0B,EAAE,qBAAqB,CAAC;IACpF,cAAkB,EAAE,KAAK,cAAc,CAAC,CAAC;IACzC,kBAAsB,EAAE,uBAAuB,CAAC;IAChD,YAAgB,EAAE,OAAO,wBAAwB,EAAE,YAAY,CAAC;CAC7D,CAAC;mCA2GS,WAAW,cAAc,CAAC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
export function prepareVaultHolder(baggage: MapStore<string, unknown>, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit): (vault: {
|
|
2
|
+
getVaultSeat(): ZCFSeat;
|
|
3
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
4
|
+
publicSubscribers: {
|
|
5
|
+
vault: {
|
|
6
|
+
description: string;
|
|
7
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
8
|
+
storagePath: Promise<string>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
invitationMakers: {
|
|
12
|
+
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
13
|
+
CloseVault(): Promise<Invitation<R, A>>;
|
|
14
|
+
TransferVault(): Promise<Invitation<R, A>>;
|
|
15
|
+
};
|
|
16
|
+
vault: {
|
|
17
|
+
getPublicTopics(): {
|
|
18
|
+
vault: {
|
|
19
|
+
description: string;
|
|
20
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
21
|
+
storagePath: Promise<string>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
25
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
26
|
+
/**
|
|
27
|
+
* Starting a transfer revokes the vault holder. The associated updater will
|
|
28
|
+
* get a special notification that the vault is being transferred.
|
|
29
|
+
*/
|
|
30
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
31
|
+
getCollateralAmount(): Amount<"nat">;
|
|
32
|
+
getCurrentDebt(): Amount<"nat">;
|
|
33
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
34
|
+
};
|
|
35
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
36
|
+
}>;
|
|
37
|
+
liquidating(): void;
|
|
38
|
+
liquidated(): void;
|
|
39
|
+
abortLiquidation(): string;
|
|
40
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
41
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
42
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
43
|
+
getCollateralAmount(): Amount<"nat">;
|
|
44
|
+
getCurrentDebt(): Amount<"nat">;
|
|
45
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
46
|
+
}, storageNode: StorageNode) => {
|
|
47
|
+
helper: {
|
|
48
|
+
/**
|
|
49
|
+
* @throws if this holder no longer owns the vault
|
|
50
|
+
*/
|
|
51
|
+
owned(): {
|
|
52
|
+
getVaultSeat(): ZCFSeat;
|
|
53
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
54
|
+
publicSubscribers: {
|
|
55
|
+
vault: {
|
|
56
|
+
description: string;
|
|
57
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
58
|
+
storagePath: Promise<string>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
invitationMakers: {
|
|
62
|
+
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
63
|
+
CloseVault(): Promise<Invitation<R, A>>;
|
|
64
|
+
TransferVault(): Promise<Invitation<R, A>>;
|
|
65
|
+
};
|
|
66
|
+
vault: {
|
|
67
|
+
getPublicTopics(): {
|
|
68
|
+
vault: {
|
|
69
|
+
description: string;
|
|
70
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
71
|
+
storagePath: Promise<string>;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
75
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
76
|
+
/**
|
|
77
|
+
* Starting a transfer revokes the vault holder. The associated updater will
|
|
78
|
+
* get a special notification that the vault is being transferred.
|
|
79
|
+
*/
|
|
80
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
81
|
+
getCollateralAmount(): Amount<"nat">;
|
|
82
|
+
getCurrentDebt(): Amount<"nat">;
|
|
83
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
84
|
+
};
|
|
85
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
86
|
+
}>;
|
|
87
|
+
liquidating(): void;
|
|
88
|
+
liquidated(): void;
|
|
89
|
+
abortLiquidation(): string;
|
|
90
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
91
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
92
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
93
|
+
getCollateralAmount(): Amount<"nat">;
|
|
94
|
+
getCurrentDebt(): Amount<"nat">;
|
|
95
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
96
|
+
};
|
|
97
|
+
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
98
|
+
};
|
|
99
|
+
invitationMakers: {
|
|
100
|
+
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
101
|
+
CloseVault(): Promise<Invitation<R, A>>;
|
|
102
|
+
TransferVault(): Promise<Invitation<R, A>>;
|
|
103
|
+
};
|
|
104
|
+
holder: {
|
|
105
|
+
getPublicTopics(): {
|
|
106
|
+
vault: {
|
|
107
|
+
description: string;
|
|
108
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
109
|
+
storagePath: Promise<string>;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
113
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
114
|
+
/**
|
|
115
|
+
* Starting a transfer revokes the vault holder. The associated updater will
|
|
116
|
+
* get a special notification that the vault is being transferred.
|
|
117
|
+
*/
|
|
118
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
119
|
+
getCollateralAmount(): Amount<"nat">;
|
|
120
|
+
getCurrentDebt(): Amount<"nat">;
|
|
121
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
122
|
+
};
|
|
123
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
124
|
+
helper: {
|
|
125
|
+
/**
|
|
126
|
+
* @throws if this holder no longer owns the vault
|
|
127
|
+
*/
|
|
128
|
+
owned(): {
|
|
129
|
+
getVaultSeat(): ZCFSeat;
|
|
130
|
+
initVaultKit(seat: ZCFSeat, storageNode: StorageNode): Promise<{
|
|
131
|
+
publicSubscribers: {
|
|
132
|
+
vault: {
|
|
133
|
+
description: string;
|
|
134
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
135
|
+
storagePath: Promise<string>;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
invitationMakers: {
|
|
139
|
+
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
140
|
+
CloseVault(): Promise<Invitation<R, A>>;
|
|
141
|
+
TransferVault(): Promise<Invitation<R, A>>;
|
|
142
|
+
};
|
|
143
|
+
vault: {
|
|
144
|
+
getPublicTopics(): {
|
|
145
|
+
vault: {
|
|
146
|
+
description: string;
|
|
147
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
148
|
+
storagePath: Promise<string>;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
152
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
153
|
+
/**
|
|
154
|
+
* Starting a transfer revokes the vault holder. The associated updater will
|
|
155
|
+
* get a special notification that the vault is being transferred.
|
|
156
|
+
*/
|
|
157
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
158
|
+
getCollateralAmount(): Amount<"nat">;
|
|
159
|
+
getCurrentDebt(): Amount<"nat">;
|
|
160
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
161
|
+
};
|
|
162
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
163
|
+
}>;
|
|
164
|
+
liquidating(): void;
|
|
165
|
+
liquidated(): void;
|
|
166
|
+
abortLiquidation(): string;
|
|
167
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
168
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
169
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
170
|
+
getCollateralAmount(): Amount<"nat">;
|
|
171
|
+
getCurrentDebt(): Amount<"nat">;
|
|
172
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
173
|
+
};
|
|
174
|
+
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
175
|
+
};
|
|
176
|
+
invitationMakers: {
|
|
177
|
+
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
178
|
+
CloseVault(): Promise<Invitation<R, A>>;
|
|
179
|
+
TransferVault(): Promise<Invitation<R, A>>;
|
|
180
|
+
};
|
|
181
|
+
holder: {
|
|
182
|
+
getPublicTopics(): {
|
|
183
|
+
vault: {
|
|
184
|
+
description: string;
|
|
185
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
186
|
+
storagePath: Promise<string>;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
190
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
191
|
+
/**
|
|
192
|
+
* Starting a transfer revokes the vault holder. The associated updater will
|
|
193
|
+
* get a special notification that the vault is being transferred.
|
|
194
|
+
*/
|
|
195
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
196
|
+
getCollateralAmount(): Amount<"nat">;
|
|
197
|
+
getCurrentDebt(): Amount<"nat">;
|
|
198
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
199
|
+
};
|
|
200
|
+
}>;
|
|
201
|
+
export type State = {
|
|
202
|
+
topicKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<VaultNotification>;
|
|
203
|
+
vault: Vault | null;
|
|
204
|
+
};
|
|
205
|
+
//# sourceMappingURL=vaultHolder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaultHolder.d.ts","sourceRoot":"","sources":["vaultHolder.js"],"names":[],"mappings":"AAoCO,wFAFI,OAAO,6CAA6C,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;YAuExE;;;eAGG;;;;;;;;;;;;;;;;;;;QA7CH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;oBAwCH;;;uBAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAHH;;;WAGG;;;;;;;;QA7CH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;oBAwCH;;;uBAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAHH;;;WAGG;;;;;;GAoBV;oBArHY;IACZ,QAAU,EAAE,OAAO,6CAA6C,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACjG,KAAO,EAAE,KAAK,GAAG,IAAI,CAAC;CACnB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function prepareVaultKit(baggage: MapStore<string, unknown>, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit): (vault: Vault, storageNode: StorageNode) => {
|
|
2
|
+
publicSubscribers: {
|
|
3
|
+
vault: {
|
|
4
|
+
description: string;
|
|
5
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
6
|
+
storagePath: Promise<string>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
invitationMakers: {
|
|
10
|
+
AdjustBalances(): Promise<Invitation<R, A>>;
|
|
11
|
+
CloseVault(): Promise<Invitation<R, A>>;
|
|
12
|
+
TransferVault(): Promise<Invitation<R, A>>;
|
|
13
|
+
};
|
|
14
|
+
vault: {
|
|
15
|
+
getPublicTopics(): {
|
|
16
|
+
vault: {
|
|
17
|
+
description: string;
|
|
18
|
+
subscriber: Subscriber<import("./vault.js").VaultNotification>;
|
|
19
|
+
storagePath: Promise<string>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
makeAdjustBalancesInvitation(): Promise<Invitation<R, A>>;
|
|
23
|
+
makeCloseInvitation(): Promise<Invitation<R, A>>;
|
|
24
|
+
makeTransferInvitation(): Promise<Invitation<R, A>>;
|
|
25
|
+
getCollateralAmount(): Amount<"nat">;
|
|
26
|
+
getCurrentDebt(): Amount<"nat">;
|
|
27
|
+
getNormalizedDebt(): import("./storeUtils.js").NormalizedDebt;
|
|
28
|
+
};
|
|
29
|
+
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<import("./vault.js").VaultNotification>;
|
|
30
|
+
};
|
|
31
|
+
export type VaultKit = (ReturnType<ReturnType<typeof prepareVaultKit>>);
|
|
32
|
+
//# sourceMappingURL=vaultKit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaultKit.d.ts","sourceRoot":"","sources":["vaultKit.js"],"names":[],"mappings":"AAeO,qFAFI,OAAO,6CAA6C,EAAE,eAAe,WASnE,KAAK,eACL,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBvB;uBAEa,CAAC,WAAW,WAAW,sBAAsB,CAAC,CAAC,CAAC"}
|