@agoric/inter-protocol 0.16.2-dev-d6fae11.0.d6fae11 → 0.16.2-dev-64cee5a.0.64cee5a

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 (88) hide show
  1. package/package.json +16 -16
  2. package/src/auction/auctionBook.d.ts +2 -1
  3. package/src/auction/auctionBook.d.ts.map +1 -1
  4. package/src/auction/auctionBook.js +2 -1
  5. package/src/auction/auctioneer.d.ts +12 -8
  6. package/src/auction/auctioneer.d.ts.map +1 -1
  7. package/src/auction/auctioneer.js +10 -5
  8. package/src/auction/params.d.ts +10 -4
  9. package/src/auction/params.d.ts.map +1 -1
  10. package/src/auction/params.js +6 -3
  11. package/src/auction/scheduleMath.d.ts +5 -3
  12. package/src/auction/scheduleMath.d.ts.map +1 -1
  13. package/src/auction/scheduleMath.js +11 -7
  14. package/src/auction/scheduler.d.ts +8 -3
  15. package/src/auction/scheduler.d.ts.map +1 -1
  16. package/src/auction/scheduler.js +14 -6
  17. package/src/clientSupport.d.ts +2 -2
  18. package/src/clientSupport.d.ts.map +1 -1
  19. package/src/clientSupport.js +1 -1
  20. package/src/econCommitteeCharter.d.ts +9 -5
  21. package/src/econCommitteeCharter.d.ts.map +1 -1
  22. package/src/econCommitteeCharter.js +8 -6
  23. package/src/feeDistributor.d.ts +10 -16
  24. package/src/feeDistributor.d.ts.map +1 -1
  25. package/src/feeDistributor.js +3 -3
  26. package/src/price/fluxAggregatorContract.d.ts +10 -3
  27. package/src/price/fluxAggregatorContract.d.ts.map +1 -1
  28. package/src/price/fluxAggregatorContract.js +8 -4
  29. package/src/price/fluxAggregatorKit.d.ts +10 -6
  30. package/src/price/fluxAggregatorKit.d.ts.map +1 -1
  31. package/src/price/fluxAggregatorKit.js +10 -5
  32. package/src/price/priceOracleKit.d.ts +2 -1
  33. package/src/price/priceOracleKit.d.ts.map +1 -1
  34. package/src/price/priceOracleKit.js +2 -1
  35. package/src/price/roundsManager.d.ts +6 -4
  36. package/src/price/roundsManager.d.ts.map +1 -1
  37. package/src/price/roundsManager.js +4 -2
  38. package/src/proposals/add-auction.js +2 -2
  39. package/src/proposals/addAssetToVault.js +7 -3
  40. package/src/proposals/committee-proposal.js +10 -5
  41. package/src/proposals/core-proposal.js +9 -3
  42. package/src/proposals/deploy-price-feeds.js +7 -4
  43. package/src/proposals/econ-behaviors.js +14 -8
  44. package/src/proposals/price-feed-proposal.js +10 -3
  45. package/src/proposals/replace-fee-distributor.js +7 -4
  46. package/src/proposals/startEconCommittee.js +5 -1
  47. package/src/proposals/startPSM.js +6 -3
  48. package/src/proposals/upgrade-vaults.js +9 -4
  49. package/src/proposals/utils.d.ts +6 -4
  50. package/src/proposals/utils.d.ts.map +1 -1
  51. package/src/proposals/utils.js +8 -8
  52. package/src/proposals/withdraw-reserve-proposal.js +1 -1
  53. package/src/provisionPool.d.ts +12 -4
  54. package/src/provisionPool.d.ts.map +1 -1
  55. package/src/provisionPool.js +7 -5
  56. package/src/provisionPoolKit.d.ts +17 -74
  57. package/src/provisionPoolKit.d.ts.map +1 -1
  58. package/src/provisionPoolKit.js +22 -20
  59. package/src/reserve/assetReserveKit.d.ts +4 -2
  60. package/src/reserve/assetReserveKit.d.ts.map +1 -1
  61. package/src/reserve/assetReserveKit.js +4 -2
  62. package/src/vaultFactory/liquidation.d.ts +5 -3
  63. package/src/vaultFactory/liquidation.d.ts.map +1 -1
  64. package/src/vaultFactory/liquidation.js +9 -7
  65. package/src/vaultFactory/params.d.ts +13 -5
  66. package/src/vaultFactory/params.d.ts.map +1 -1
  67. package/src/vaultFactory/params.js +10 -6
  68. package/src/vaultFactory/prioritizedVaults.d.ts +6 -6
  69. package/src/vaultFactory/types-ambient.d.ts.map +1 -1
  70. package/src/vaultFactory/types-ambient.js +1 -0
  71. package/src/vaultFactory/vault.d.ts +18 -16
  72. package/src/vaultFactory/vault.d.ts.map +1 -1
  73. package/src/vaultFactory/vault.js +13 -11
  74. package/src/vaultFactory/vaultDirector.d.ts +24 -14
  75. package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
  76. package/src/vaultFactory/vaultDirector.js +21 -17
  77. package/src/vaultFactory/vaultFactory.d.ts +14 -50
  78. package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
  79. package/src/vaultFactory/vaultFactory.js +10 -8
  80. package/src/vaultFactory/vaultHolder.d.ts +5 -2
  81. package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
  82. package/src/vaultFactory/vaultHolder.js +6 -3
  83. package/src/vaultFactory/vaultKit.d.ts +3 -1
  84. package/src/vaultFactory/vaultKit.d.ts.map +1 -1
  85. package/src/vaultFactory/vaultKit.js +4 -2
  86. package/src/vaultFactory/vaultManager.d.ts +28 -19
  87. package/src/vaultFactory/vaultManager.d.ts.map +1 -1
  88. package/src/vaultFactory/vaultManager.js +20 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/inter-protocol",
3
- "version": "0.16.2-dev-d6fae11.0.d6fae11",
3
+ "version": "0.16.2-dev-64cee5a.0.64cee5a",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -31,17 +31,17 @@
31
31
  },
