@agoric/inter-protocol 0.16.2-other-dev-3eb1a1d.0 → 0.16.2-other-dev-d15096d.0.d15096d

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.
Files changed (158) hide show
  1. package/package.json +36 -35
  2. package/src/auction/auctionBook.d.ts +9 -7
  3. package/src/auction/auctionBook.d.ts.map +1 -1
  4. package/src/auction/auctionBook.js +58 -32
  5. package/src/auction/auctionMath.d.ts +1 -1
  6. package/src/auction/auctionMath.d.ts.map +1 -1
  7. package/src/auction/auctioneer.d.ts +19 -13
  8. package/src/auction/auctioneer.d.ts.map +1 -1
  9. package/src/auction/auctioneer.js +25 -12
  10. package/src/auction/offerBook.d.ts +3 -2
  11. package/src/auction/offerBook.d.ts.map +1 -1
  12. package/src/auction/offerBook.js +5 -1
  13. package/src/auction/params.d.ts +16 -7
  14. package/src/auction/params.d.ts.map +1 -1
  15. package/src/auction/params.js +12 -4
  16. package/src/auction/scheduleMath.d.ts +5 -3
  17. package/src/auction/scheduleMath.d.ts.map +1 -1
  18. package/src/auction/scheduleMath.js +11 -7
  19. package/src/auction/scheduler.d.ts +9 -4
  20. package/src/auction/scheduler.d.ts.map +1 -1
  21. package/src/auction/scheduler.js +14 -6
  22. package/src/auction/util.d.ts +2 -1
  23. package/src/auction/util.d.ts.map +1 -1
  24. package/src/auction/util.js +4 -1
  25. package/src/clientSupport.d.ts +29 -73
  26. package/src/clientSupport.d.ts.map +1 -1
  27. package/src/clientSupport.js +29 -128
  28. package/src/contractSupport.d.ts +2 -2
  29. package/src/contractSupport.d.ts.map +1 -1
  30. package/src/econCommitteeCharter.d.ts +15 -8
  31. package/src/econCommitteeCharter.d.ts.map +1 -1
  32. package/src/econCommitteeCharter.js +14 -8
  33. package/src/feeDistributor.d.ts +43 -49
  34. package/src/feeDistributor.d.ts.map +1 -1
  35. package/src/feeDistributor.js +7 -3
  36. package/src/index.js +1 -1
  37. package/src/interest-math.d.ts +1 -0
  38. package/src/interest-math.d.ts.map +1 -1
  39. package/src/interest-math.js +5 -1
  40. package/src/interest.d.ts +3 -1
  41. package/src/interest.d.ts.map +1 -1
  42. package/src/interest.js +2 -5
  43. package/src/price/README.md +1 -1
  44. package/src/price/fluxAggregatorContract.d.ts +20 -11
  45. package/src/price/fluxAggregatorContract.d.ts.map +1 -1
  46. package/src/price/fluxAggregatorContract.js +17 -9
  47. package/src/price/fluxAggregatorKit.d.ts +15 -9
  48. package/src/price/fluxAggregatorKit.d.ts.map +1 -1
  49. package/src/price/fluxAggregatorKit.js +15 -9
  50. package/src/price/priceOracleKit.d.ts +4 -2
  51. package/src/price/priceOracleKit.d.ts.map +1 -1
  52. package/src/price/priceOracleKit.js +7 -2
  53. package/src/price/roundsManager.d.ts +8 -6
  54. package/src/price/roundsManager.d.ts.map +1 -1
  55. package/src/price/roundsManager.js +5 -2
  56. package/src/proposals/add-auction.js +38 -4
  57. package/src/proposals/addAssetToVault.js +8 -4
  58. package/src/proposals/committee-proposal.js +10 -5
  59. package/src/proposals/core-proposal.js +9 -3
  60. package/src/proposals/deploy-price-feeds.js +35 -7
  61. package/src/proposals/econ-behaviors.js +33 -12
  62. package/src/proposals/price-feed-proposal.js +10 -3
  63. package/src/proposals/replace-fee-distributor.js +12 -6
  64. package/src/proposals/replaceElectorate.js +105 -16
  65. package/src/proposals/startEconCommittee.js +5 -1
  66. package/src/proposals/startPSM.js +7 -4
  67. package/src/proposals/upgrade-vaults.js +15 -5
  68. package/src/proposals/utils.d.ts +8 -4
  69. package/src/proposals/utils.d.ts.map +1 -1
  70. package/src/proposals/utils.js +32 -9
  71. package/src/proposals/withdraw-reserve-proposal.js +63 -0
  72. package/src/provisionPool.d.ts +34 -120
  73. package/src/provisionPool.d.ts.map +1 -1
  74. package/src/provisionPool.js +43 -21
  75. package/src/provisionPoolKit.d.ts +43 -328
  76. package/src/provisionPoolKit.d.ts.map +1 -1
  77. package/src/provisionPoolKit.js +210 -120
  78. package/src/psm/psm.d.ts +20 -13
  79. package/src/psm/psm.d.ts.map +1 -1
  80. package/src/psm/psm.js +18 -12
  81. package/src/reserve/assetReserve.d.ts +18 -6
  82. package/src/reserve/assetReserve.d.ts.map +1 -1
  83. package/src/reserve/assetReserve.js +26 -23
  84. package/src/reserve/assetReserveKit.d.ts +38 -6
  85. package/src/reserve/assetReserveKit.d.ts.map +1 -1
  86. package/src/reserve/assetReserveKit.js +117 -7
  87. package/src/reserve/params.d.ts +9 -3
  88. package/src/reserve/params.d.ts.map +1 -1
  89. package/src/reserve/params.js +8 -2
  90. package/src/vaultFactory/burn.d.ts +1 -1
  91. package/src/vaultFactory/burn.d.ts.map +1 -1
  92. package/src/vaultFactory/burn.js +1 -1
  93. package/src/vaultFactory/liquidation.d.ts +7 -3
  94. package/src/vaultFactory/liquidation.d.ts.map +1 -1
  95. package/src/vaultFactory/liquidation.js +14 -12
  96. package/src/vaultFactory/math.d.ts +1 -1
  97. package/src/vaultFactory/math.d.ts.map +1 -1
  98. package/src/vaultFactory/math.js +1 -1
  99. package/src/vaultFactory/orderedVaultStore.d.ts +21 -20
  100. package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
  101. package/src/vaultFactory/orderedVaultStore.js +4 -2
  102. package/src/vaultFactory/params.d.ts +25 -9
  103. package/src/vaultFactory/params.d.ts.map +1 -1
  104. package/src/vaultFactory/params.js +29 -11
  105. package/src/vaultFactory/prioritizedVaults.d.ts +70 -69
  106. package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
  107. package/src/vaultFactory/prioritizedVaults.js +5 -2
  108. package/src/vaultFactory/storeUtils.d.ts +2 -2
  109. package/src/vaultFactory/storeUtils.d.ts.map +1 -1
  110. package/src/vaultFactory/types-ambient.d.ts +2 -2
  111. package/src/vaultFactory/types-ambient.d.ts.map +1 -1
  112. package/src/vaultFactory/types-ambient.js +6 -2
  113. package/src/vaultFactory/vault.d.ts +34 -30
  114. package/src/vaultFactory/vault.d.ts.map +1 -1
  115. package/src/vaultFactory/vault.js +19 -15
  116. package/src/vaultFactory/vaultDirector.d.ts +81 -63
  117. package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
  118. package/src/vaultFactory/vaultDirector.js +38 -24
  119. package/src/vaultFactory/vaultFactory.d.ts +35 -22
  120. package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
  121. package/src/vaultFactory/vaultFactory.js +27 -17
  122. package/src/vaultFactory/vaultHolder.d.ts +77 -29
  123. package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
  124. package/src/vaultFactory/vaultHolder.js +12 -4
  125. package/src/vaultFactory/vaultKit.d.ts +12 -8
  126. package/src/vaultFactory/vaultKit.d.ts.map +1 -1
  127. package/src/vaultFactory/vaultKit.js +12 -5
  128. package/src/vaultFactory/vaultManager.d.ts +102 -88
  129. package/src/vaultFactory/vaultManager.d.ts.map +1 -1
  130. package/src/vaultFactory/vaultManager.js +86 -53
  131. package/src/proposals/add-auction.d.ts +0 -109
  132. package/src/proposals/add-auction.d.ts.map +0 -1
  133. package/src/proposals/addAssetToVault.d.ts +0 -173
  134. package/src/proposals/addAssetToVault.d.ts.map +0 -1
  135. package/src/proposals/committee-proposal.d.ts +0 -113
  136. package/src/proposals/committee-proposal.d.ts.map +0 -1
  137. package/src/proposals/core-proposal.d.ts +0 -149
  138. package/src/proposals/core-proposal.d.ts.map +0 -1
  139. package/src/proposals/deploy-price-feeds.d.ts +0 -76
  140. package/src/proposals/deploy-price-feeds.d.ts.map +0 -1
  141. package/src/proposals/econ-behaviors.d.ts +0 -541
  142. package/src/proposals/econ-behaviors.d.ts.map +0 -1
  143. package/src/proposals/price-feed-proposal.d.ts +0 -84
  144. package/src/proposals/price-feed-proposal.d.ts.map +0 -1
  145. package/src/proposals/replace-fee-distributor.d.ts +0 -48
  146. package/src/proposals/replace-fee-distributor.d.ts.map +0 -1
  147. package/src/proposals/replace-scaledPriceAuthorities.d.ts +0 -30
  148. package/src/proposals/replace-scaledPriceAuthorities.d.ts.map +0 -1
  149. package/src/proposals/replaceElectorate.d.ts +0 -55
  150. package/src/proposals/replaceElectorate.d.ts.map +0 -1
  151. package/src/proposals/startEconCommittee.d.ts +0 -34
  152. package/src/proposals/startEconCommittee.d.ts.map +0 -1
  153. package/src/proposals/startPSM.d.ts +0 -59
  154. package/src/proposals/startPSM.d.ts.map +0 -1
  155. package/src/proposals/upgrade-scaledPriceAuthorities.d.ts +0 -24
  156. package/src/proposals/upgrade-scaledPriceAuthorities.d.ts.map +0 -1
  157. package/src/proposals/upgrade-vaults.d.ts +0 -41
  158. package/src/proposals/upgrade-vaults.d.ts.map +0 -1
