@agoric/inter-protocol 0.17.0-u18a.0 → 0.17.0-u19.1
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 +27 -27
- package/src/auction/auctionBook.d.ts +2 -1
- package/src/auction/auctionBook.d.ts.map +1 -1
- package/src/auction/auctionBook.js +2 -1
- package/src/feeDistributor.d.ts +10 -10
- package/src/interest-math.d.ts +1 -0
- package/src/interest-math.d.ts.map +1 -1
- package/src/interest-math.js +4 -0
- package/src/price/README.md +1 -1
- package/src/price/fluxAggregatorContract.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.d.ts +2 -1
- package/src/price/fluxAggregatorKit.d.ts.map +1 -1
- package/src/price/fluxAggregatorKit.js +2 -2
- package/src/price/priceOracleKit.d.ts +2 -1
- package/src/price/priceOracleKit.d.ts.map +1 -1
- package/src/price/priceOracleKit.js +5 -1
- package/src/proposals/replace-fee-distributor.js +5 -2
- package/src/proposals/utils.d.ts.map +1 -1
- package/src/provisionPoolKit.d.ts +3 -1
- package/src/provisionPoolKit.d.ts.map +1 -1
- package/src/provisionPoolKit.js +9 -2
- package/src/psm/psm.d.ts +5 -1
- package/src/psm/psm.d.ts.map +1 -1
- package/src/psm/psm.js +5 -1
- package/src/reserve/assetReserve.d.ts +3 -2
- package/src/reserve/assetReserve.d.ts.map +1 -1
- package/src/reserve/assetReserve.js +6 -2
- package/src/reserve/assetReserveKit.d.ts +2 -1
- package/src/reserve/assetReserveKit.d.ts.map +1 -1
- package/src/reserve/assetReserveKit.js +2 -1
- package/src/vaultFactory/burn.d.ts +1 -1
- package/src/vaultFactory/burn.d.ts.map +1 -1
- package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
- package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
- package/src/vaultFactory/vault.d.ts +2 -1
- package/src/vaultFactory/vault.d.ts.map +1 -1
- package/src/vaultFactory/vault.js +2 -1
- package/src/vaultFactory/vaultDirector.d.ts +5 -2
- package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
- package/src/vaultFactory/vaultDirector.js +3 -1
- package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.d.ts +2 -1
- package/src/vaultFactory/vaultKit.d.ts.map +1 -1
- package/src/vaultFactory/vaultKit.js +5 -1
- package/src/vaultFactory/vaultManager.d.ts +2 -1
- package/src/vaultFactory/vaultManager.d.ts.map +1 -1
- package/src/vaultFactory/vaultManager.js +2 -2
- package/src/proposals/add-auction.d.ts +0 -114
- package/src/proposals/add-auction.d.ts.map +0 -1
- package/src/proposals/addAssetToVault.d.ts +0 -173
- package/src/proposals/addAssetToVault.d.ts.map +0 -1
- package/src/proposals/committee-proposal.d.ts +0 -113
- package/src/proposals/committee-proposal.d.ts.map +0 -1
- package/src/proposals/core-proposal.d.ts +0 -149
- package/src/proposals/core-proposal.d.ts.map +0 -1
- package/src/proposals/deploy-price-feeds.d.ts +0 -81
- package/src/proposals/deploy-price-feeds.d.ts.map +0 -1
- package/src/proposals/econ-behaviors.d.ts +0 -543
- package/src/proposals/econ-behaviors.d.ts.map +0 -1
- package/src/proposals/price-feed-proposal.d.ts +0 -84
- package/src/proposals/price-feed-proposal.d.ts.map +0 -1
- package/src/proposals/replace-fee-distributor.d.ts +0 -48
- package/src/proposals/replace-fee-distributor.d.ts.map +0 -1
- package/src/proposals/replace-scaledPriceAuthorities.d.ts +0 -30
- package/src/proposals/replace-scaledPriceAuthorities.d.ts.map +0 -1
- package/src/proposals/replaceElectorate.d.ts +0 -65
- package/src/proposals/replaceElectorate.d.ts.map +0 -1
- package/src/proposals/startEconCommittee.d.ts +0 -34
- package/src/proposals/startEconCommittee.d.ts.map +0 -1
- package/src/proposals/startPSM.d.ts +0 -59
- package/src/proposals/startPSM.d.ts.map +0 -1
- package/src/proposals/upgrade-scaledPriceAuthorities.d.ts +0 -24
- package/src/proposals/upgrade-scaledPriceAuthorities.d.ts.map +0 -1
- package/src/proposals/upgrade-vaults.d.ts +0 -41
- package/src/proposals/upgrade-vaults.d.ts.map +0 -1
|
@@ -1,543 +0,0 @@
|
|
|
1
|
-
export const SECONDS_PER_MINUTE: 60n;
|
|
2
|
-
export const SECONDS_PER_HOUR: bigint;
|
|
3
|
-
export const SECONDS_PER_DAY: bigint;
|
|
4
|
-
export const SECONDS_PER_WEEK: bigint;
|
|
5
|
-
export function setupReserve({ consume: { board, feeMintAccess: feeMintAccessP, chainStorage, chainTimerService, diagnostics, zoe, economicCommitteeCreatorFacet: committeeCreator, }, produce: { reserveKit }, issuer: { consume: { [Stable.symbol]: centralIssuer }, }, instance: { produce: { reserve: reserveInstanceProducer, reserveGovernor }, }, installation: { consume: { contractGovernor: governorInstallation, reserve: reserveInstallation, }, }, }: EconomyBootstrapPowers): Promise<Installation<(zcf: ZCF<GovernanceTerms<{}> & {
|
|
6
|
-
governedApis: ["burnFeesToReduceShortfall"];
|
|
7
|
-
}>, privateArgs: {
|
|
8
|
-
feeMintAccess: FeeMintAccess;
|
|
9
|
-
initialPoserInvitation: Invitation;
|
|
10
|
-
marshaller: ERef<Marshaller>;
|
|
11
|
-
storageNode: ERef<StorageNode>;
|
|
12
|
-
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
13
|
-
creatorFacet: GovernedCreatorFacet<import("@endo/exo").Guarded<{
|
|
14
|
-
addIssuer(issuer: Issuer, keyword: string): Promise<void>;
|
|
15
|
-
getAllocations(): Allocation;
|
|
16
|
-
makeShortfallReportingInvitation(): Promise<Invitation<import("@endo/exo").Guarded<{
|
|
17
|
-
increaseLiquidationShortfall(shortfall: Amount<"nat">): void;
|
|
18
|
-
reduceLiquidationShortfall(reduction: Amount<"nat">): void;
|
|
19
|
-
}>, undefined>>;
|
|
20
|
-
}>>;
|
|
21
|
-
publicFacet: GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
22
|
-
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
23
|
-
getPublicTopics(): {
|
|
24
|
-
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
25
|
-
};
|
|
26
|
-
}>>;
|
|
27
|
-
}>>>;
|
|
28
|
-
export function setupVaultFactoryArguments(consume: EconomyBootstrapPowers["consume"], { interestTiming, options: { referencedUi }, }: {
|
|
29
|
-
interestTiming?: InterestTiming | undefined;
|
|
30
|
-
options?: {
|
|
31
|
-
referencedUi?: string | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
} | undefined, minInitialDebt: Amount<"nat">): Promise<{
|
|
34
|
-
vaultFactoryTerms: {
|
|
35
|
-
priceAuthority: globalThis.ERef<import("@agoric/zoe/tools/types.js").PriceAuthority>;
|
|
36
|
-
reservePublicFacet: globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
|
|
37
|
-
makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
|
|
38
|
-
getPublicTopics(): {
|
|
39
|
-
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
|
|
40
|
-
};
|
|
41
|
-
}>>;
|
|
42
|
-
timerService: globalThis.ERef<import("@agoric/time").TimerService>;
|
|
43
|
-
governedParams: {
|
|
44
|
-
Electorate: {
|
|
45
|
-
type: "invitation";
|
|
46
|
-
value: import("@agoric/ertp").SetAmount<import("@endo/patterns").Key>;
|
|
47
|
-
};
|
|
48
|
-
MinInitialDebt: {
|
|
49
|
-
type: "amount";
|
|
50
|
-
value: import("@agoric/ertp").NatAmount;
|
|
51
|
-
};
|
|
52
|
-
ShortfallInvitation: {
|
|
53
|
-
type: "invitation";
|
|
54
|
-
value: import("@agoric/ertp").SetAmount<import("@endo/patterns").Key>;
|
|
55
|
-
};
|
|
56
|
-
ReferencedUI: {
|
|
57
|
-
type: "string";
|
|
58
|
-
value: string;
|
|
59
|
-
};
|
|
60
|
-
ChargingPeriod: {
|
|
61
|
-
type: "nat";
|
|
62
|
-
value: bigint;
|
|
63
|
-
};
|
|
64
|
-
RecordingPeriod: {
|
|
65
|
-
type: "nat";
|
|
66
|
-
value: bigint;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
bootstrapPaymentValue: bigint;
|
|
70
|
-
};
|
|
71
|
-
vaultFactoryPrivateArgs: {
|
|
72
|
-
auctioneerInstance: import("@agoric/internal/src/tagged.js").TagContainer<any> & import("@endo/pass-style").RemotableObject & Handle<"Instance">;
|
|
73
|
-
feeMintAccess: FeeMintAccess;
|
|
74
|
-
initialPoserInvitation: import("@endo/pass-style").RemotableObject & import("@agoric/ertp").PaymentMethods<"set"> & {
|
|
75
|
-
[OfferReturn]?: unknown;
|
|
76
|
-
[OfferArgs]?: undefined;
|
|
77
|
-
};
|
|
78
|
-
initialShortfallInvitation: import("@endo/pass-style").RemotableObject & import("@agoric/ertp").PaymentMethods<"set"> & {
|
|
79
|
-
[OfferReturn]?: import("@endo/exo").Guarded<{
|
|
80
|
-
increaseLiquidationShortfall(shortfall: Amount<"nat">): void;
|
|
81
|
-
reduceLiquidationShortfall(reduction: Amount<"nat">): void;
|
|
82
|
-
}> | undefined;
|
|
83
|
-
[OfferArgs]?: undefined;
|
|
84
|
-
};
|
|
85
|
-
marshaller: import("@endo/exo").Guarded<{
|
|
86
|
-
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
87
|
-
fromCapData(data: any): any;
|
|
88
|
-
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
89
|
-
unserialize(data: any): any;
|
|
90
|
-
}>;
|
|
91
|
-
storageNode: globalThis.StorageNode;
|
|
92
|
-
};
|
|
93
|
-
}>;
|
|
94
|
-
export function startVaultFactory({ consume, produce: { vaultFactoryKit }, brand: { consume: { [Stable.symbol]: centralBrandP }, }, instance: { produce: instanceProduce }, installation: { consume: { VaultFactory: vaultFactoryInstallation, contractGovernor: contractGovernorInstallation, }, }, }: EconomyBootstrapPowers, config: {
|
|
95
|
-
interestTiming?: InterestTiming | undefined;
|
|
96
|
-
options?: {
|
|
97
|
-
referencedUi?: string | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
}, minInitialDebt?: bigint): Promise<void>;
|
|
100
|
-
export function grantVaultFactoryControl({ consume: { client, priceAuthorityAdmin, vaultFactoryKit } }: EconomyBootstrapPowers, { options: { vaultFactoryControllerAddress } }?: {
|
|
101
|
-
options?: {
|
|
102
|
-
vaultFactoryControllerAddress?: string | undefined;
|
|
103
|
-
} | undefined;
|
|
104
|
-
}): Promise<void>;
|
|
105
|
-
export function startRewardDistributor({ consume: { chainTimerService, bankManager, vaultFactoryKit, periodicFeeCollectors, reserveKit, zoe, }, produce: { feeDistributorKit, periodicFeeCollectors: periodicFeeCollectorsP }, instance: { produce: { feeDistributor: feeDistributorP }, }, installation: { consume: { feeDistributor }, }, issuer: { consume: { [Stable.symbol]: centralIssuerP }, }, brand: { consume: { [Stable.symbol]: centralBrandP }, }, }: EconomyBootstrapPowers): Promise<void>;
|
|
106
|
-
export function startAuctioneer({ consume: { zoe, board, chainTimerService, priceAuthority, chainStorage, economicCommitteeCreatorFacet: electorateCreatorFacet, }, produce: { auctioneerKit }, instance: { produce: { auctioneer: auctionInstance }, consume: { reserve: reserveInstance }, }, installation: { consume: { auctioneer: auctionInstallation, contractGovernor: contractGovernorInstallation, }, }, issuer: { consume: { [Stable.symbol]: stableIssuerP }, }, }: EconomyBootstrapPowers, { auctionParams, }?: {
|
|
107
|
-
auctionParams?: any;
|
|
108
|
-
}): Promise<void>;
|
|
109
|
-
export type VaultFactoryPublicFacet = Awaited<ReturnType<(zcf: VaultFactoryZCF, privateArgs: {
|
|
110
|
-
feeMintAccess: FeeMintAccess;
|
|
111
|
-
initialPoserInvitation: Invitation;
|
|
112
|
-
initialShortfallInvitation: Invitation;
|
|
113
|
-
storageNode: ERef<StorageNode>;
|
|
114
|
-
marshaller: ERef<Marshaller>;
|
|
115
|
-
auctioneerInstance: Instance;
|
|
116
|
-
managerParams: Record<string, import("../vaultFactory/params.js").VaultManagerParamOverrides>;
|
|
117
|
-
directorParamOverrides: [object];
|
|
118
|
-
}, baggage: import("@agoric/swingset-liveslots").Baggage) => Promise<{
|
|
119
|
-
creatorFacet: import("@endo/exo").Guarded<{
|
|
120
|
-
getParamMgrRetriever: () => {
|
|
121
|
-
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
122
|
-
DebtLimit: "amount";
|
|
123
|
-
InterestRate: "ratio";
|
|
124
|
-
LiquidationPadding: "ratio";
|
|
125
|
-
LiquidationMargin: "ratio";
|
|
126
|
-
LiquidationPenalty: "ratio";
|
|
127
|
-
MintFee: "ratio";
|
|
128
|
-
}>;
|
|
129
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
130
|
-
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
131
|
-
DebtLimit: "amount";
|
|
132
|
-
InterestRate: "ratio";
|
|
133
|
-
LiquidationPadding: "ratio";
|
|
134
|
-
LiquidationMargin: "ratio";
|
|
135
|
-
LiquidationPenalty: "ratio";
|
|
136
|
-
MintFee: "ratio";
|
|
137
|
-
}>;
|
|
138
|
-
}>;
|
|
139
|
-
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
140
|
-
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
141
|
-
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
142
|
-
getGovernedParams(): import("../vaultFactory/vaultManager.js").GovernedParamGetters;
|
|
143
|
-
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
144
|
-
publicSubscribers: {
|
|
145
|
-
vault: {
|
|
146
|
-
description: string;
|
|
147
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
148
|
-
storagePath: Promise<string>;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
152
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
153
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
154
|
-
TransferVault(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
155
|
-
}>;
|
|
156
|
-
vault: import("@endo/exo").Guarded<{
|
|
157
|
-
getPublicTopics(): {
|
|
158
|
-
vault: {
|
|
159
|
-
description: string;
|
|
160
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
161
|
-
storagePath: Promise<string>;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
165
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
166
|
-
makeTransferInvitation(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
167
|
-
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
168
|
-
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
169
|
-
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
170
|
-
}>;
|
|
171
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
172
|
-
}>;
|
|
173
|
-
getCollateralQuote(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
174
|
-
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
175
|
-
makeVaultInvitation(): Promise<Invitation<{
|
|
176
|
-
publicSubscribers: {
|
|
177
|
-
vault: {
|
|
178
|
-
description: string;
|
|
179
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
180
|
-
storagePath: Promise<string>;
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
184
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
185
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
186
|
-
TransferVault(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
187
|
-
}>;
|
|
188
|
-
vault: import("@endo/exo").Guarded<{
|
|
189
|
-
getPublicTopics(): {
|
|
190
|
-
vault: {
|
|
191
|
-
description: string;
|
|
192
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
193
|
-
storagePath: Promise<string>;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
197
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
198
|
-
makeTransferInvitation(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
199
|
-
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
200
|
-
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
201
|
-
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
202
|
-
}>;
|
|
203
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
204
|
-
}, undefined>>;
|
|
205
|
-
getQuotes(): import("@agoric/notifier").StoredNotifier<import("@agoric/zoe/tools/types.js").PriceQuote>;
|
|
206
|
-
getCompoundedInterest(): Ratio;
|
|
207
|
-
getPublicTopics(): {
|
|
208
|
-
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").AssetState>;
|
|
209
|
-
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").MetricsNotification>;
|
|
210
|
-
};
|
|
211
|
-
}>;
|
|
212
|
-
lockOraclePrices(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
213
|
-
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
214
|
-
}>>;
|
|
215
|
-
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
216
|
-
getRewardAllocation(): Allocation;
|
|
217
|
-
makeLiquidationWaker(): {
|
|
218
|
-
wake: (timestamp: any) => any;
|
|
219
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
220
|
-
wake: (timestamp: any) => any;
|
|
221
|
-
}>;
|
|
222
|
-
makeReschedulerWaker(): {
|
|
223
|
-
wake: (timestamp: any) => any;
|
|
224
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
225
|
-
wake: (timestamp: any) => any;
|
|
226
|
-
}>;
|
|
227
|
-
makePriceLockWaker(): {
|
|
228
|
-
wake: (timestamp: any) => any;
|
|
229
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
230
|
-
wake: (timestamp: any) => any;
|
|
231
|
-
}>;
|
|
232
|
-
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
233
|
-
}>;
|
|
234
|
-
getGovernedApis(): ERef<GovernedApis>;
|
|
235
|
-
getGovernedApiNames(): never[];
|
|
236
|
-
setOfferFilter: (strings: any) => Promise<void>;
|
|
237
|
-
}>;
|
|
238
|
-
publicFacet: import("@endo/exo").Guarded<{
|
|
239
|
-
getCollateralManager(brandIn: Brand): import("@endo/exo").Guarded<{
|
|
240
|
-
makeVaultInvitation(): Promise<Invitation<{
|
|
241
|
-
publicSubscribers: {
|
|
242
|
-
vault: {
|
|
243
|
-
description: string;
|
|
244
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
245
|
-
storagePath: Promise<string>;
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
249
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
250
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
251
|
-
TransferVault(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
252
|
-
}>;
|
|
253
|
-
vault: import("@endo/exo").Guarded<{
|
|
254
|
-
getPublicTopics(): {
|
|
255
|
-
vault: {
|
|
256
|
-
description: string;
|
|
257
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
258
|
-
storagePath: Promise<string>;
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
262
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
263
|
-
makeTransferInvitation(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
264
|
-
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
265
|
-
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
266
|
-
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
267
|
-
}>;
|
|
268
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
269
|
-
}, undefined>>;
|
|
270
|
-
getQuotes(): import("@agoric/notifier").StoredNotifier<import("@agoric/zoe/tools/types.js").PriceQuote>;
|
|
271
|
-
getCompoundedInterest(): Ratio;
|
|
272
|
-
getPublicTopics(): {
|
|
273
|
-
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").AssetState>;
|
|
274
|
-
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").MetricsNotification>;
|
|
275
|
-
};
|
|
276
|
-
}>;
|
|
277
|
-
getDebtIssuer(): globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
278
|
-
getSubscription({ collateralBrand }: {
|
|
279
|
-
collateralBrand: Brand;
|
|
280
|
-
}): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
281
|
-
getPublicTopics(): {
|
|
282
|
-
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
283
|
-
};
|
|
284
|
-
getElectorateSubscription(): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
285
|
-
getGovernedParams({ collateralBrand }: {
|
|
286
|
-
collateralBrand: Brand;
|
|
287
|
-
}): globalThis.ERef<globalThis.ParamStateRecord>;
|
|
288
|
-
getDirectorGovernedParams(): globalThis.ERef<globalThis.ParamStateRecord>;
|
|
289
|
-
getInvitationAmount(name: string): import("@agoric/ertp").SetAmount<InvitationDetails>;
|
|
290
|
-
}>;
|
|
291
|
-
}>>>["publicFacet"];
|
|
292
|
-
export type PSMKit = {
|
|
293
|
-
label: string;
|
|
294
|
-
psm: Instance;
|
|
295
|
-
psmGovernor: Instance;
|
|
296
|
-
psmCreatorFacet: Awaited<ReturnType<Awaited<ReturnType<typeof import("../psm/psm.js")["start"]>>["creatorFacet"]["getLimitedCreatorFacet"]>>;
|
|
297
|
-
psmGovernorCreatorFacet: GovernorCreatorFacet<typeof import("../psm/psm.js")["start"]>;
|
|
298
|
-
psmAdminFacet: AdminFacet;
|
|
299
|
-
};
|
|
300
|
-
export type AuctioneerKit = GovernanceFacetKit<(zcf: ZCF<GovernanceTerms<typeof import("../auction/params.js").auctioneerParamTypes> & {
|
|
301
|
-
timerService: import("@agoric/time").TimerService;
|
|
302
|
-
reservePublicFacet: AssetReservePublicFacet;
|
|
303
|
-
priceAuthority: import("@agoric/zoe/tools/types.js").PriceAuthority;
|
|
304
|
-
}>, privateArgs: {
|
|
305
|
-
initialPoserInvitation: Invitation;
|
|
306
|
-
storageNode: StorageNode;
|
|
307
|
-
marshaller: Marshaller;
|
|
308
|
-
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
309
|
-
publicFacet: globalThis.GovernedPublicFacet<{
|
|
310
|
-
getElectorate: () => import("@agoric/ertp").SetAmount<import("@endo/patterns").Key>;
|
|
311
|
-
getStartFrequency: () => RelativeTime;
|
|
312
|
-
getClockStep: () => RelativeTime;
|
|
313
|
-
getStartingRate: () => bigint;
|
|
314
|
-
getLowestRate: () => bigint;
|
|
315
|
-
getDiscountStep: () => bigint;
|
|
316
|
-
getAuctionStartDelay: () => RelativeTime;
|
|
317
|
-
getPriceLockPeriod: () => RelativeTime;
|
|
318
|
-
makeBidInvitation(collateralBrand: Brand<"nat">): Promise<Invitation<string, import("../auction/auctionBook.js").OfferSpec>>;
|
|
319
|
-
getSchedules(): {
|
|
320
|
-
liveAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
321
|
-
nextAuctionSchedule: import("../auction/scheduler.js").Schedule | null;
|
|
322
|
-
};
|
|
323
|
-
getScheduleUpdates(): globalThis.Subscriber<import("../auction/scheduler.js").ScheduleNotification>;
|
|
324
|
-
getBookDataUpdates(brand: any): globalThis.Subscriber<import("../auction/auctionBook.js").BookDataNotification>;
|
|
325
|
-
getPublicTopics(brand: any): {
|
|
326
|
-
bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/auctionBook.js").BookDataNotification>;
|
|
327
|
-
} | {
|
|
328
|
-
schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../auction/scheduler.js").ScheduleNotification>;
|
|
329
|
-
};
|
|
330
|
-
makeDepositInvitation: () => Promise<Invitation<string, {
|
|
331
|
-
goal: Amount<"nat">;
|
|
332
|
-
}>>;
|
|
333
|
-
}>;
|
|
334
|
-
creatorFacet: globalThis.GovernedCreatorFacet<{
|
|
335
|
-
addBrand(issuer: Issuer<"nat">, kwd: Keyword): Promise<void>;
|
|
336
|
-
getSchedule(): Promise<import("../auction/scheduler.js").FullSchedule>;
|
|
337
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
338
|
-
addBrand(issuer: Issuer<"nat">, kwd: Keyword): Promise<void>;
|
|
339
|
-
getSchedule(): Promise<import("../auction/scheduler.js").FullSchedule>;
|
|
340
|
-
}>>;
|
|
341
|
-
}>>;
|
|
342
|
-
export type EconomyBootstrapPowers = WellKnownSpaces & ChainBootstrapSpace & EconomyBootstrapSpace;
|
|
343
|
-
export type EconomyBootstrapSpace = PromiseSpaceOf<{
|
|
344
|
-
economicCommitteeKit: CommitteeStartResult;
|
|
345
|
-
economicCommitteeCreatorFacet: import("@agoric/governance/src/committee.js").CommitteeElectorateCreatorFacet;
|
|
346
|
-
feeDistributorKit: StartedInstanceKit<typeof import("../feeDistributor.js").start>;
|
|
347
|
-
periodicFeeCollectors: MapStore<number, import("../feeDistributor.js").PeriodicFeeCollector>;
|
|
348
|
-
psmKit: MapStore<Brand, PSMKit>;
|
|
349
|
-
anchorBalancePayments: MapStore<Brand, Payment<"nat">>;
|
|
350
|
-
econCharterKit: EconCharterStartResult;
|
|
351
|
-
reserveKit: GovernanceFacetKit<typeof import("../reserve/assetReserve.js")["start"]>;
|
|
352
|
-
vaultFactoryKit: GovernanceFacetKit<(zcf: VaultFactoryZCF, privateArgs: {
|
|
353
|
-
feeMintAccess: FeeMintAccess;
|
|
354
|
-
initialPoserInvitation: Invitation;
|
|
355
|
-
initialShortfallInvitation: Invitation;
|
|
356
|
-
storageNode: ERef<StorageNode>;
|
|
357
|
-
marshaller: ERef<Marshaller>;
|
|
358
|
-
auctioneerInstance: Instance;
|
|
359
|
-
managerParams: Record<string, import("../vaultFactory/params.js").VaultManagerParamOverrides>;
|
|
360
|
-
directorParamOverrides: [object];
|
|
361
|
-
}, baggage: import("@agoric/swingset-liveslots").Baggage) => Promise<{
|
|
362
|
-
creatorFacet: import("@endo/exo").Guarded<{
|
|
363
|
-
getParamMgrRetriever: () => {
|
|
364
|
-
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
365
|
-
DebtLimit: "amount";
|
|
366
|
-
InterestRate: "ratio";
|
|
367
|
-
LiquidationPadding: "ratio";
|
|
368
|
-
LiquidationMargin: "ratio";
|
|
369
|
-
LiquidationPenalty: "ratio";
|
|
370
|
-
MintFee: "ratio";
|
|
371
|
-
}>;
|
|
372
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
373
|
-
get: (paramPath?: VaultFactoryParamPath) => import("../vaultFactory/vaultDirector.js").VaultDirectorParamManager | import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
|
|
374
|
-
DebtLimit: "amount";
|
|
375
|
-
InterestRate: "ratio";
|
|
376
|
-
LiquidationPadding: "ratio";
|
|
377
|
-
LiquidationMargin: "ratio";
|
|
378
|
-
LiquidationPenalty: "ratio";
|
|
379
|
-
MintFee: "ratio";
|
|
380
|
-
}>;
|
|
381
|
-
}>;
|
|
382
|
-
getInvitation(name: string): Promise<Invitation<unknown, undefined>>;
|
|
383
|
-
getLimitedCreatorFacet(): import("@endo/exo").Guarded<{
|
|
384
|
-
addVaultType(collateralIssuer: Issuer<"nat">, collateralKeyword: Keyword, initialParamValues: VaultManagerParamValues): Promise<import("@endo/exo").Guarded<{
|
|
385
|
-
getGovernedParams(): import("../vaultFactory/vaultManager.js").GovernedParamGetters;
|
|
386
|
-
makeVaultKit(seat: ZCFSeat): Promise<{
|
|
387
|
-
publicSubscribers: {
|
|
388
|
-
vault: {
|
|
389
|
-
description: string;
|
|
390
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
391
|
-
storagePath: Promise<string>;
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
395
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
396
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
397
|
-
TransferVault(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
398
|
-
}>;
|
|
399
|
-
vault: import("@endo/exo").Guarded<{
|
|
400
|
-
getPublicTopics(): {
|
|
401
|
-
vault: {
|
|
402
|
-
description: string;
|
|
403
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
404
|
-
storagePath: Promise<string>;
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
408
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
409
|
-
makeTransferInvitation(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
410
|
-
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
411
|
-
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
412
|
-
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
413
|
-
}>;
|
|
414
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
415
|
-
}>;
|
|
416
|
-
getCollateralQuote(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
417
|
-
getPublicFacet(): import("@endo/exo").Guarded<{
|
|
418
|
-
makeVaultInvitation(): Promise<Invitation<{
|
|
419
|
-
publicSubscribers: {
|
|
420
|
-
vault: {
|
|
421
|
-
description: string;
|
|
422
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
423
|
-
storagePath: Promise<string>;
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
427
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
428
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
429
|
-
TransferVault(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
430
|
-
}>;
|
|
431
|
-
vault: import("@endo/exo").Guarded<{
|
|
432
|
-
getPublicTopics(): {
|
|
433
|
-
vault: {
|
|
434
|
-
description: string;
|
|
435
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
436
|
-
storagePath: Promise<string>;
|
|
437
|
-
};
|
|
438
|
-
};
|
|
439
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
440
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
441
|
-
makeTransferInvitation(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
442
|
-
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
443
|
-
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
444
|
-
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
445
|
-
}>;
|
|
446
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
447
|
-
}, undefined>>;
|
|
448
|
-
getQuotes(): import("@agoric/notifier").StoredNotifier<import("@agoric/zoe/tools/types.js").PriceQuote>;
|
|
449
|
-
getCompoundedInterest(): Ratio;
|
|
450
|
-
getPublicTopics(): {
|
|
451
|
-
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").AssetState>;
|
|
452
|
-
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").MetricsNotification>;
|
|
453
|
-
};
|
|
454
|
-
}>;
|
|
455
|
-
lockOraclePrices(): import("@agoric/zoe/tools/types.js").PriceQuote;
|
|
456
|
-
liquidateVaults(auctionPF: ERef<AuctioneerPublicFacet>): Promise<void>;
|
|
457
|
-
}>>;
|
|
458
|
-
makeCollectFeesInvitation(): Promise<Invitation<string, undefined>>;
|
|
459
|
-
getRewardAllocation(): Allocation;
|
|
460
|
-
makeLiquidationWaker(): {
|
|
461
|
-
wake: (timestamp: any) => any;
|
|
462
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
463
|
-
wake: (timestamp: any) => any;
|
|
464
|
-
}>;
|
|
465
|
-
makeReschedulerWaker(): {
|
|
466
|
-
wake: (timestamp: any) => any;
|
|
467
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
468
|
-
wake: (timestamp: any) => any;
|
|
469
|
-
}>;
|
|
470
|
-
makePriceLockWaker(): {
|
|
471
|
-
wake: (timestamp: any) => any;
|
|
472
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
473
|
-
wake: (timestamp: any) => any;
|
|
474
|
-
}>;
|
|
475
|
-
setShortfallReporter(newInvitation: any): Promise<void>;
|
|
476
|
-
}>;
|
|
477
|
-
getGovernedApis(): ERef<GovernedApis>;
|
|
478
|
-
getGovernedApiNames(): never[];
|
|
479
|
-
setOfferFilter: (strings: any) => Promise<void>;
|
|
480
|
-
}>;
|
|
481
|
-
publicFacet: import("@endo/exo").Guarded<{
|
|
482
|
-
getCollateralManager(brandIn: Brand): import("@endo/exo").Guarded<{
|
|
483
|
-
makeVaultInvitation(): Promise<Invitation<{
|
|
484
|
-
publicSubscribers: {
|
|
485
|
-
vault: {
|
|
486
|
-
description: string;
|
|
487
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
488
|
-
storagePath: Promise<string>;
|
|
489
|
-
};
|
|
490
|
-
};
|
|
491
|
-
invitationMakers: import("@endo/exo").Guarded<{
|
|
492
|
-
AdjustBalances(): Promise<Invitation<string, undefined>>;
|
|
493
|
-
CloseVault(): Promise<Invitation<string, undefined>>;
|
|
494
|
-
TransferVault(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
495
|
-
}>;
|
|
496
|
-
vault: import("@endo/exo").Guarded<{
|
|
497
|
-
getPublicTopics(): {
|
|
498
|
-
vault: {
|
|
499
|
-
description: string;
|
|
500
|
-
subscriber: globalThis.Subscriber<VaultNotification>;
|
|
501
|
-
storagePath: Promise<string>;
|
|
502
|
-
};
|
|
503
|
-
};
|
|
504
|
-
makeAdjustBalancesInvitation(): Promise<Invitation<string, undefined>>;
|
|
505
|
-
makeCloseInvitation(): Promise<Invitation<string, undefined>>;
|
|
506
|
-
makeTransferInvitation(): Promise<Invitation</*elided*/ any, undefined>>;
|
|
507
|
-
getCollateralAmount(): import("@agoric/ertp").NatAmount;
|
|
508
|
-
getCurrentDebt(): import("@agoric/ertp").NatAmount;
|
|
509
|
-
getNormalizedDebt(): import("../vaultFactory/storeUtils.js").NormalizedDebt;
|
|
510
|
-
}>;
|
|
511
|
-
vaultUpdater: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<VaultNotification>;
|
|
512
|
-
}, undefined>>;
|
|
513
|
-
getQuotes(): import("@agoric/notifier").StoredNotifier<import("@agoric/zoe/tools/types.js").PriceQuote>;
|
|
514
|
-
getCompoundedInterest(): Ratio;
|
|
515
|
-
getPublicTopics(): {
|
|
516
|
-
asset: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").AssetState>;
|
|
517
|
-
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultManager.js").MetricsNotification>;
|
|
518
|
-
};
|
|
519
|
-
}>;
|
|
520
|
-
getDebtIssuer(): globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
521
|
-
getSubscription({ collateralBrand }: {
|
|
522
|
-
collateralBrand: Brand;
|
|
523
|
-
}): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
524
|
-
getPublicTopics(): {
|
|
525
|
-
metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../vaultFactory/vaultDirector.js").MetricsNotification>;
|
|
526
|
-
};
|
|
527
|
-
getElectorateSubscription(): globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
|
|
528
|
-
getGovernedParams({ collateralBrand }: {
|
|
529
|
-
collateralBrand: Brand;
|
|
530
|
-
}): globalThis.ERef<globalThis.ParamStateRecord>;
|
|
531
|
-
getDirectorGovernedParams(): globalThis.ERef<globalThis.ParamStateRecord>;
|
|
532
|
-
getInvitationAmount(name: string): import("@agoric/ertp").SetAmount<InvitationDetails>;
|
|
533
|
-
}>;
|
|
534
|
-
}>>;
|
|
535
|
-
auctioneerKit: AuctioneerKit;
|
|
536
|
-
newAuctioneerKit: AuctioneerKit | undefined;
|
|
537
|
-
minInitialDebt: NatValue;
|
|
538
|
-
}>;
|
|
539
|
-
export type EconCharterStartResult = StartedInstanceKit<typeof import("../econCommitteeCharter.js")["start"]>;
|
|
540
|
-
export type CommitteeStartResult = StartedInstanceKit<typeof import("@agoric/governance/src/committee.js")["start"]>;
|
|
541
|
-
import { Stable } from '@agoric/internal/src/tokens.js';
|
|
542
|
-
import type { StartedInstanceKit } from '@agoric/zoe/src/zoeService/utils.js';
|
|
543
|
-
//# sourceMappingURL=econ-behaviors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"econ-behaviors.d.ts","sourceRoot":"","sources":["econ-behaviors.js"],"names":[],"mappings":"AAgBA,iCAAkC,GAAG,CAAC;AACtC,sCAA0C;AAC1C,qCAAsD;AACtD,sCAAqD;AAwE9C,mcADK,sBAAsB;;;;;;;;;;;;;;;;;;;;;;KAgGjC;AAUM,oDAPI,sBAAsB,CAAC,SAAS,CAAC,kDAEzC;IAAgC,cAAc;IACtB,OAAO;;;CAE/B,8BAAQ,MAAM,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EvB;AAUM,wSAPI,sBAAsB,UAE9B;IAAgC,cAAc;IACtB,OAAO;;;CAE/B,mBAAQ,MAAM,iBA6FhB;AAWM,wGALI,sBAAsB,mDAE9B;IAAuB,OAAO;;;CAC+B,iBAoB/D;AAQM,mcAFI,sBAAsB,iBA0GhC;AAQM,+cAJI,sBAAsB,uBAE9B;IAAqB,aAAa,GAA1B,GAAG;CAAwB,iBA0HrC;sCAzmBa,OAAO,CAAC,UAAU;;;;;;;yCA2D2C,2BACpE;;mBAGW,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA/DL,CAAC,CAAC,aAAa,CAAC;;WAI3C,MAAM;SACN,QAAQ;iBACR,QAAQ;qBACR,OAAO,CAChB,UAAU,CACR,OAAO,CACL,UAAU,CAAC,8BAAuB,CAAC,OAAO,CAAC,CAAC,CAC7C,CAAC,cAAc,CAAC,CAAC,wBAAwB,CAAC,CAC5C,CACF;6BACU,oBAAoB,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC;mBAC7D,UAAU;;4BAGV,kBAAkB,CAAC;yBA6fpB,cACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCA0Fu2N,yBAAgB;;;sCAAhB,yBAAgB;;EAxlBhzN,CAAC;qCAG7D,eAAe,GAAG,mBAAmB,GAAG,qBAAqB;oCAG7D,cAAc,CAAC;IACvB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,6BAA6B,EAAE,OAAO,qCAAqC,EAAE,+BAA+B,CAAC;IAC7G,iBAAiB,EAAE,mBACvB,cAAoB,sBAAsB,EAAE,KAAK,CAC5C,CAAC;IACF,qBAAqB,EAAE,QAAQ,CACnC,MAAY,EACZ,OAAa,sBAAsB,EAAE,oBAAoB,CACpD,CAAC;IACF,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAChC,qBAAqB,EAAE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACvD,cAAc,EAAE,sBAAsB,CAAC;IACvC,UAAU,EAAE,kBAAkB,CAClC,2CAA0C,CAAC,OAAO,CAAC,CAC9C,CAAC;IACF,eAAe,EAAE,kBAAkB;;;;;;;6CAmBmC,2BACpE;;uBAGW,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAvBG,CAAC;IAC7C,aAAa,EAAE,aAAa,CAAC;IAC7B,gBAAgB,EAAE,aAAa,GAAG,SAAS,CAAC;IAC5C,cAAc,EAAE,QAAQ,CAAC;CAC1B,CAAC;qCAIQ,mBACZ,2CAAwC,CAAC,OAAO,CAAC,CAC9C;mCAGS,mBACZ,oDAAiD,CAAC,OAAO,CAAC,CACvD;uBAtEmB,gCAAgC;wCAKjB,qCAAqC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export { oracleBrandFeedName as instanceNameFor };
|
|
2
|
-
export function ensureOracleBrands({ namedVat: { consume: { agoricNames }, }, oracleBrand: { produce: oracleBrandProduce }, }: ChainBootstrapSpace & NamedVatPowers, { options: { priceFeedOptions: { brandIn: rawBrandIn, brandOut: rawBrandOut, IN_BRAND_NAME, IN_BRAND_DECIMALS, OUT_BRAND_NAME, OUT_BRAND_DECIMALS, }, }, }: {
|
|
3
|
-
options: {
|
|
4
|
-
priceFeedOptions: PriceFeedOptions;
|
|
5
|
-
};
|
|
6
|
-
}): Promise<[Brand<"nat">, Brand<"nat">]>;
|
|
7
|
-
export function createPriceFeed({ consume: { agoricNamesAdmin, board, chainStorage, chainTimerService, client, econCharterKit, highPrioritySendersManager, namesByAddressAdmin, priceAuthority, priceAuthorityAdmin, startGovernedUpgradable, zoe, }, instance: { produce: produceInstance }, }: ChainBootstrapSpace, { options: { priceFeedOptions: { AGORIC_INSTANCE_NAME, oracleAddresses, contractTerms, IN_BRAND_NAME, OUT_BRAND_NAME, priceAggregatorRef, }, }, }: {
|
|
8
|
-
options: {
|
|
9
|
-
priceFeedOptions: {
|
|
10
|
-
AGORIC_INSTANCE_NAME: string;
|
|
11
|
-
oracleAddresses: string[];
|
|
12
|
-
contractTerms: import("@agoric/inter-protocol/src/price/fluxAggregatorKit.js").ChainlinkConfig;
|
|
13
|
-
IN_BRAND_NAME: string;
|
|
14
|
-
OUT_BRAND_NAME: string;
|
|
15
|
-
priceAggregatorRef: Installation;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
}): Promise<void>;
|
|
19
|
-
export function getManifestForPriceFeed({ restoreRef }: {
|
|
20
|
-
restoreRef?: ((ref: unknown) => Promise<unknown>) | undefined;
|
|
21
|
-
}, priceFeedOptions: PriceFeedOptions): Promise<{
|
|
22
|
-
manifest: {
|
|
23
|
-
[x: string]: {
|
|
24
|
-
consume: {
|
|
25
|
-
agoricNamesAdmin: string;
|
|
26
|
-
board: string;
|
|
27
|
-
chainStorage: string;
|
|
28
|
-
chainTimerService: string;
|
|
29
|
-
client: string;
|
|
30
|
-
econCharterKit: string;
|
|
31
|
-
highPrioritySendersManager: string;
|
|
32
|
-
namesByAddressAdmin: string;
|
|
33
|
-
priceAuthority: string;
|
|
34
|
-
priceAuthorityAdmin: string;
|
|
35
|
-
startGovernedUpgradable: string;
|
|
36
|
-
zoe: string;
|
|
37
|
-
};
|
|
38
|
-
instance: {
|
|
39
|
-
produce: string;
|
|
40
|
-
};
|
|
41
|
-
namedVat?: undefined;
|
|
42
|
-
oracleBrand?: undefined;
|
|
43
|
-
} | {
|
|
44
|
-
namedVat: {
|
|
45
|
-
consume: {
|
|
46
|
-
agoricNames: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
oracleBrand: {
|
|
50
|
-
produce: string;
|
|
51
|
-
};
|
|
52
|
-
consume?: undefined;
|
|
53
|
-
instance?: undefined;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
installations: {
|
|
57
|
-
priceAggregator: Promise<unknown>;
|
|
58
|
-
};
|
|
59
|
-
options: {
|
|
60
|
-
priceFeedOptions: {
|
|
61
|
-
brandIn: any;
|
|
62
|
-
brandOut: any;
|
|
63
|
-
IN_BRAND_NAME: string;
|
|
64
|
-
IN_BRAND_DECIMALS: string;
|
|
65
|
-
OUT_BRAND_NAME: string;
|
|
66
|
-
OUT_BRAND_DECIMALS: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
}>;
|
|
70
|
-
export function startPriceFeeds({ consume, produce, installation: { consume: { priceAggregator }, }, }: import("./econ-behaviors.js").EconomyBootstrapPowers, { options: { demoOracleAddresses } }?: {
|
|
71
|
-
options?: {
|
|
72
|
-
demoOracleAddresses?: string[] | undefined;
|
|
73
|
-
} | undefined;
|
|
74
|
-
}): Promise<void>;
|
|
75
|
-
export type PriceFeedOptions = {
|
|
76
|
-
brandIn?: ERef<Brand<"nat"> | undefined>;
|
|
77
|
-
brandOut?: ERef<Brand<"nat"> | undefined>;
|
|
78
|
-
IN_BRAND_NAME: string;
|
|
79
|
-
IN_BRAND_DECIMALS: string;
|
|
80
|
-
OUT_BRAND_NAME: string;
|
|
81
|
-
OUT_BRAND_DECIMALS: string;
|
|
82
|
-
};
|
|
83
|
-
import { oracleBrandFeedName } from './utils.js';
|
|
84
|
-
//# sourceMappingURL=price-feed-proposal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"price-feed-proposal.d.ts","sourceRoot":"","sources":["price-feed-proposal.js"],"names":[],"mappings":";AA6CO,+HAJI,mBAAmB,GAAG,cAAc,8JACpC;IAAE,OAAO,EAAE;QAAE,gBAAgB,EAAE,gBAAgB,CAAA;KAAE,CAAA;CAAE,GACjD,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAsCjD;AAiBM,iSAdI,mBAAmB,qJACnB;IACN,OAAO,EAAE;QACP,gBAAgB,EAAE;YAChB,oBAAoB,EAAE,MAAM,CAAC;YAC7B,eAAe,EAAE,MAAM,EAAE,CAAC;YAC1B,aAAa,EAAE,OAAO,uDAAuD,EAAE,eAAe,CAAC;YAC/F,aAAa,EAAE,MAAM,CAAC;YACtB,cAAc,EAAE,MAAM,CAAC;YACvB,kBAAkB,EAAE,YAAY,CAAC;SAClC,CAAC;KACH,CAAC;CACH,iBAiKH;AAWM,wDAHJ;IAAmD,UAAU,UAA/C,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC;CAC1C,oBAAQ,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA3OP,MAAM;+BACF,MAAM;4BACT,MAAM;gCACF,MAAM;;;GAyR7B;AAQK,wGALI,OAAO,qBAAqB,EAAE,sBAAsB,yCAE5D;IAAwB,OAAO;;;CACuB,iBA2DxD;+BAhWY;IACR,OAAO,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;IACzC,QAAQ,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;oCAtBG,YAAY"}
|