32
32
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
33
33
  "dependencies": {
34
- "@agoric/base-zone": "0.1.1-dev-d6fae11.0.d6fae11",
35
- "@agoric/ertp": "0.16.3-dev-d6fae11.0.d6fae11",
36
- "@agoric/governance": "0.10.4-dev-d6fae11.0.d6fae11",
37
- "@agoric/internal": "0.3.3-dev-d6fae11.0.d6fae11",
38
- "@agoric/notifier": "0.6.3-dev-d6fae11.0.d6fae11",
39
- "@agoric/store": "0.9.3-dev-d6fae11.0.d6fae11",
40
- "@agoric/time": "0.3.3-dev-d6fae11.0.d6fae11",
41
- "@agoric/vat-data": "0.5.3-dev-d6fae11.0.d6fae11",
42
- "@agoric/vats": "0.15.2-dev-d6fae11.0.d6fae11",
43
- "@agoric/zoe": "0.26.3-dev-d6fae11.0.d6fae11",
44
- "@agoric/zone": "0.2.3-dev-d6fae11.0.d6fae11",
34
+ "@agoric/base-zone": "0.1.1-dev-64cee5a.0.64cee5a",
35
+ "@agoric/ertp": "0.16.3-dev-64cee5a.0.64cee5a",
36
+ "@agoric/governance": "0.10.4-dev-64cee5a.0.64cee5a",
37
+ "@agoric/internal": "0.3.3-dev-64cee5a.0.64cee5a",
38
+ "@agoric/notifier": "0.6.3-dev-64cee5a.0.64cee5a",
39
+ "@agoric/store": "0.9.3-dev-64cee5a.0.64cee5a",
40
+ "@agoric/time": "0.3.3-dev-64cee5a.0.64cee5a",
41
+ "@agoric/vat-data": "0.5.3-dev-64cee5a.0.64cee5a",
42
+ "@agoric/vats": "0.15.2-dev-64cee5a.0.64cee5a",
43
+ "@agoric/zoe": "0.26.3-dev-64cee5a.0.64cee5a",
44
+ "@agoric/zone": "0.2.3-dev-64cee5a.0.64cee5a",
45
45
  "@endo/captp": "^4.4.8",
46
46
  "@endo/errors": "^1.2.13",
47
47
  "@endo/eventual-send": "^1.3.4",
@@ -52,9 +52,9 @@
52
52
  "jessie.js": "^0.3.4"
53
53
  },
54
54
  "devDependencies": {
55
- "@agoric/smart-wallet": "0.5.4-dev-d6fae11.0.d6fae11",
56
- "@agoric/swingset-liveslots": "0.10.3-dev-d6fae11.0.d6fae11",
57
- "@agoric/swingset-vat": "0.32.3-dev-d6fae11.0.d6fae11",
55
+ "@agoric/smart-wallet": "0.5.4-dev-64cee5a.0.64cee5a",
56
+ "@agoric/swingset-liveslots": "0.10.3-dev-64cee5a.0.64cee5a",
57
+ "@agoric/swingset-vat": "0.32.3-dev-64cee5a.0.64cee5a",
58
58
  "@endo/bundle-source": "^4.1.2",
59
59
  "@endo/init": "^1.1.12",
60
60
  "@endo/promise-kit": "^1.1.13",
@@ -85,5 +85,5 @@
85
85
  "typeCoverage": {
86
86
  "atLeast": 95.65
87
87
  },
88
- "gitHead": "d6fae11a6db28b1122089468183eccd4d47b83c9"
88
+ "gitHead": "64cee5ae5d1a3488a30ce042d6f3f561ac2a6e82"
89
89
  }
@@ -1,5 +1,5 @@
1
1
  export function makeOfferSpecShape(bidBrand: Brand<"nat">, collateralBrand: Brand<"nat">): import("@endo/patterns").Matcher;