@@ -1,9 +1,17 @@
1
1
  // @ts-check
2
2
 
3
- import { Fail } from '@endo/errors';
4
3
  import { AmountMath } from '@agoric/ertp';
5
- import { assertAllDefined } from '@agoric/internal';
6
- import { parseRatio } from '@agoric/zoe/src/contractSupport/ratio.js';
4
+ import { Fail } from '@endo/errors';
5
+
6
+ /**
7
+ * @import {Amount, Brand, Payment, Purse} from '@agoric/ertp';
8
+ * @import {Proposal} from '@agoric/zoe';
9
+ * @import {AgoricNamesRemotes} from '@agoric/vats/tools/board-utils.js';
10
+ * @import {OfferSpec} from '@agoric/smart-wallet/src/offers.js';
11
+ * @import {CurrentWalletRecord} from '@agoric/smart-wallet/src/smartWallet.js';
12
+ * @import {BoardRemote} from '@agoric/internal/src/marshal/board-client-utils.js';
13
+ * @import {OfferMaker} from '@agoric/smart-wallet/src/types.js';
14
+ */
7
15
 
8
16
  // XXX support other decimal places
9
17
  const COSMOS_UNIT = 1_000_000n;
@@ -15,10 +23,7 @@ const scaleDecimals = num => BigInt(num * Number(COSMOS_UNIT));
15
23
  /**
16
24
  * Give/want
17
25
  *
18
- * @param {Pick<
19
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
20
- * 'brand'
21
- * >} agoricNames
26
+ * @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
22
27
  * @param {{ giveMinted?: number; wantMinted?: number }
23
28
  * | {
24
29
  * collateralBrandKey: string;
@@ -62,17 +67,14 @@ const makeVaultProposal = ({ brand }, opts) => {
62
67
  };
63
68
 
64
69
  /**
65
- * @param {Pick<
66
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
67
- * 'brand'
68
- * >} agoricNames
70
+ * @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
69
71
  * @param {{
70
72
  * offerId: string;
71
73
  * wantMinted: number;
72
74
  * giveCollateral: number;
73
75
  * collateralBrandKey: string;
74
76
  * }} opts
75
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
77
+ * @returns {OfferSpec}
76
78
  */
77
79
  const makeOpenOffer = ({ brand }, opts) => {
78
80
  const proposal = makeVaultProposal({ brand }, opts);
@@ -98,10 +100,7 @@ const makeOpenOffer = ({ brand }, opts) => {
98
100
  };
99
101
 
100
102
  /**
101
- * @param {Pick<
102
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
103
- * 'brand'
104
- * >} agoricNames
103
+ * @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
105
104
  * @param {{
106
105
  * offerId: string;
107
106
  * collateralBrandKey?: string;
@@ -111,7 +110,7 @@ const makeOpenOffer = ({ brand }, opts) => {
111
110
  * wantMinted?: number;
112
111
  * }} opts
113
112
  * @param {string} previousOffer
114
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
113
+ * @returns {OfferSpec}
115
114
  */
116
115
  const makeAdjustOffer = ({ brand }, opts, previousOffer) => {
117
116
  // NB: not really a Proposal because the brands are not remotes
@@ -131,17 +130,14 @@ const makeAdjustOffer = ({ brand }, opts, previousOffer) => {
131
130
  };
132
131
 
133
132
  /**
134
- * @param {Pick<
135
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
136
- * 'brand'
137
- * >} agoricNames
133
+ * @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
138
134
  * @param {{
139
135
  * offerId: string;
140
136
  * collateralBrandKey?: string;
141
137
  * giveMinted: number;
142
138
  * }} opts
143
139
  * @param {string} previousOffer
144
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
140
+ * @returns {OfferSpec}
145
141
  */
146
142
  const makeCloseOffer = ({ brand }, opts, previousOffer) => {
147
143
  const proposal = makeVaultProposal({ brand }, opts);
@@ -159,9 +155,7 @@ const makeCloseOffer = ({ brand }, opts, previousOffer) => {
159
155
 
160
156
  /**
161
157
  * @param {string} vaultId
162
- * @param {Promise<
163
- * import('@agoric/smart-wallet/src/smartWallet.js').CurrentWalletRecord
164
- * >} currentP
158
+ * @param {Promise<CurrentWalletRecord>} currentP
165
159
  * @returns {Promise<string>} offer id in which the vault was made
166
160
  */
167
161
  export const lookupOfferIdForVault = async (vaultId, currentP) => {
@@ -176,10 +170,7 @@ export const lookupOfferIdForVault = async (vaultId, currentP) => {
176
170
  };
177
171
 
178
172
  /**
179
- * @param {Record<
180
- * string,
181
- * import('@agoric/internal/src/marshal.js').BoardRemote
182
- * >} brands
173
+ * @param {Record<string, BoardRemote>} brands
183
174
  * @param {{ wantMinted: number; giveMinted?: undefined }
184
175
  * | { giveMinted: number; wantMinted?: undefined }} opts
185
176
  * @param {number} [fee]
@@ -209,16 +200,13 @@ const makePsmProposal = (brands, opts, fee = 0, anchor = 'AUSD') => {
209
200
  };
210
201
 
211
202
  /**
212
- * @param {Pick<
213
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
214
- * 'brand'
215
- * >} agoricNames
216
- * @param {Instance} instance
203
+ * @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
204
+ * @param {Instance<unknown>} instance
217
205
  * @param {{ offerId: string; feePct?: number; pair: [string, string] } & (
218
206
  * | { wantMinted: number }
219
207
  * | { giveMinted: number }
220
208
  * )} opts
221
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
209
+ * @returns {OfferSpec}
222
210
  */
223
211
  const makePsmSwapOffer = ({ brand }, instance, opts) => {
224
212
  const method =
@@ -249,10 +237,7 @@ const makePsmSwapOffer = ({ brand }, instance, opts) => {
249
237
  };
250
238
 
251
239
  /**
252
- * @param {Pick<
253
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
254
- * 'brand' | 'vbankAsset'
255
- * >} agoricNames
240
+ * @param {Pick<AgoricNamesRemotes, 'brand' | 'vbankAsset'>} agoricNames
256
241
  * @param {(msg: string) => Error} makeError error constructor
257
242
  * @returns {(a: string) => Amount<'nat'>}
258
243
  */
@@ -292,91 +277,13 @@ export const makeParseAmount =
292
277
  };
293
278
 
294
279
  /**
295
- * @param {Pick<
296
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
297
- * 'brand' | 'vbankAsset'
298
- * >} agoricNames
299
- * @param {{
300
- * offerId: string;
301
- * give: string;
302
- * maxBuy: string;
303
- * wantMinimum?: string;
304
- * } & (
305
- * | {
306
- * price: number;
307
- * }
308
- * | {
309
- * discount: number; // -1 to 1. e.g. 0.10 for 10% discount, -0.05 for 5% markup
310
- * }
311
- * )} opts
312
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
313
- */
314
- const makeBidOffer = (agoricNames, opts) => {
315
- assertAllDefined({
316
- offerId: opts.offerId,
317
- give: opts.give,
318
- maxBuy: opts.maxBuy,
319
- });
320
- const parseAmount = makeParseAmount(agoricNames);
321
- const proposal = {
322
- give: { Bid: parseAmount(opts.give) },
323
- ...(opts.wantMinimum
324
- ? { want: { Collateral: parseAmount(opts.wantMinimum) } }
325
- : {}),
326
- };
327
- const istBrand = proposal.give.Bid.brand;
328
- const maxBuy = parseAmount(opts.maxBuy);
329
-
330
- const bounds = (x, lo, hi) => {
331
- assert(x >= lo && x <= hi);
332
- return x;
333
- };
334
-
335
- assert(
336
- 'price' in opts || 'discount' in opts,
337
- 'must specify price or discount',
338
- );
339
- /** @type {import('./auction/auctionBook.js').OfferSpec} */
340
- const offerArgs =
341
- 'price' in opts
342
- ? {
343
- maxBuy: parseAmount(opts.maxBuy),
344
- offerPrice: parseRatio(opts.price, istBrand, maxBuy.brand),
345
- }
346
- : {
347
- maxBuy,
348
- offerBidScaling: parseRatio(
349
- (1 - bounds(opts.discount, -1, 1)).toFixed(2),
350
- istBrand,
351
- istBrand,
352
- ),
353
- };
354
-
355
- /** @type {import('@agoric/smart-wallet/src/offers.js').OfferSpec} */
356
- const offerSpec = {
357
- id: opts.offerId,
358
- invitationSpec: {
359
- source: 'agoricContract',
360
- instancePath: ['auctioneer'],
361
- callPipe: [['makeBidInvitation', [maxBuy.brand]]],
362
- },
363
- proposal,
364
- offerArgs,
365
- };
366
- return offerSpec;
367
- };
368
-
369
- /**
370
- * @param {Pick<
371
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
372
- * 'brand'
373
- * >} agoricNames
280
+ * @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
374
281
  * @param {{
375
282
  * offerId: string;
376
283
  * give: number;
377
284
  * collateralBrandKey: string;
378
285
  * }} opts
379
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
286
+ * @returns {OfferSpec}
380
287
  */
381
288
  const makeAddCollateralOffer = ({ brand }, opts) => {
382
289
  /** @type {AmountKeywordRecord} */
@@ -388,7 +295,7 @@ const makeAddCollateralOffer = ({ brand }, opts) => {
388
295
  ),
389
296
  };
390
297
 
391
- /** @type {import('@agoric/smart-wallet/src/offers.js').OfferSpec} */
298
+ /** @type {OfferSpec} */
392
299
  const offerSpec = {
393
300
  id: opts.offerId,
394
301
  invitationSpec: {
@@ -409,7 +316,7 @@ const makeAddCollateralOffer = ({ brand }, opts) => {
409
316
  * unitPrice: bigint;
410
317
  * }} opts
411
318
  * @param {string} previousOffer
412
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
319
+ * @returns {OfferSpec}
413
320
  */
414
321
  const makePushPriceOffer = (_agoricNames, opts, previousOffer) => {
415
322
  return {
@@ -427,15 +334,9 @@ const makePushPriceOffer = (_agoricNames, opts, previousOffer) => {
427
334
  };
428
335
 
429
336
  /**
430
- * @satisfies {Record<
431
- * string,
432
- * Record<string, import('@agoric/smart-wallet/src/types.js').OfferMaker>
433
- * >}
337
+ * @satisfies {Record<string, Record<string, OfferMaker>>}
434
338
  */
435
339
  export const Offers = {
436
- auction: {
437
- Bid: makeBidOffer,
438
- },
439
340
  fluxAggregator: {
440
341
  PushPrice: makePushPriceOffer,
441
342
  },
@@ -11,11 +11,11 @@ export function subtractToEmpty<T extends Amount>(left: T, right: T): T;
11
11
  export function assertOnlyKeys(proposal: ProposalRecord, keys: string[]): void;
12
12
  export function allEmpty(amounts: Amount[]): boolean;
13
13
  export function checkDebtLimit(debtLimit: Amount<"nat">, totalDebt: Amount<"nat">, toMint: Amount<"nat">): void;
14
- export function makeNatAmountShape(brand: Brand, min?: bigint | undefined): {
14
+ export function makeNatAmountShape(brand: Brand, min?: NatValue): {
15
15
  brand: globalThis.Brand;
16
16
  value: import("@endo/patterns").Matcher;
17
17
  };
18
- export function quoteAsRatio(quoteAmount: Pick<PriceDescription, "amountIn" | "amountOut">): Ratio;
18
+ export function quoteAsRatio(quoteAmount: Pick<PriceDescription, "amountIn" | "amountOut">): import("@agoric/ertp/src/ratio").Ratio;
19
19
  export type MetricsPublisherKit<T> = {
20
20
  metricsPublication: IterationObserver<T>;
21
21
  metricsSubscription: StoredSubscription<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA4BO,4BANe,CAAC,SAAT,MAAO,QACV,CAAC,QACD,CAAC,QACD,CAAC,GACC,CAAC,CAGyC;AAQhD,gCALe,CAAC,SAAT,MAAO,QACV,CAAC,SACD,CAAC,GACC,CAAC,CAK2C;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAUM,0CAPI,MAAM,CAAC,KAAK,CAAC,aACb,MAAM,CAAC,KAAK,CAAC,UACb,MAAM,CAAC,KAAK,CAAC,QAcvB;AAoBM,0CAHI,KAAK;;;EAIsC;AAG/C,0CADK,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,SAEO;gCAtBtD,CAAC;wBAEA,iBAAiB,CAAC,CAAC,CAAC;yBACpB,kBAAkB,CAAC,CAAC,CAAC;;8BAItB,CAAC;sBAEA,SAAS,CAAC,CAAC,CAAC;uBACZ,gBAAgB,CAAC,CAAC,CAAC;;sCAvF6D,4BAA4B"}
1
+ {"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA4BO,4BANe,CAAC,SAAT,MAAO,QACV,CAAC,QACD,CAAC,QACD,CAAC,GACC,CAAC,CAGyC;AAQhD,gCALe,CAAC,SAAT,MAAO,QACV,CAAC,SACD,CAAC,GACC,CAAC,CAK2C;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAUM,0CAPI,MAAM,CAAC,KAAK,CAAC,aACb,MAAM,CAAC,KAAK,CAAC,UACb,MAAM,CAAC,KAAK,CAAC,QAcvB;AAoBM,0CAHI,KAAK,QACL,QAAQ;;;EAGmC;AAG/C,0CADK,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,0CAEO;gCAtBtD,CAAC;wBAEA,iBAAiB,CAAC,CAAC,CAAC;yBACpB,kBAAkB,CAAC,CAAC,CAAC;;8BAItB,CAAC;sBAEA,SAAS,CAAC,CAAC,CAAC;uBACZ,gBAAgB,CAAC,CAAC,CAAC;;sCAvF6D,4BAA4B"}
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @import {MapStore, SetStore} from '@agoric/store';
3
+ * @import {Baggage} from '@agoric/vat-data';
4
+ * @import {TimestampValue} from '@agoric/time';
5
+ */
1
6
  /**
2
7
  * @file This contract makes it possible for those who govern contracts to call
3
8
  * for votes on changes. A more complete implementation would validate
@@ -9,26 +14,26 @@ export const INVITATION_MAKERS_DESC: "charter member invitation";
9
14
  export const meta: ContractMeta<typeof start>;
10
15
  export function start(zcf: ZCF<{
11
16
  binaryVoteCounterInstallation: Installation;
12
- }>, privateArgs: undefined, baggage: import("@agoric/vat-data").Baggage): Promise<{
17
+ }>, privateArgs: undefined, baggage: Baggage): Promise<{
13
18
  creatorFacet: import("@endo/exo").Guarded<{
14
19
  /**
15
- * @param {Instance} governedInstance
20
+ * @param {Instance<unknown>} governedInstance
16
21
  * @param {GovernorCreatorFacet<any>} governorFacet
17
22
  * @param {string} [label] for diagnostic use only
18
23
  */
19
- addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
20
- makeCharterMemberInvitation: () => Promise<Invitation<{
24
+ addInstance: (governedInstance: Instance<unknown>, governorFacet: GovernorCreatorFacet<any>, label?: string) => void;
25
+ makeCharterMemberInvitation: () => Promise<globalThis.Invitation<{
21
26
  invitationMakers: import("@endo/exo").Guarded<{
22
- VoteOnParamChange: () => Promise<Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
23
- VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
24
- VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => Promise<Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
27
+ VoteOnParamChange: () => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
28
+ VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
29
+ VoteOnApiCall: (instance: Instance<unknown>, methodName: string, methodArgs: string[], deadline: TimestampValue) => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
25
30
  }>;
26
31
  }, undefined>>;
27
32
  }>;
28
33
  }>;
29
34
  export type ParamChangesOfferArgs = {
30
35
  deadline: bigint;
31
- instance: Instance;
36
+ instance: Instance<unknown>;
32
37
  params: Record<string, unknown>;
33
38
  /**
34
39
  * paramPath is determined by contract
@@ -37,4 +42,6 @@ export type ParamChangesOfferArgs = {
37
42
  paramPath: unknown;
38
43
  } | undefined;
39
44
  };
45
+ import type { Baggage } from '@agoric/vat-data';
46
+ import type { TimestampValue } from '@agoric/time';
40
47
  //# sourceMappingURL=econCommitteeCharter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAaA;;;;;GAKG;AAEH,iEAAkE;AAoBlE,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAMnC;AAQK,2BAJI,GAAG,CAAC;IAAE,6BAA6B,EAAE,YAAY,CAAA;CAAE,CAAC,eACpD,SAAS,WACT,OAAO,kBAAkB,EAAE,OAAO;;QAsHvC;;;;WAIG;wCAHQ,QAAQ,iBACR,oBAAoB,CAAC,GAAG,CAAC;;;;;0CAxE7B,QAAQ,cACR,MAAM,cACN,MAAM,EAAE,YACR,OAAO,cAAc,EAAE,cAAc;;;;GAkFjD;;cAjKa,MAAM;cACN,QAAQ;YACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;mBACV,OAAO"}
1
+ {"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAaA;;;;GAIG;AAEH;;;;;GAKG;AAEH,qCAAsC,2BAA2B,CAAC;AAoBlE,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAMnC;AAQK,2BAJI,GAAG,CAAC;IAAE,6BAA6B,EAAE,YAAY,CAAA;CAAE,CAAC,eACpD,SAAS,WACT,OAAO;;QAsHZ;;;;WAIG;wCAHQ,QAAQ,CAAC,OAAO,CAAC,iBACjB,oBAAoB,CAAC,GAAG,CAAC,UACzB,MAAM;;;;;0CAzEV,QAAQ,CAAC,OAAO,CAAC,cACjB,MAAM,cACN,MAAM,EAAE,YACR,cAAc;;;;GAkF1B;;cAjKa,MAAM;cACN,QAAQ,CAAC,OAAO,CAAC;YACjB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;mBACV,OAAO;;;6BAlBR,kBAAkB;oCACX,cAAc"}
@@ -1,6 +1,6 @@
1
1
  // @jessie-check
2
- /// <reference types="@agoric/governance/exported" />
3
- /// <reference types="@agoric/zoe/exported" />
2
+ /// <reference types="@agoric/governance/exported.js" />
3
+ /// <reference types="@agoric/zoe/exported.js" />
4
4
 
5
5
  import { M, mustMatch } from '@agoric/store';
6
6
  import { TimestampShape } from '@agoric/time';
@@ -11,6 +11,12 @@ import {
11
11
  } from '@agoric/zoe/src/typeGuards.js';
12
12
  import { E } from '@endo/far';
13
13
 
14
+ /**
15
+ * @import {MapStore, SetStore} from '@agoric/store';
16
+ * @import {Baggage} from '@agoric/vat-data';
17
+ * @import {TimestampValue} from '@agoric/time';
18
+ */
19
+
14
20
  /**
15
21
  * @file This contract makes it possible for those who govern contracts to call
16
22
  * for votes on changes. A more complete implementation would validate
@@ -23,7 +29,7 @@ export const INVITATION_MAKERS_DESC = 'charter member invitation';
23
29
  /**
24
30
  * @typedef {object} ParamChangesOfferArgs
25
31
  * @property {bigint} deadline
26
- * @property {Instance} instance
32
+ * @property {Instance<unknown>} instance
27
33
  * @property {Record<string, unknown>} params
28
34
  * @property {{ paramPath: unknown }} [path] paramPath is determined by contract
29
35
  */
@@ -50,11 +56,11 @@ harden(meta);
50
56
  /**
51
57
  * @param {ZCF<{ binaryVoteCounterInstallation: Installation }>} zcf
52
58
  * @param {undefined} privateArgs
53
- * @param {import('@agoric/vat-data').Baggage} baggage
59
+ * @param {Baggage} baggage
54
60
  */
55
61
  export const start = async (zcf, privateArgs, baggage) => {
56
62
  const { binaryVoteCounterInstallation: counter } = zcf.getTerms();
57
- /** @type {MapStore<Instance, GovernorCreatorFacet<any>>} */
63
+ /** @type {MapStore<Instance<unknown>, GovernorCreatorFacet<any>>} */
58
64
  const instanceToGovernor = provideDurableMapStore(
59
65
  baggage,
60
66
  'instanceToGovernor',
@@ -98,10 +104,10 @@ export const start = async (zcf, privateArgs, baggage) => {
98
104
  };
99
105
 
100
106
  /**
101
- * @param {Instance} instance
107
+ * @param {Instance<unknown>} instance
102
108
  * @param {string} methodName
103
109
  * @param {string[]} methodArgs
104
- * @param {import('@agoric/time').TimestampValue} deadline
110
+ * @param {TimestampValue} deadline
105
111
  */
106
112
  const makeApiInvocationInvitation = (
107
113
  instance,
@@ -169,7 +175,7 @@ export const start = async (zcf, privateArgs, baggage) => {
169
175
  CharterCreatorI,
170
176
  {
171
177
  /**
172
- * @param {Instance} governedInstance
178
+ * @param {Instance<unknown>} governedInstance
173
179
  * @param {GovernorCreatorFacet<any>} governorFacet
174
180
  * @param {string} [label] for diagnostic use only
175
181
  */
@@ -1,12 +1,12 @@
1
1
  /** @type {ContractMeta<typeof start>} */
2
2
  export const meta: ContractMeta<typeof start>;
3
3
  export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>): {
4
- collectFees: () => Promise<globalThis.Payment<any>>;
5
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
6
- collectFees: () => Promise<globalThis.Payment<any>>;
4
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
5
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
6
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
7
7
  }>;
8
- export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: RelativeTime | undefined): void;
9
- export function makeShareConfig(destinations?: Record<string, globalThis.ERef<FeeDestination>> | undefined, keywordShares?: Record<string, bigint> | undefined): {
8
+ export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: RelativeTime): void;
9
+ export function makeShareConfig(destinations?: Record<Keyword, ERef<FeeDestination>>, keywordShares?: Record<Keyword, NatValue>): {
10
10
  shares: {
11
11
  share: bigint;
12
12
  destination: globalThis.ERef<FeeDestination>;
@@ -21,9 +21,9 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
21
21
  }): {
22
22
  creatorFacet: {
23
23
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
24
- collectFees: () => Promise<globalThis.Payment<any>>;
25
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
26
- collectFees: () => Promise<globalThis.Payment<any>>;
24
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
25
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
26
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
27
27
  }>;
28
28
  /**
29
29
  * Start distributing fees from this collector.
@@ -33,13 +33,11 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
33
33
  */
34
34
  startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
35
35
  /**
36
- * @param {import('@endo/far').EOnly<
37
- * import('@agoric/ertp/src/types.js').DepositFacet
38
- * >} depositFacet
36
+ * @param {EOnly<DepositFacet>} depositFacet
39
37
  */
40
- makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
38
+ makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
41
39
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
42
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
40
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
43
41
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
44
42
  }>;
45
43
  /**
@@ -51,20 +49,20 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
51
49
  * @param {PropertyKey} makeInvitationMethod
52
50
  * @param {unknown[]} [args]
53
51
  */
54
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
52
+ makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
55
53
  pushPayment: (payment: any, issuer: any) => Promise<any>;
56
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
54
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
57
55
  pushPayment: (payment: any, issuer: any) => Promise<any>;
58
56
  }>;
59
57
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
60
58
  setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
61
59
  /** @param {Record<Keyword, bigint>} newShares */
62
60
  setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
63
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
61
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
64
62
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
65
- collectFees: () => Promise<globalThis.Payment<any>>;
66
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
67
- collectFees: () => Promise<globalThis.Payment<any>>;
63
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
64
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
65
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
68
66
  }>;
69
67
  /**
70
68
  * Start distributing fees from this collector.
@@ -74,13 +72,11 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
74
72
  */
75
73
  startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
76
74
  /**
77
- * @param {import('@endo/far').EOnly<
78
- * import('@agoric/ertp/src/types.js').DepositFacet
79
- * >} depositFacet
75
+ * @param {EOnly<DepositFacet>} depositFacet
80
76
  */
81
- makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
77
+ makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
82
78
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
83
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
79
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
84
80
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
85
81
  }>;
86
82
  /**
@@ -92,9 +88,9 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
92
88
  * @param {PropertyKey} makeInvitationMethod
93
89
  * @param {unknown[]} [args]
94
90
  */
95
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
91
+ makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
96
92
  pushPayment: (payment: any, issuer: any) => Promise<any>;
97
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
93
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
98
94
  pushPayment: (payment: any, issuer: any) => Promise<any>;
99
95
  }>;
100
96
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
@@ -105,7 +101,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
105
101
  publicFacet: {
106
102
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
107
103
  getKeywordShares: () => Record<string, bigint>;
108
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
104
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
109
105
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
110
106
  getKeywordShares: () => Record<string, bigint>;
111
107
  }>;
@@ -113,9 +109,9 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
113
109
  export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promise<{
114
110
  creatorFacet: {
115
111
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
116
- collectFees: () => Promise<globalThis.Payment<any>>;
117
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
118
- collectFees: () => Promise<globalThis.Payment<any>>;
112
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
113
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
114
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
119
115
  }>;
120
116
  /**
121
117
  * Start distributing fees from this collector.
@@ -125,13 +121,11 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
125
121
  */
126
122
  startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
127
123
  /**
128
- * @param {import('@endo/far').EOnly<
129
- * import('@agoric/ertp/src/types.js').DepositFacet
130
- * >} depositFacet
124
+ * @param {EOnly<DepositFacet>} depositFacet
131
125
  */
132
- makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
126
+ makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
133
127
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
134
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
128
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
135
129
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
136
130
  }>;
137
131
  /**
@@ -143,20 +137,20 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
143
137
  * @param {PropertyKey} makeInvitationMethod
144
138
  * @param {unknown[]} [args]
145
139
  */
146
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
140
+ makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
147
141
  pushPayment: (payment: any, issuer: any) => Promise<any>;
148
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
142
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
149
143
  pushPayment: (payment: any, issuer: any) => Promise<any>;
150
144
  }>;
151
145
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
152
146
  setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
153
147
  /** @param {Record<Keyword, bigint>} newShares */
154
148
  setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
155
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
149
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
156
150
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
157
- collectFees: () => Promise<globalThis.Payment<any>>;
158
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
159
- collectFees: () => Promise<globalThis.Payment<any>>;
151
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
152
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
153
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
160
154
  }>;
161
155
  /**
162
156
  * Start distributing fees from this collector.
@@ -166,13 +160,11 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
166
160
  */
167
161
  startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
168
162
  /**
169
- * @param {import('@endo/far').EOnly<
170
- * import('@agoric/ertp/src/types.js').DepositFacet
171
- * >} depositFacet
163
+ * @param {EOnly<DepositFacet>} depositFacet
172
164
  */
173
- makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
165
+ makeDepositFacetDestination: (depositFacet: EOnly<DepositFacet>) => {
174
166
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
175
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
167
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
176
168
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
177
169
  }>;
178
170
  /**
@@ -184,9 +176,9 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
184
176
  * @param {PropertyKey} makeInvitationMethod
185
177
  * @param {unknown[]} [args]
186
178
  */
187
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
179
+ makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
188
180
  pushPayment: (payment: any, issuer: any) => Promise<any>;
189
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
181
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
190
182
  pushPayment: (payment: any, issuer: any) => Promise<any>;
191
183
  }>;
192
184
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
@@ -197,7 +189,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
197
189
  publicFacet: {
198
190
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
199
191
  getKeywordShares: () => Record<string, bigint>;
200
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
192
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
201
193
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
202
194
  getKeywordShares: () => Record<string, bigint>;
203
195
  }>;
@@ -221,4 +213,6 @@ export type FeeDistributorCreatorFacet = ReturnType<typeof makeFeeDistributor>["
221
213
  export type FeeDistributorPublicFacet = ReturnType<typeof makeFeeDistributor>["publicFacet"];
222
214
  import type { TimerService } from '@agoric/time';
223
215
  import type { RelativeTime } from '@agoric/time';
216
+ import type { DepositFacet } from '@agoric/ertp/src/types.js';
217
+ import type { EOnly } from '@endo/far';
224
218
  //# sourceMappingURL=feeDistributor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"AAWA,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAOnC;AAgCK,8CAHI,IAAI,CAAC,UAAU,CAAC,gBAChB,IAAI,CAAC,wBAAwB,CAA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