2
- export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit: import("@agoric/zoe/src/contractSupport/recorder.js").MakeRecorderKit): (bidBrand: globalThis.Brand<"nat">, collateralBrand: globalThis.Brand<"nat">, pAuthority: PriceAuthority, node: Remote<globalThis.StorageNode>) => ReturnType<(bidBrand: globalThis.Brand<"nat">, collateralBrand: globalThis.Brand<"nat">, pAuthority: PriceAuthority, node: Remote<globalThis.StorageNode>) => import("@endo/exo").GuardedKit<{
2
+ export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit: MakeRecorderKit): (bidBrand: globalThis.Brand<"nat">, collateralBrand: globalThis.Brand<"nat">, pAuthority: PriceAuthority, node: Remote<globalThis.StorageNode>) => ReturnType<(bidBrand: globalThis.Brand<"nat">, collateralBrand: globalThis.Brand<"nat">, pAuthority: PriceAuthority, node: Remote<globalThis.StorageNode>) => import("@endo/exo").GuardedKit<{
3
3
  helper: {
4
4
  /**
5
5
  * remove the key from the appropriate book, indicated by whether the
@@ -142,6 +142,7 @@ export type BookDataNotification = {
142
142
  };
143
143
  export type AuctionBook = EReturn<EReturn<typeof prepareAuctionBook>>;
144
144
  import type { Baggage } from '@agoric/vat-data';
145
+ import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
145
146
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
146
147
  import type { Remote } from '@agoric/internal';
147
148
  import type { EReturn } from '@endo/far';
@@ -1 +1 @@
1
- {"version":3,"file":"auctionBook.d.ts","sourceRoot":"","sources":["auctionBook.js"],"names":[],"mappings":"AA+EO,6CAHI,KAAK,CAAC,KAAK,CAAC,mBACZ,KAAK,CAAC,KAAK,CAAC,oCAiBtB;AAwBM,4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B,CACJ;;;;;gBAyBQ,KAAK,GAAG,IAAI;;;;;uBACZ,KAAK,GAAG,IAAI;;;;;uBAEZ,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI;;;;;2BAEpB,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI;;;;;oBAEpB,MAAM,CAAC,KAAK,CAAC,GAAG,SAAS;;;;;qBAEzB,MAAM,CAAC,KAAK,CAAC;;;;;yBAEb,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI;;0BA4qBpB,QAAQ,QAAQ,OAAO,kBAAkB,CAAC,CAAC;6BA3vB/B,kBAAkB;qCAGV,6CAA6C;oCAF9C,4BAA4B;4BACtB,kBAAkB;6BAH/B,WAAW"}
@@ -32,6 +32,7 @@ import {
32
32
  * @import {Baggage} from '@agoric/vat-data';
33
33
  * @import {PriceAuthority} from '@agoric/zoe/tools/types.js';
34
34
  * @import {TypedPattern, Remote} from '@agoric/internal';
35
+ * @import {MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
35
36
  */
36
37
 
37
38
  const { makeEmpty } = AmountMath;
@@ -114,7 +115,7 @@ export const makeOfferSpecShape = (bidBrand, collateralBrand) => {
114
115
  /**
115
116
  * @param {Baggage} baggage
116
117
  * @param {ZCF} zcf
117
- * @param {import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit} makeRecorderKit
118
+ * @param {MakeRecorderKit} makeRecorderKit
118
119
  */
119
120
  export const prepareAuctionBook = (baggage, zcf, makeRecorderKit) => {
120
121
  const makeScaledBidBook = prepareScaledBidBook(baggage);
@@ -4,7 +4,7 @@ export function distributeProportionalSharesWithLimits(unsoldCollateral: Amount<
4
4
  goal: Amount<"nat">;
5
5
  }[], collateralSeat: ZCFSeat, bidHoldingSeat: ZCFSeat, collateralKeyword: string, reserveSeat: ZCFSeat, brand: Brand): globalThis.TransferPart[];
6
6
  export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
7
- timerService: import("@agoric/time").TimerService;
7
+ timerService: TimerService;
8
8
  reservePublicFacet: AssetReservePublicFacet;
9
9
  priceAuthority: PriceAuthority;
10
10
  }>, privateArgs: {
@@ -22,17 +22,17 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
22
22
  getAuctionStartDelay: () => RelativeTime;
23
23
  getPriceLockPeriod: () => RelativeTime;
24
24
  /** @param {Brand<'nat'>} collateralBrand */
25
- makeBidInvitation(collateralBrand: Brand<"nat">): Promise<globalThis.Invitation<string, import("./auctionBook.js").OfferSpec>>;
25
+ makeBidInvitation(collateralBrand: Brand<"nat">): Promise<globalThis.Invitation<string, OfferSpec>>;
26
26
  getSchedules(): {
27
27
  liveAuctionSchedule: import("./scheduler.js").Schedule | null;
28
28
  nextAuctionSchedule: import("./scheduler.js").Schedule | null;
29
29
  };
30
- getScheduleUpdates(): globalThis.Subscriber<import("./scheduler.js").ScheduleNotification>;
30
+ getScheduleUpdates(): globalThis.Subscriber<ScheduleNotification>;
31
31
  getBookDataUpdates(brand: any): globalThis.Subscriber<import("./auctionBook.js").BookDataNotification>;
32
32
  getPublicTopics(brand: any): {
33
33
  bookData: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./auctionBook.js").BookDataNotification>;
34
34
  } | {
35
- schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./scheduler.js").ScheduleNotification>;
35
+ schedule: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<ScheduleNotification>;
36
36
  };
37
37
  makeDepositInvitation: () => Promise<globalThis.Invitation<string, {
38
38
  goal: Amount<"nat">;
@@ -44,16 +44,16 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
44
44
  * @param {Keyword} kwd
45
45
  */
46
46
  addBrand(issuer: Issuer<"nat">, kwd: Keyword): Promise<void>;
47
- /** @returns {Promise<import('./scheduler.js').FullSchedule>} */
48
- getSchedule(): Promise<import("./scheduler.js").FullSchedule>;
47
+ /** @returns {Promise<FullSchedule>} */
48
+ getSchedule(): Promise<FullSchedule>;
49
49
  } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
50
50
  /**
51
51
  * @param {Issuer<'nat'>} issuer
52
52
  * @param {Keyword} kwd
53
53
  */
54
54
  addBrand(issuer: Issuer<"nat">, kwd: Keyword): Promise<void>;
55
- /** @returns {Promise<import('./scheduler.js').FullSchedule>} */
56
- getSchedule(): Promise<import("./scheduler.js").FullSchedule>;
55
+ /** @returns {Promise<FullSchedule>} */
56
+ getSchedule(): Promise<FullSchedule>;
57
57
  }>>;
58
58
  }>;
59
59
  /** @typedef {ContractOf<typeof start>} AuctioneerContract */
@@ -64,8 +64,12 @@ export type AuctioneerContract = ContractOf<typeof start>;
64
64
  export type AuctioneerPublicFacet = AuctioneerContract["publicFacet"];
65
65
  export type AuctioneerCreatorFacet = AuctioneerContract["creatorFacet"];
66
66
  import { auctioneerParamTypes } from './params.js';
67
+ import type { TimerService } from '@agoric/time';
67
68
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
68
69
  import type { Remote } from '@agoric/internal';
69
70
  import type { Baggage } from '@agoric/vat-data';
71
+ import type { OfferSpec } from './auctionBook.js';
72
+ import type { ScheduleNotification } from './scheduler.js';
73
+ import type { FullSchedule } from './scheduler.js';
70
74
  import type { ContractOf } from '@agoric/zoe/src/zoeService/utils.js';
71
75
  //# sourceMappingURL=auctioneer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"AAqLO,yEAXI,MAAM,CAAC,KAAK,CAAC,YACb,MAAM,CAAC,KAAK,CAAC,YACb;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;CAAE,EAAE,kBAC/D,OAAO,kBACP,OAAO,qBAEP,MAAM,eAEN,OAAO,SACP,KA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E,EAAE,kBAC/D,OAAO,kBACP,OAAO,qBAEP,MAAM,eAEN,OAAO,SACP,KAAK,6BAgNf;AAiBM,2BAdI,GAAG,CACT,eAAe,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAC7C,YAAY,EAAE,YAAY,CAAC;IAC3B,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,cAAc,EAAE,cAAc,CAAC;CAChC,CACF,eACO;IACN,sBAAsB,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;CAChC,WACO,OAAO;;;;;;;;;;QAyOZ,4CAA4C;2CAAhC,KAAK,CAAC,KAAK,CAAC;;;;;;;;;;;;;kBApCT,MAAM,CAAC,KAAK,CAAC;;;;QAkG5B;;;WAGG;yBAFQ,MAAM,CAAC,KAAK,CAAC,OACb,OAAO;QAyBlB,uCAAuC;uBAAzB,OAAO,CAAC,YAAY,CAAC;;QA3BnC;;;WAGG;yBAFQ,MAAM,CAAC,KAAK,CAAC,OACb,OAAO;QAyBlB,uCAAuC;uBAAzB,OAAO,CAAC,YAAY,CAAC;;GAQxC;AAED,6DAA6D;AAC7D,yEAAyE;AACzE,2EAA2E;AAE3E,8DAAkE;iCAJpD,WAAW,OAAO,KAAK,CAAC;oCACxB,kBAAkB,CAAC,aAAa,CAAC;qCACjC,kBAAkB,CAAC,cAAc,CAAC;qCApsBX,aAAa;kCAUnB,cAAc;oCADgD,4BAA4B;4BAJlF,kBAAkB;6BAE/B,kBAAkB;+BAMhB,kBAAkB;0CADP,gBAAgB;kCAExB,gBAAgB;gCANlB,qCAAqC"}
@@ -41,6 +41,11 @@ import { AuctionState } from './util.js';
41
41
  * @import {Baggage} from '@agoric/vat-data';
42
42
  * @import {ContractOf} from '@agoric/zoe/src/zoeService/utils.js';
43
43
  * @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
44
+ * @import {TimerService} from '@agoric/time';
45
+ * @import {AuctionBook} from './auctionBook.js';
46
+ * @import {ScheduleNotification} from './scheduler.js';
47
+ * @import {OfferSpec} from './auctionBook.js';
48
+ * @import {FullSchedule} from './scheduler.js';
44
49
  */
45
50
 
46
51
  const BASIS_POINTS = 10_000n;
@@ -390,7 +395,7 @@ export const distributeProportionalSharesWithLimits = (
390
395
  /**
391
396
  * @param {ZCF<
392
397
  * GovernanceTerms<typeof auctioneerParamTypes> & {
393
- * timerService: import('@agoric/time').TimerService;
398
+ * timerService: TimerService;
394
399
  * reservePublicFacet: AssetReservePublicFacet;
395
400
  * priceAuthority: PriceAuthority;
396
401
  * }
@@ -409,7 +414,7 @@ export const start = async (zcf, privateArgs, baggage) => {
409
414
 
410
415
  const bidAmountShape = { brand: brands.Bid, value: M.nat() };
411
416
 
412
- /** @type {MapStore<Brand, import('./auctionBook.js').AuctionBook>} */
417
+ /** @type {MapStore<Brand, AuctionBook>} */
413
418
  const books = provideDurableMapStore(baggage, 'auctionBooks');
414
419
  /**
415
420
  * @type {MapStore<
@@ -449,7 +454,7 @@ export const start = async (zcf, privateArgs, baggage) => {
449
454
  const scheduleKit = makeERecorderKit(
450
455
  E(privateArgs.storageNode).makeChildNode('schedule'),
451
456
  /**
452
- * @type {TypedPattern<import('./scheduler.js').ScheduleNotification>}
457
+ * @type {TypedPattern<ScheduleNotification>}
453
458
  */ (M.any()),
454
459
  );
455
460
 
@@ -641,7 +646,7 @@ export const start = async (zcf, privateArgs, baggage) => {
641
646
  const offerSpecShape = makeOfferSpecShape(brands.Bid, collateralBrand);
642
647
  /**
643
648
  * @param {ZCFSeat} zcfSeat
644
- * @param {import('./auctionBook.js').OfferSpec} offerSpec
649
+ * @param {OfferSpec} offerSpec
645
650
  */
646
651
  const newBidHandler = (zcfSeat, offerSpec) => {
647
652
  // xxx consider having Zoe guard the offerArgs with a provided shape
@@ -722,7 +727,7 @@ export const start = async (zcf, privateArgs, baggage) => {
722
727
  books.init(brand, newBook);
723
728
  brandToKeyword.init(brand, kwd);
724
729
  },
725
- /** @returns {Promise<import('./scheduler.js').FullSchedule>} */
730
+ /** @returns {Promise<FullSchedule>} */
726
731
  getSchedule() {
727
732
  return E(scheduler).getSchedule();
728
733
  },
@@ -3,6 +3,9 @@
3
3
  * @import {SyncSpecTuple} from '@agoric/governance/src/contractGovernance/typedParamManager.js';
4
4
  * @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
5
5
  * @import {Remote} from '@agoric/internal';
6
+ * @import {TimerBrand} from '@agoric/time';
7
+ * @import {StoredPublisherKit} from '@agoric/notifier';
8
+ * @import {TimerService} from '@agoric/time';
6
9
  */
7
10
  export const InvitationShape: import("@endo/patterns").Matcher;
8
11
  /**
@@ -72,7 +75,7 @@ export function makeAuctioneerParams({ ElectorateInvitationAmount, StartFrequenc
72
75
  value: bigint;
73
76
  };
74
77
  };
75
- export function makeAuctioneerParamManager(publisherKit: import("@agoric/notifier").StoredPublisherKit<GovernanceSubscriptionState>, zcf: ZCF, initial: AuctionParams): import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
78
+ export function makeAuctioneerParamManager(publisherKit: StoredPublisherKit<GovernanceSubscriptionState>, zcf: ZCF, initial: AuctionParams): import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
76
79
  Electorate: "invitation";
77
80
  StartFrequency: "relativeTime";
78
81
  ClockStep: "relativeTime";
@@ -85,7 +88,7 @@ export function makeAuctioneerParamManager(publisherKit: import("@agoric/notifie
85
88
  export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _marshaller }: {
86
89
  storageNode: Remote<StorageNode>;
87
90
  marshaller: Remote<Marshaller>;
88
- }, timer: ERef<import("@agoric/time").TimerService>, priceAuthority: ERef<PriceAuthority>, reservePublicFacet: ERef<AssetReservePublicFacet>, params: AuctionParams): {
91
+ }, timer: ERef<TimerService>, priceAuthority: ERef<PriceAuthority>, reservePublicFacet: ERef<AssetReservePublicFacet>, params: AuctionParams): {
89
92
  priceAuthority: globalThis.ERef<PriceAuthority>;
90
93
  reservePublicFacet: globalThis.ERef<globalThis.GovernedPublicFacet<import("@endo/exo").Guarded<{
91
94
  makeAddCollateralInvitation(): Promise<globalThis.Invitation<string, never>>;
@@ -93,7 +96,7 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
93
96
  metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("../reserve/assetReserveKit").MetricsNotification>;
94
97
  };
95
98
  }>>>;
96
- timerService: globalThis.ERef<import("@agoric/time").TimerService>;
99
+ timerService: globalThis.ERef<TimerService>;
97
100
  governedParams: {
98
101
  Electorate: {
99
102
  type: "invitation";
@@ -138,10 +141,13 @@ export type AuctionParams = {
138
141
  DiscountStep: bigint;
139
142
  AuctionStartDelay: RelativeTime;
140
143
  PriceLockPeriod: RelativeTime;
141
- TimerBrand: import("@agoric/time").TimerBrand;
144
+ TimerBrand: TimerBrand;
142
145
  };
143
146
  export type AuctionParamRecord = ReturnType<typeof makeAuctioneerParams>;
144
147
  export type AuctionParamManager = ReturnType<typeof makeAuctioneerParamManager>;
148
+ import type { StoredPublisherKit } from '@agoric/notifier';
145
149
  import type { Remote } from '@agoric/internal';
150
+ import type { TimerService } from '@agoric/time';
146
151
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
152
+ import type { TimerBrand } from '@agoric/time';
147
153
  //# sourceMappingURL=params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AAGH,+DAAyD;AAEzD;;;;;;GAMG;AACH,8BAA+B,gBAAgB,CAAC;AAChD,gDAAgD;AAChD,yBAA0B,WAAW,CAAC;AACtC,iFAAiF;AACjF,+BAAgC,cAAc,CAAC;AAC/C,4DAA4D;AAC5D,6BAA8B,YAAY,CAAC;AAC3C,4EAA4E;AAC5E,+BAAgC,cAAc,C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;;;;;;;;;AA2BI,yLADK,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCxB;AAQM,yDAJI,mBAAmB,2BAA2B,CAAC,OAC/C,GAAG,WACH,aAAa;;;;;;;;;GA0BvB;AAcM,0FATI;IACN,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;CAChC,SACO,IAAI,CAAC,YAAY,CAAC,kBAClB,IAAI,CAAC,cAAc,CAAC,sBACpB,IAAI,CAAC,uBAAuB,CAAC,UAC7B,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBvB;;gCA5Ga,MAAM,CAAC,KAAK,CAAC;oBACb,YAAY;eACZ,YAAY;kBACZ,MAAM;gBACN,MAAM;kBACN,MAAM;uBACN,YAAY;qBACZ,YAAY;gBACZ,UAAU;;iCA0EV,UAAU,CAAC,OAAO,oBAAoB,CAAC;kCA6BvC,UAAU,CAAC,OAAO,0BAA0B,CAAC;wCAxKtB,kBAAkB;4BAF9B,kBAAkB;kCAGZ,cAAc;oCAJgD,4BAA4B;gCAE5F,cAAc"}
@@ -11,6 +11,9 @@ import { M } from '@agoric/store';
11
11
  * @import {SyncSpecTuple} from '@agoric/governance/src/contractGovernance/typedParamManager.js';
12
12
  * @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
13
13
  * @import {Remote} from '@agoric/internal';
14
+ * @import {TimerBrand} from '@agoric/time';
15
+ * @import {StoredPublisherKit} from '@agoric/notifier';
16
+ * @import {TimerService} from '@agoric/time';
14
17
  */
15
18
 
16
19
  // TODO duplicated with zoe/src/TypeGuards.js
@@ -74,7 +77,7 @@ export const auctioneerParamTypes = harden({
74
77
  * @property {bigint} DiscountStep
75
78
  * @property {RelativeTime} AuctionStartDelay
76
79
  * @property {RelativeTime} PriceLockPeriod
77
- * @property {import('@agoric/time').TimerBrand} TimerBrand
80
+ * @property {TimerBrand} TimerBrand
78
81
  */
79
82
 
80
83
  /** @param {AuctionParams} initial */
@@ -118,7 +121,7 @@ export const makeAuctioneerParams = ({
118
121
  harden(makeAuctioneerParams);
119
122
 
120
123
  /**
121
- * @param {import('@agoric/notifier').StoredPublisherKit<GovernanceSubscriptionState>} publisherKit
124
+ * @param {StoredPublisherKit<GovernanceSubscriptionState>} publisherKit
122
125
  * @param {ZCF} zcf
123
126
  * @param {AuctionParams} initial
124
127
  */
@@ -155,7 +158,7 @@ harden(makeAuctioneerParamManager);
155
158
  * storageNode: Remote<StorageNode>;
156
159
  * marshaller: Remote<Marshaller>;
157
160
  * }} caps
158
- * @param {ERef<import('@agoric/time').TimerService>} timer
161
+ * @param {ERef<TimerService>} timer
159
162
  * @param {ERef<PriceAuthority>} priceAuthority
160
163
  * @param {ERef<AssetReservePublicFacet>} reservePublicFacet
161
164
  * @param {AuctionParams} params
@@ -1,5 +1,7 @@
1
- export function computeRoundTiming(params: Awaited<import("./params.js").AuctionParamManager>, baseTime: TimestampRecord): import("./scheduler.js").Schedule;
2
- export function nextDescendingStepTime(liveSchedule: import("./scheduler.js").Schedule | null, nextSchedule: import("./scheduler.js").Schedule | null, now: Timestamp): Timestamp | null;
3
- export function timeVsSchedule(time: Timestamp, schedule: import("./scheduler.js").Schedule): "before" | "during" | "endExactly" | "after";
1
+ export function computeRoundTiming(params: Awaited<AuctionParamManager>, baseTime: TimestampRecord): Schedule;
2
+ export function nextDescendingStepTime(liveSchedule: Schedule | null, nextSchedule: Schedule | null, now: Timestamp): Timestamp | null;
3
+ export function timeVsSchedule(time: Timestamp, schedule: Schedule): "before" | "during" | "endExactly" | "after";
4
+ import type { AuctionParamManager } from './params.js';
4
5
  import type { TimestampRecord } from '@agoric/time';
6
+ import type { Schedule } from './scheduler.js';
5
7
  //# sourceMappingURL=scheduleMath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scheduleMath.d.ts","sourceRoot":"","sources":["scheduleMath.js"],"names":[],"mappings":"AA0CO,2CAJI,OAAO,CAAC,OAAO,aAAa,EAAE,mBAAmB,CAAC,YAClD,eAAe,GACb,OAAO,gBAAgB,EAAE,QAAQ,CAqE7C;AAcM,qDALI,OAAO,gBAAgB,EAAE,QAAQ,GAAG,IAAI,gBACxC,OAAO,gBAAgB,EAAE,QAAQ,GAAG,IAAI,OACxC,SAAS,GACP,SAAS,GAAG,IAAI,CAuB5B;AAQM,qCAJI,SAAS,YACT,OAAO,gBAAgB,EAAE,QAAQ,GAC/B,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,CAiBxD;qCAhKkC,cAAc"}
1
+ {"version":3,"file":"scheduleMath.d.ts","sourceRoot":"","sources":["scheduleMath.js"],"names":[],"mappings":"AA8CO,2CAJI,OAAO,CAAC,mBAAmB,CAAC,YAC5B,eAAe,GACb,QAAQ,CAqEpB;AAcM,qDALI,QAAQ,GAAG,IAAI,gBACf,QAAQ,GAAG,IAAI,OACf,SAAS,GACP,SAAS,GAAG,IAAI,CAuB5B;AAQM,qCAJI,SAAS,YACT,QAAQ,GACN,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,CAiBxD;yCAlKqC,aAAa;qCADjB,cAAc;8BAErB,gBAAgB"}
@@ -5,7 +5,11 @@ import { TimeMath } from '@agoric/time';
5
5
  import { natSafeMath } from '@agoric/zoe/src/contractSupport/index.js';
6
6
  import { assertAllDefined, makeTracer } from '@agoric/internal';
7
7
 
8
- /** @import {TimestampRecord} from '@agoric/time'; */
8
+ /**
9
+ * @import {TimestampRecord} from '@agoric/time';
10
+ * @import {AuctionParamManager} from './params.js';
11
+ * @import {Schedule} from './scheduler.js';
12
+ */
9
13
 
10
14
  const { subtract, multiply, floorDivide } = natSafeMath;
11
15
 
@@ -36,9 +40,9 @@ const subtract1 = relTime =>
36
40
  * selling early (e.g. reaching their target debt to raise or selling all of
37
41
  * their collateral).
38
42
  *
39
- * @param {Awaited<import('./params.js').AuctionParamManager>} params
43
+ * @param {Awaited<AuctionParamManager>} params
40
44
  * @param {TimestampRecord} baseTime
41
- * @returns {import('./scheduler.js').Schedule}
45
+ * @returns {Schedule}
42
46
  */
43
47
  export const computeRoundTiming = (params, baseTime) => {
44
48
  const freq = params.getStartFrequency();
@@ -96,7 +100,7 @@ export const computeRoundTiming = (params, baseTime) => {
96
100
  const endTime = TimeMath.addAbsRel(startTime, actualDuration);
97
101
  const lockTime = TimeMath.subtractAbsRel(startTime, lockPeriod);
98
102
 
99
- /** @type {import('./scheduler.js').Schedule} */
103
+ /** @type {Schedule} */
100
104
  const next = {
101
105
  startTime,
102
106
  endTime,
@@ -116,8 +120,8 @@ harden(computeRoundTiming);
116
120
  * started, then it'll be nextSchedule.startTime. Otherwise, it's the start of
117
121
  * the step following the current step.
118
122
  *
119
- * @param {import('./scheduler.js').Schedule | null} liveSchedule
120
- * @param {import('./scheduler.js').Schedule | null} nextSchedule
123
+ * @param {Schedule | null} liveSchedule
124
+ * @param {Schedule | null} nextSchedule
121
125
  * @param {Timestamp} now
122
126
  * @returns {Timestamp | null}
123
127
  */
@@ -147,7 +151,7 @@ harden(nextDescendingStepTime);
147
151
 
148
152
  /**
149
153
  * @param {Timestamp} time
150
- * @param {import('./scheduler.js').Schedule} schedule
154
+ * @param {Schedule} schedule
151
155
  * @returns {'before' | 'during' | 'endExactly' | 'after'}
152
156
  */
153
157
  export const timeVsSchedule = (time, schedule) => {
@@ -1,4 +1,4 @@
1
- export function makeScheduler(auctionDriver: AuctionDriver, timer: import("@agoric/time").TimerService, params: Awaited<import("./params.js").AuctionParamManager>, timerBrand: import("@agoric/time").TimerBrand, scheduleRecorder: import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<ScheduleNotification>, paramUpdateSubscription: StoredSubscription<GovernanceSubscriptionState>): Promise<{
1
+ export function makeScheduler(auctionDriver: AuctionDriver, timer: TimerService, params: Awaited<AuctionParamManager>, timerBrand: TimerBrand, scheduleRecorder: Recorder<ScheduleNotification>, paramUpdateSubscription: StoredSubscription<GovernanceSubscriptionState>): Promise<{
2
2
  getSchedule: () => {
3
3
  liveAuctionSchedule: Schedule | null;
4
4
  nextAuctionSchedule: Schedule | null;
@@ -34,8 +34,8 @@ export type ScheduleNotification = {
34
34
  nextDescendingStepTime: Timestamp | null;
35
35
  };
36
36
  export type Schedule = {
37
- startTime: import("@agoric/time").TimestampRecord;
38
- endTime: import("@agoric/time").TimestampRecord;
37
+ startTime: TimestampRecord;
38
+ endTime: TimestampRecord;
39
39
  steps: NatValue;
40
40
  endRate: NatValue;
41
41
  startDelay: RelativeTime;
@@ -46,5 +46,10 @@ export type FullSchedule = {
46
46
  nextAuctionSchedule: Schedule | null;
47
47
  liveAuctionSchedule: Schedule | null;
48
48
  };
49
+ import type { TimerService } from '@agoric/time';
50
+ import type { AuctionParamManager } from './params.js';
51
+ import type { TimerBrand } from '@agoric/time';
52
+ import type { Recorder } from '@agoric/zoe/src/contractSupport/recorder.js';
49
53
  import { AuctionState } from './util.js';
54
+ import type { TimestampRecord } from '@agoric/time';
50
55
  //# sourceMappingURL=scheduler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["scheduler.js"],"names":[],"mappings":"AA8EO,6CAPI,aAAa,SACb,OAAO,cAAc,EAAE,YAAY,UACnC,OAAO,CAAC,OAAO,aAAa,EAAE,mBAAmB,CAAC,cAClD,OAAO,cAAc,EAAE,UAAU,oBACjC,OAAO,6CAA6C,EAAE,QAAQ,CAAC,oBAAoB,CAAC,2BACpF,kBAAkB,CAAC,2BAA2B,CAAC;;;;;;;;;;;;IA0RzD;;yBA3Ta,MAAM,IAAI;cACV,MAAM,IAAI;gBACV,MAAM,IAAI;mBACV,MAAM,IAAI;;;;;;;qBAKV,SAAS,GAAG,IAAI;;;;mBAEhB,SAAS,GAAG,IAAI;;;;;4BAChB,SAAS,GAAG,IAAI;;;eAoThB,OAAO,cAAc,EAAE,eAAe;aACtC,OAAO,cAAc,EAAE,eAAe;WACtC,QAAQ;aACR,QAAQ;gBACR,YAAY;eACZ,YAAY;;;;yBAMZ,QAAQ,GAAG,IAAI;yBACf,QAAQ,GAAG,IAAI;;6BA/WsB,WAAW"}
1
+ {"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["scheduler.js"],"names":[],"mappings":"AAsFO,6CAPI,aAAa,SACb,YAAY,UACZ,OAAO,CAAC,mBAAmB,CAAC,cAC5B,UAAU,oBACV,SAAS,oBAAoB,CAAC,2BAC9B,kBAAkB,CAAC,2BAA2B,CAAC;;;;;;;;;;;;IA0RzD;;yBA3Ta,MAAM,IAAI;cACV,MAAM,IAAI;gBACV,MAAM,IAAI;mBACV,MAAM,IAAI;;;;;;;qBAKV,SAAS,GAAG,IAAI;;;;mBAEhB,SAAS,GAAG,IAAI;;;;;4BAChB,SAAS,GAAG,IAAI;;;eAoThB,eAAe;aACf,eAAe;WACf,QAAQ;aACR,QAAQ;gBACR,YAAY;eACZ,YAAY;;;;yBAMZ,QAAQ,GAAG,IAAI;yBACf,QAAQ,GAAG,IAAI;;kCA/WE,cAAc;yCACP,aAAa;gCACtB,cAAc;8BAChB,6CAA6C;6BAXrB,WAAW;qCAY5B,cAAc"}
@@ -12,6 +12,14 @@ import {
12
12
  timeVsSchedule,
13
13
  } from './scheduleMath.js';
14
14
 
15
+ /**
16
+ * @import {TimerService} from '@agoric/time';
17
+ * @import {AuctionParamManager} from './params.js';
18
+ * @import {TimerBrand} from '@agoric/time';
19
+ * @import {Recorder} from '@agoric/zoe/src/contractSupport/recorder.js';
20
+ * @import {TimestampRecord} from '@agoric/time';
21
+ */
22
+
15
23
  const trace = makeTracer('SCHED', true);
16
24
 
17
25
  // If the startAuction wakeup is no more than 5 minutes late, go ahead with it.
@@ -70,10 +78,10 @@ const nominalStartTime = nextSchedule =>
70
78
 
71
79
  /**
72
80
  * @param {AuctionDriver} auctionDriver
73
- * @param {import('@agoric/time').TimerService} timer
74
- * @param {Awaited<import('./params.js').AuctionParamManager>} params
75
- * @param {import('@agoric/time').TimerBrand} timerBrand
76
- * @param {import('@agoric/zoe/src/contractSupport/recorder.js').Recorder<ScheduleNotification>} scheduleRecorder
81
+ * @param {TimerService} timer
82
+ * @param {Awaited<AuctionParamManager>} params
83
+ * @param {TimerBrand} timerBrand
84
+ * @param {Recorder<ScheduleNotification>} scheduleRecorder
77
85
  * @param {StoredSubscription<GovernanceSubscriptionState>} paramUpdateSubscription
78
86
  */
79
87
  export const makeScheduler = async (
@@ -360,8 +368,8 @@ export const makeScheduler = async (
360
368
 
361
369
  /**
362
370
  * @typedef {object} Schedule
363
- * @property {import('@agoric/time').TimestampRecord} startTime
364
- * @property {import('@agoric/time').TimestampRecord} endTime
371
+ * @property {TimestampRecord} startTime
372
+ * @property {TimestampRecord} endTime
365
373
  * @property {NatValue} steps
366
374
  * @property {NatValue} endRate
367
375
  * @property {RelativeTime} startDelay
@@ -36,14 +36,14 @@ declare function makePushPriceOffer(_agoricNames: unknown, opts: {
36
36
  }, previousOffer: string): OfferSpec;
37
37
  /**
38
38
  * @param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
39
- * @param {Instance} instance
39
+ * @param {Instance<unknown>} instance
40
40
  * @param {{ offerId: string; feePct?: number; pair: [string, string] } & (
41
41
  * | { wantMinted: number }
42
42
  * | { giveMinted: number }
43
43
  * )} opts
44
44
  * @returns {OfferSpec}
45
45
  */
46
- declare function makePsmSwapOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, instance: Instance, opts: {
46
+ declare function makePsmSwapOffer({ brand }: Pick<AgoricNamesRemotes, "brand">, instance: Instance<unknown>, opts: {
47
47
  offerId: string;
48
48
  feePct?: number;
49
49
  pair: [string, string];
@@ -1 +1 @@
1
- {"version":3,"file":"clientSupport.d.ts","sourceRoot":"","sources":["clientSupport.js"],"names":[],"mappings":"AAgKO,+CAJI,MAAM,YACN,OAAO,CAAC,mBAAmB,CAAC,GAC1B,OAAO,CAAC,MAAM,CAAC,CAW3B;AA0EM,6CAJI,IAAI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param {Pick<AgoricNamesRemotes, 'brand'>} agoricNames
204
- * @param {Instance} instance
204
+ * @param {Instance<unknown>} instance
205
205
  * @param {{ offerId: string; feePct?: number; pair: [string, string] } & (
206
206
  * | { wantMinted: number }
207
207
  * | { giveMinted: number }
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * @import {MapStore, SetStore} from '@agoric/store';
3
+ * @import {Baggage} from '@agoric/vat-data';
4
+ * @import {TimestampValue} from '@agoric/time';
3
5
  */
4
6
  /**
5
7
  * @file This contract makes it possible for those who govern contracts to call
@@ -12,26 +14,26 @@ export const INVITATION_MAKERS_DESC: "charter member invitation";
12
14
  export const meta: ContractMeta<typeof start>;
13
15
  export function start(zcf: ZCF<{
14
16
  binaryVoteCounterInstallation: Installation;
15
- }>, privateArgs: undefined, baggage: import("@agoric/vat-data").Baggage): Promise<{
17
+ }>, privateArgs: undefined, baggage: Baggage): Promise<{
16
18
  creatorFacet: import("@endo/exo").Guarded<{
17
19
  /**
18
- * @param {Instance} governedInstance
20
+ * @param {Instance<unknown>} governedInstance
19
21
  * @param {GovernorCreatorFacet<any>} governorFacet
20
22
  * @param {string} [label] for diagnostic use only
21
23
  */
22
- addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string) => void;
24
+ addInstance: (governedInstance: Instance<unknown>, governorFacet: GovernorCreatorFacet<any>, label?: string) => void;
23
25
  makeCharterMemberInvitation: () => Promise<globalThis.Invitation<{
24
26
  invitationMakers: import("@endo/exo").Guarded<{
25
27
  VoteOnParamChange: () => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
26
28
  VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<globalThis.Invitation<import("@agoric/governance/src/types").ContractGovernanceVoteResult, undefined>>;
27
- VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import("@agoric/time").TimestampValue) => 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>>;
28
30
  }>;
29
31
  }, undefined>>;
30
32
  }>;
31
33
  }>;
32
34
  export type ParamChangesOfferArgs = {
33
35
  deadline: bigint;
34
- instance: Instance;
36
+ instance: Instance<unknown>;
35
37
  params: Record<string, unknown>;
36
38
  /**
37
39
  * paramPath is determined by contract
@@ -40,4 +42,6 @@ export type ParamChangesOfferArgs = {
40
42
  paramPath: unknown;
41
43
  } | undefined;
42
44
  };
45
+ import type { Baggage } from '@agoric/vat-data';
46
+ import type { TimestampValue } from '@agoric/time';
43
47
  //# sourceMappingURL=econCommitteeCharter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"econCommitteeCharter.d.ts","sourceRoot":"","sources":["econCommitteeCharter.js"],"names":[],"mappings":"AAaA;;GAEG;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,kBAAkB,EAAE,OAAO;;QAsHvC;;;;WAIG;wCAHQ,QAAQ,iBACR,oBAAoB,CAAC,GAAG,CAAC,UACzB,MAAM;;;;;0CAzEV,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"}
@@ -13,6 +13,8 @@ import { E } from '@endo/far';
13
13
 
14
14
  /**
15
15
  * @import {MapStore, SetStore} from '@agoric/store';
16
+ * @import {Baggage} from '@agoric/vat-data';
17
+ * @import {TimestampValue} from '@agoric/time';
16
18
  */
17
19
 
18
20
  /**
@@ -27,7 +29,7 @@ export const INVITATION_MAKERS_DESC = 'charter member invitation';
27
29
  /**
28
30
  * @typedef {object} ParamChangesOfferArgs
29
31
  * @property {bigint} deadline
30
- * @property {Instance} instance
32
+ * @property {Instance<unknown>} instance
31
33
  * @property {Record<string, unknown>} params
32
34
  * @property {{ paramPath: unknown }} [path] paramPath is determined by contract
33
35
  */
@@ -54,11 +56,11 @@ harden(meta);
54
56
  /**
55
57
  * @param {ZCF<{ binaryVoteCounterInstallation: Installation }>} zcf
56
58
  * @param {undefined} privateArgs
57
- * @param {import('@agoric/vat-data').Baggage} baggage
59
+ * @param {Baggage} baggage
58
60
  */
59
61
  export const start = async (zcf, privateArgs, baggage) => {
60
62
  const { binaryVoteCounterInstallation: counter } = zcf.getTerms();
61
- /** @type {MapStore<Instance, GovernorCreatorFacet<any>>} */
63
+ /** @type {MapStore<Instance<unknown>, GovernorCreatorFacet<any>>} */
62
64
  const instanceToGovernor = provideDurableMapStore(
63
65
  baggage,
64
66
  'instanceToGovernor',
@@ -102,10 +104,10 @@ export const start = async (zcf, privateArgs, baggage) => {
102
104
  };
103
105
 
104
106
  /**
105
- * @param {Instance} instance
107
+ * @param {Instance<unknown>} instance
106
108
  * @param {string} methodName
107
109
  * @param {string[]} methodArgs
108
- * @param {import('@agoric/time').TimestampValue} deadline
110
+ * @param {TimestampValue} deadline
109
111
  */
110
112
  const makeApiInvocationInvitation = (
111
113
  instance,
@@ -173,7 +175,7 @@ export const start = async (zcf, privateArgs, baggage) => {
173
175
  CharterCreatorI,
174
176
  {
175
177
  /**
176
- * @param {Instance} governedInstance
178
+ * @param {Instance<unknown>} governedInstance
177
179
  * @param {GovernorCreatorFacet<any>} governorFacet
178
180
  * @param {string} [label] for diagnostic use only
179
181
  */