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

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 (145) hide show
  1. package/package.json +36 -35
  2. package/src/auction/auctionBook.d.ts +6 -6
  3. package/src/auction/auctionBook.d.ts.map +1 -1
  4. package/src/auction/auctionBook.js +51 -26
  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 +5 -4
  8. package/src/auction/auctioneer.d.ts.map +1 -1
  9. package/src/auction/auctioneer.js +2 -0
  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 +2 -1
  14. package/src/auction/params.d.ts.map +1 -1
  15. package/src/auction/params.js +1 -0
  16. package/src/auction/scheduler.d.ts +1 -1
  17. package/src/auction/util.d.ts +2 -1
  18. package/src/auction/util.d.ts.map +1 -1
  19. package/src/auction/util.js +4 -1
  20. package/src/clientSupport.d.ts +1 -0
  21. package/src/clientSupport.d.ts.map +1 -1
  22. package/src/clientSupport.js +6 -1
  23. package/src/contractSupport.d.ts +2 -2
  24. package/src/contractSupport.d.ts.map +1 -1
  25. package/src/econCommitteeCharter.d.ts +8 -5
  26. package/src/econCommitteeCharter.d.ts.map +1 -1
  27. package/src/econCommitteeCharter.js +4 -0
  28. package/src/feeDistributor.d.ts +33 -33
  29. package/src/feeDistributor.d.ts.map +1 -1
  30. package/src/feeDistributor.js +4 -0
  31. package/src/interest-math.d.ts +1 -0
  32. package/src/interest-math.d.ts.map +1 -1
  33. package/src/interest-math.js +5 -1
  34. package/src/interest.d.ts +3 -1
  35. package/src/interest.d.ts.map +1 -1
  36. package/src/interest.js +2 -5
  37. package/src/price/README.md +1 -1
  38. package/src/price/fluxAggregatorContract.d.ts +6 -6
  39. package/src/price/fluxAggregatorContract.d.ts.map +1 -1
  40. package/src/price/fluxAggregatorKit.d.ts +6 -5
  41. package/src/price/fluxAggregatorKit.d.ts.map +1 -1
  42. package/src/price/fluxAggregatorKit.js +3 -2
  43. package/src/price/priceOracleKit.d.ts +2 -1
  44. package/src/price/priceOracleKit.d.ts.map +1 -1
  45. package/src/price/priceOracleKit.js +5 -1
  46. package/src/price/roundsManager.d.ts +2 -2
  47. package/src/price/roundsManager.d.ts.map +1 -1
  48. package/src/price/roundsManager.js +1 -0
  49. package/src/proposals/add-auction.js +31 -2
  50. package/src/proposals/addAssetToVault.js +1 -1
  51. package/src/proposals/deploy-price-feeds.js +28 -3
  52. package/src/proposals/econ-behaviors.js +21 -5
  53. package/src/proposals/replace-fee-distributor.js +5 -2
  54. package/src/proposals/replaceElectorate.js +105 -16
  55. package/src/proposals/upgrade-vaults.js +7 -2
  56. package/src/proposals/utils.d.ts +2 -0
  57. package/src/proposals/utils.d.ts.map +1 -1
  58. package/src/proposals/utils.js +24 -1
  59. package/src/proposals/withdraw-reserve-proposal.js +63 -0
  60. package/src/provisionPool.d.ts +19 -113
  61. package/src/provisionPool.d.ts.map +1 -1
  62. package/src/provisionPool.js +29 -13
  63. package/src/provisionPoolKit.d.ts +36 -266
  64. package/src/provisionPoolKit.d.ts.map +1 -1
  65. package/src/provisionPoolKit.js +193 -107
  66. package/src/psm/psm.d.ts +15 -7
  67. package/src/psm/psm.d.ts.map +1 -1
  68. package/src/psm/psm.js +6 -1
  69. package/src/reserve/assetReserve.d.ts +15 -4
  70. package/src/reserve/assetReserve.d.ts.map +1 -1
  71. package/src/reserve/assetReserve.js +16 -17
  72. package/src/reserve/assetReserveKit.d.ts +32 -3
  73. package/src/reserve/assetReserveKit.d.ts.map +1 -1
  74. package/src/reserve/assetReserveKit.js +110 -2
  75. package/src/reserve/params.d.ts +9 -3
  76. package/src/reserve/params.d.ts.map +1 -1
  77. package/src/reserve/params.js +8 -2
  78. package/src/vaultFactory/burn.d.ts +1 -1
  79. package/src/vaultFactory/burn.d.ts.map +1 -1
  80. package/src/vaultFactory/liquidation.d.ts +2 -0
  81. package/src/vaultFactory/liquidation.d.ts.map +1 -1
  82. package/src/vaultFactory/liquidation.js +5 -5
  83. package/src/vaultFactory/math.d.ts +1 -1
  84. package/src/vaultFactory/math.d.ts.map +1 -1
  85. package/src/vaultFactory/math.js +1 -1
  86. package/src/vaultFactory/orderedVaultStore.d.ts +19 -18
  87. package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
  88. package/src/vaultFactory/orderedVaultStore.js +4 -2
  89. package/src/vaultFactory/params.d.ts +5 -2
  90. package/src/vaultFactory/params.d.ts.map +1 -1
  91. package/src/vaultFactory/params.js +5 -2
  92. package/src/vaultFactory/prioritizedVaults.d.ts +58 -57
  93. package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
  94. package/src/vaultFactory/prioritizedVaults.js +5 -2
  95. package/src/vaultFactory/storeUtils.d.ts +2 -2
  96. package/src/vaultFactory/storeUtils.d.ts.map +1 -1
  97. package/src/vaultFactory/types-ambient.d.ts +2 -2
  98. package/src/vaultFactory/types-ambient.d.ts.map +1 -1
  99. package/src/vaultFactory/types-ambient.js +5 -2
  100. package/src/vaultFactory/vault.d.ts +11 -10
  101. package/src/vaultFactory/vault.d.ts.map +1 -1
  102. package/src/vaultFactory/vault.js +2 -1
  103. package/src/vaultFactory/vaultDirector.d.ts +53 -47
  104. package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
  105. package/src/vaultFactory/vaultDirector.js +10 -2
  106. package/src/vaultFactory/vaultFactory.d.ts +63 -15
  107. package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
  108. package/src/vaultFactory/vaultFactory.js +6 -2
  109. package/src/vaultFactory/vaultHolder.d.ts +68 -24
  110. package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
  111. package/src/vaultFactory/vaultHolder.js +4 -0
  112. package/src/vaultFactory/vaultKit.d.ts +8 -7
  113. package/src/vaultFactory/vaultKit.d.ts.map +1 -1
  114. package/src/vaultFactory/vaultKit.js +5 -1
  115. package/src/vaultFactory/vaultManager.d.ts +65 -63
  116. package/src/vaultFactory/vaultManager.d.ts.map +1 -1
  117. package/src/vaultFactory/vaultManager.js +58 -38
  118. package/src/proposals/add-auction.d.ts +0 -109
  119. package/src/proposals/add-auction.d.ts.map +0 -1
  120. package/src/proposals/addAssetToVault.d.ts +0 -173
  121. package/src/proposals/addAssetToVault.d.ts.map +0 -1
  122. package/src/proposals/committee-proposal.d.ts +0 -113
  123. package/src/proposals/committee-proposal.d.ts.map +0 -1
  124. package/src/proposals/core-proposal.d.ts +0 -149
  125. package/src/proposals/core-proposal.d.ts.map +0 -1
  126. package/src/proposals/deploy-price-feeds.d.ts +0 -76
  127. package/src/proposals/deploy-price-feeds.d.ts.map +0 -1
  128. package/src/proposals/econ-behaviors.d.ts +0 -541
  129. package/src/proposals/econ-behaviors.d.ts.map +0 -1
  130. package/src/proposals/price-feed-proposal.d.ts +0 -84
  131. package/src/proposals/price-feed-proposal.d.ts.map +0 -1
  132. package/src/proposals/replace-fee-distributor.d.ts +0 -48
  133. package/src/proposals/replace-fee-distributor.d.ts.map +0 -1
  134. package/src/proposals/replace-scaledPriceAuthorities.d.ts +0 -30
  135. package/src/proposals/replace-scaledPriceAuthorities.d.ts.map +0 -1
  136. package/src/proposals/replaceElectorate.d.ts +0 -55
  137. package/src/proposals/replaceElectorate.d.ts.map +0 -1
  138. package/src/proposals/startEconCommittee.d.ts +0 -34
  139. package/src/proposals/startEconCommittee.d.ts.map +0 -1
  140. package/src/proposals/startPSM.d.ts +0 -59
  141. package/src/proposals/startPSM.d.ts.map +0 -1
  142. package/src/proposals/upgrade-scaledPriceAuthorities.d.ts +0 -24
  143. package/src/proposals/upgrade-scaledPriceAuthorities.d.ts.map +0 -1
  144. package/src/proposals/upgrade-vaults.d.ts +0 -41
  145. package/src/proposals/upgrade-vaults.d.ts.map +0 -1
@@ -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.
@@ -39,7 +39,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
39
39
  */
40
40
  makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
41
41
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
42
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
42
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
43
43
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
44
44
  }>;
45
45
  /**
@@ -51,20 +51,20 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
51
51
  * @param {PropertyKey} makeInvitationMethod
52
52
  * @param {unknown[]} [args]
53
53
  */
54
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
54
+ makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
55
55
  pushPayment: (payment: any, issuer: any) => Promise<any>;
56
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
56
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
57
57
  pushPayment: (payment: any, issuer: any) => Promise<any>;
58
58
  }>;
59
59
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
60
60
  setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
61
61
  /** @param {Record<Keyword, bigint>} newShares */
62
62
  setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
63
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
63
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
64
64
  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>>;
65
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
66
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
67
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
68
68
  }>;
69
69
  /**
70
70
  * Start distributing fees from this collector.
@@ -80,7 +80,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
80
80
  */
81
81
  makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
82
82
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
83
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
83
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
84
84
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
85
85
  }>;
86
86
  /**
@@ -92,9 +92,9 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
92
92
  * @param {PropertyKey} makeInvitationMethod
93
93
  * @param {unknown[]} [args]
94
94
  */
95
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
95
+ makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
96
96
  pushPayment: (payment: any, issuer: any) => Promise<any>;
97
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
97
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
98
98
  pushPayment: (payment: any, issuer: any) => Promise<any>;
99
99
  }>;
100
100
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
@@ -105,7 +105,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
105
105
  publicFacet: {
106
106
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
107
107
  getKeywordShares: () => Record<string, bigint>;
108
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
108
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
109
109
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
110
110
  getKeywordShares: () => Record<string, bigint>;
111
111
  }>;
@@ -113,9 +113,9 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
113
113
  export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promise<{
114
114
  creatorFacet: {
115
115
  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>>;
116
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
117
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
118
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
119
119
  }>;
120
120
  /**
121
121
  * Start distributing fees from this collector.
@@ -131,7 +131,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
131
131
  */
132
132
  makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
133
133
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
134
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
134
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
135
135
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
136
136
  }>;
137
137
  /**
@@ -143,20 +143,20 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
143
143
  * @param {PropertyKey} makeInvitationMethod
144
144
  * @param {unknown[]} [args]
145
145
  */
146
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
146
+ makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
147
147
  pushPayment: (payment: any, issuer: any) => Promise<any>;
148
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
148
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
149
149
  pushPayment: (payment: any, issuer: any) => Promise<any>;
150
150
  }>;
151
151
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
152
152
  setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
153
153
  /** @param {Record<Keyword, bigint>} newShares */
154
154
  setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
155
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
155
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
156
156
  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>>;
157
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
158
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
159
+ collectFees: () => Promise<globalThis.Payment<any, any>>;
160
160
  }>;
161
161
  /**
162
162
  * Start distributing fees from this collector.
@@ -172,7 +172,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
172
172
  */
173
173
  makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
174
174
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
175
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
175
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
176
176
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
177
177
  }>;
178
178
  /**
@@ -184,9 +184,9 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
184
184
  * @param {PropertyKey} makeInvitationMethod
185
185
  * @param {unknown[]} [args]
186
186
  */
187
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
187
+ makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
188
188
  pushPayment: (payment: any, issuer: any) => Promise<any>;
189
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
189
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
190
190
  pushPayment: (payment: any, issuer: any) => Promise<any>;
191
191
  }>;
192
192
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
@@ -197,7 +197,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
197
197
  publicFacet: {
198
198
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
199
199
  getKeywordShares: () => Record<string, bigint>;
200
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
200
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
201
201
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
202
202
  getKeywordShares: () => Record<string, bigint>;
203
203
  }>;
@@ -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,CAAC;;;;GAWxC;AAeM,oDAPI,MAAM,OAAO,CAAC,OAAO,CAAC,gBAEtB,IAAI,CAAC,YAAY,CAAC,uDA+B5B;AASM;;;;;;EAaN;AAWM,sCAJI,OAAO,CAAC,KAAK,CAAC,UACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,2BACnB,WAAW,iBA8DrB;AAUM,8CAPI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SACnB;IACN,aAAa,EAAE,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACzC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACjC,kBAAkB,EAAE,YAAY,CAAC;CAClC;;wCA1JO,IAAI,CAAC,UAAU,CAAC,gBAChB,IAAI,CAAC,wBAAwB,CAAC;;;;;QA4LrC;;;;;WAKG;6CAFQ,MAAM,cACN,IAAI,CAAC,YAAY,CAAC;QA6B7B;;;;WAIG;oDAHQ,OAAO,WAAW,EAAE,KAAK,CACnC,OAAW,2BAA2B,EAAE,YAAY,C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AW,2BAA2B,EAAE,YAAY,CACjD;;;;;QASJ;;;;;;;;WAQG;oCALQ,IAAI,CAAC,UAAU,CAAC,WAChB,MAAM,UACN,OAAO,wBACP,WAAW,SACX,OAAO,EAAE;;;;;QAqCpB,qEAAqE;2CAAzD,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAQjD,iDAAiD;sCAArC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;;;kCAvHzB,OAAO,CAAC,KAAK,CAAC;;;kCAAd,OAAO,CAAC,KAAK,CAAC;;;GA8I3B;;iBAxUa,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;;;kBAK1B,MAAM,YAAY;6BAClB,MAAM,OAAO,CAAC,IAAI,CAAC;UACnB,MAAM,IAAI;;;+BAKV,MAAM,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;;6BA+DzC;IACR,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1E;0BAmBU,UAAU,CAAC,OAAO,eAAe,CAAC;yCAiOlC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,cAAc,CAAC;wCACrD,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,aAAa,CAAC;kCAvUnC,cAAc;kCADd,cAAc"}
@@ -7,6 +7,10 @@ import { mustMatch, makeScalarSetStore, M } from '@agoric/store';
7
7
  import { RelativeTimeShape } from '@agoric/time';
8
8
  import { KeywordShape } from '@agoric/zoe/src/typeGuards.js';
9
9
 
10
+ /**
11
+ * @import {MapStore, SetStore} from '@agoric/store';
12
+ */
13
+
10
14
  const KeywordSharesShape = M.recordOf(KeywordShape, M.nat());
11
15
 
12
16
  /** @type {ContractMeta<typeof start>} */
@@ -1,3 +1,4 @@
1
1
  export function calculateCurrentDebt(debtSnapshot: Amount<"nat">, interestSnapshot: Ratio, currentCompoundedInterest: Ratio): Amount<"nat">;
2
2
  export function reverseInterest(debt: Amount<"nat">, interestApplied: Ratio): Amount<"nat">;
3
+ import type { Amount } from '@agoric/ertp';
3
4
  //# sourceMappingURL=interest-math.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interest-math.d.ts","sourceRoot":"","sources":["interest-math.js"],"names":[],"mappings":"AAgCO,mDALI,MAAM,CAAC,KAAK,CAAC,oBACb,KAAK,6BACL,KAAK,GACH,MAAM,CAAC,KAAK,CAAC,CAiBzB;AAOM,sCAJI,MAAM,CAAC,KAAK,CAAC,mBACb,KAAK,GACH,MAAM,CAAC,KAAK,CAAC,CAIzB"}
1
+ {"version":3,"file":"interest-math.d.ts","sourceRoot":"","sources":["interest-math.js"],"names":[],"mappings":"AAoCO,mDALI,OAAO,KAAK,CAAC,oBACb,KAAK,6BACL,KAAK,GACH,OAAO,KAAK,CAAC,CAiBzB;AAOM,sCAJI,OAAO,KAAK,CAAC,mBACb,KAAK,GACH,OAAO,KAAK,CAAC,CAIzB;4BAjDwC,cAAc"}
@@ -6,7 +6,11 @@ import {
6
6
  invertRatio,
7
7
  multiplyRatios,
8
8
  ratiosSame,
9
- } from '@agoric/zoe/src/contractSupport/ratio.js';
9
+ } from '@agoric/ertp/src/ratio.js';
10
+
11
+ /**
12
+ * @import {Amount, Brand, Payment} from '@agoric/ertp';
13
+ */
10
14
 
11
15
  /**
12
16
  * @param {Ratio} currentCompoundedInterest as coefficient
package/src/interest.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * @import {Timestamp} from '@agoric/time'
3
3
  * @import {RelativeTime} from '@agoric/time'
4
+ * @import {AdminFacet, InvitationAmount, ZCFMint} from '@agoric/zoe';
4
5
  */
5
6
  export const SECONDS_PER_YEAR: bigint;
6
7
  export function makeInterestCalculator(annualRate: Ratio, chargingPeriod: RelativeTime, recordingPeriod: RelativeTime): CalculatorKit;
7
- export function calculateCompoundedInterest(priorCompoundedInterest: Ratio, priorDebt: NatValue, newDebt: NatValue): Ratio;
8
+ export function calculateCompoundedInterest(priorCompoundedInterest: Ratio, priorDebt: NatValue, newDebt: NatValue): import("@agoric/ertp/src/ratio.js").Ratio;
8
9
  export function chargeInterest(powers: {
9
10
  mint: ZCFMint<"nat">;
10
11
  mintAndTransferWithFee: MintAndTransfer;
@@ -24,5 +25,6 @@ export function chargeInterest(powers: {
24
25
  totalDebt: Amount<"nat">;
25
26
  };
26
27
  import type { RelativeTime } from '@agoric/time';
28
+ import type { ZCFMint } from '@agoric/zoe';
27
29
  import type { Timestamp } from '@agoric/time';
28
30
  //# sourceMappingURL=interest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interest.d.ts","sourceRoot":"","sources":["interest.js"],"names":[],"mappings":"AAYA;;;GAGG;AAEH,sCAAuD;AAchD,mDALI,KAAK,kBACL,YAAY,mBACZ,YAAY,GACV,aAAa,CA+EzB;AASM,qEAJI,KAAK,aACL,QAAQ,WACR,QAAQ,SAalB;AAyCM,uCAvBI;IACN,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACrB,sBAAsB,EAAE,eAAe,CAAC;IACxC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;CAChC,UACO;IACN,YAAY,EAAE,KAAK,CAAC;IACpB,cAAc,EAAE,YAAY,CAAC;IAC7B,eAAe,EAAE,YAAY,CAAC;CAC/B,SACO;IACN,oBAAoB,EAAE,SAAS,CAAC;IAChC,kBAAkB,EAAE,KAAK,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC1B,gBACO,SAAS,GACP;IACR,kBAAkB,EAAE,KAAK,CAAC;IAC1B,oBAAoB,EAAE,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC1B,CA8DH;kCAvN8B,cAAc;+BADjB,cAAc"}
1
+ {"version":3,"file":"interest.d.ts","sourceRoot":"","sources":["interest.js"],"names":[],"mappings":"AAQA;;;;GAIG;AAEH,sCAAuD;AAchD,mDALI,KAAK,kBACL,YAAY,mBACZ,YAAY,GACV,aAAa,CA+EzB;AASM,qEAJI,KAAK,aACL,QAAQ,WACR,QAAQ,6CAalB;AAyCM,uCAvBI;IACN,IAAI,EAAE,QAAQ,KAAK,CAAC,CAAC;IACrB,sBAAsB,EAAE,eAAe,CAAC;IACxC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;CAChC,UACO;IACN,YAAY,EAAE,KAAK,CAAC;IACpB,cAAc,EAAE,YAAY,CAAC;IAC7B,eAAe,EAAE,YAAY,CAAC;CAC/B,SACO;IACN,oBAAoB,EAAE,SAAS,CAAC;IAChC,kBAAkB,EAAE,KAAK,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC1B,gBACO,SAAS,GACP;IACR,kBAAkB,EAAE,KAAK,CAAC;IAC1B,oBAAoB,EAAE,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC1B,CA8DH;kCAxN8B,cAAc;6BACW,aAAa;+BAFzC,cAAc"}
package/src/interest.js CHANGED
@@ -3,16 +3,13 @@
3
3
  import { Fail } from '@endo/errors';
4
4
  import { AmountMath } from '@agoric/ertp';
5
5
  import { natSafeMath } from '@agoric/zoe/src/contractSupport/index.js';
6
- import {
7
- makeRatio,
8
- multiplyRatios,
9
- quantize,
10
- } from '@agoric/zoe/src/contractSupport/ratio.js';
6
+ import { makeRatio, multiplyRatios, quantize } from '@agoric/ertp/src/ratio.js';
11
7
  import { TimeMath } from '@agoric/time';
12
8
 
13
9
  /**
14
10
  * @import {Timestamp} from '@agoric/time'
15
11
  * @import {RelativeTime} from '@agoric/time'
12
+ * @import {AdminFacet, InvitationAmount, ZCFMint} from '@agoric/zoe';
16
13
  */
17
14
 
18
15
  export const SECONDS_PER_YEAR = 60n * 60n * 24n * 365n;
@@ -25,7 +25,7 @@ Oracle operates can make PushPrice offers in the CLI. There is no GUI.
25
25
 
26
26
  ### CLI
27
27
 
28
- See [oracle.js command file](/packages/agoric-cli/src/commands/oracle.js) and its [integration test script](/packages/agoric-cli/test/agops-oracle-smoketest.sh).
28
+ See [oracle.js command file](/packages/agoric-cli/src/commands/oracle.js)
29
29
 
30
30
  ```mermaid
31
31
  sequenceDiagram
@@ -22,18 +22,18 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
22
22
  get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
23
23
  Electorate: "invitation";
24
24
  }>;
25
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
25
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
26
26
  get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
27
27
  Electorate: "invitation";
28
28
  }>;
29
29
  }>;
30
- getInvitation: (name: any) => Promise<Invitation<unknown, undefined>>;
30
+ getInvitation: (name: any) => Promise<globalThis.Invitation>;
31
31
  getLimitedCreatorFacet: () => import("@endo/exo").Guarded<{
32
- makeOracleInvitation(oracleId: string): Promise<Invitation<{
32
+ makeOracleInvitation(oracleId: string): Promise<globalThis.Invitation<{
33
33
  invitationMakers: {
34
- PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
35
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
36
- PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
34
+ PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
35
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
36
+ PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
37
37
  }>;
38
38
  oracle: import("@endo/exo").Guarded<{
39
39
  pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: PriceDatum): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;GAGG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK,2BAlBI,GAAG,CACb,OAAW,wBAAwB,EAAE,eAAe,GAAG;IACjD,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC9B,CACF,eACO;IACN,0BAA0B,CAAC,EAAE,OAAO,0CAA0C,EAAE,sBAAsB,CAAC;IACvG,sBAAsB,EAAE,UAAU,CAAC;IACnC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7B,mBAAmB,EAAE,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,CAAC;IAC5D,WAAW,EAAE,WAAW,CAAC;CAC1B,WACO,OAAO;;;;;;;;;;;;;;;6CAyI8vF,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAJnyF;0BAGa,OAAO,KAAK;kCAtLK,cAAc;6BADnB,kBAAkB"}
1
+ {"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;GAGG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK,2BAlBI,GAAG,CACb,OAAW,wBAAwB,EAAE,eAAe,GAAG;IACjD,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC9B,CACF,eACO;IACN,0BAA0B,CAAC,EAAE,OAAO,0CAA0C,EAAE,sBAAsB,CAAC;IACvG,sBAAsB,EAAE,UAAU,CAAC;IACnC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7B,mBAAmB,EAAE,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,CAAC;IAC5D,WAAW,EAAE,WAAW,CAAC;CAC1B,WACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqIjB;0BAGa,OAAO,KAAK;kCAtLK,cAAc;6BADnB,kBAAkB"}
@@ -16,13 +16,13 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
16
16
  *
17
17
  * @param {string} oracleId unique per contract instance
18
18
  */
19
- makeOracleInvitation(oracleId: string): Promise<Invitation<{
19
+ makeOracleInvitation(oracleId: string): Promise<globalThis.Invitation<{
20
20
  invitationMakers: {
21
21
  /** @param {import('./roundsManager.js').PriceRound} result */
22
- PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
23
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
22
+ PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
23
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
24
24
  /** @param {import('./roundsManager.js').PriceRound} result */
25
- PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
25
+ PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
26
26
  }>;
27
27
  oracle: import("@endo/exo").Guarded<{
28
28
  pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: PriceDatum): Promise<void>;
@@ -94,10 +94,11 @@ export type ChainlinkConfig = {
94
94
  */
95
95
  timeout: number;
96
96
  };
97
- export type FluxAggregatorKit = ReturnType<Awaited<ReturnType<typeof prepareFluxAggregatorKit>>>;
97
+ export type FluxAggregatorKit = EReturn<EReturn<typeof prepareFluxAggregatorKit>>;
98
98
  import type { Baggage } from '@agoric/vat-data';
99
99
  import type { TimerService } from '@agoric/time';
100
100
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
101
101
  import type { PriceDescription } from '@agoric/zoe/tools/types.js';
102
102
  import type { Timestamp } from '@agoric/time';
103
+ import type { EReturn } from '@endo/far';
103
104
  //# sourceMappingURL=fluxAggregatorKit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fluxAggregatorKit.d.ts","sourceRoot":"","sources":["fluxAggregatorKit.js"],"names":[],"mappings":"AA2BA,yDAA0D;AAgEnD,kDAfI,OAAO,OACP,GAAG,CACT,eAAe,GAAG;IAChB,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC9B,CACF,iBACO,YAAY,YACZ,OAAO,oBAAoB,EAAE,QAAQ,eACrC,WAAW,yBACX,MAAM,UAAU,CAAC,GAAG,CAAC,gBACrB,OAAO,6CAA6C,EAAE,YAAY;;QA+IrE;;;;;;;;;WASG;uCADQ,MAAM;;gBAiBX,8DAA8D;kCAAlD,OAAO,oBAAoB,EAAE,UAAU;;gBAAnD,8DAA8D;kCAAlD,OAAO,oBAAoB,EAAE,UAAU;;;;;;;QAqBzD,+BAA+B;+BAAnB,MAAM;;QAalB,+BAA+B;6BAAnB,MAAM;;;;;;;;;QAoBlB;;;;;;;;WAQG;mCAHQ,MAAM,kBACN,MAAM,GACJ,OAAO,CAAC,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,MAAM;;;wBAMN,MAAM;wBACN,MAAM;;;;;kBACN,MAAM;;;;;wBAEN,MAAM;;;;;wBAEN,MAAM;;;;;;aAEN,MAAM;;gCAsTN,QAAQ,QAAQ,OAAO,wBAAwB,CAAC,CAAC;6BAtVrC,kBAAkB;kCAKb,cAAc;oCAdgD,4BAA4B;sCAA5B,4BAA4B;+BAU7F,cAAc;6BAZhB,WAAW"}
@@ -19,8 +19,10 @@ import { prepareOracleAdminKit } from './priceOracleKit.js';
19
19
  import { prepareRoundsManagerKit } from './roundsManager.js';
20
20
 
21
21
  /**
22
+ * @import {EReturn} from '@endo/far';
22
23
  * @import {TypedPattern} from '@agoric/internal';
23
24
  * @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
25
+ * @import {MapStore, SetStore} from '@agoric/store';
24
26
  */
25
27
 
26
28
  const trace = makeTracer('FlxAgg', true);
@@ -130,7 +132,6 @@ export const prepareFluxAggregatorKit = async (
130
132
  const makeOracleAdminKit = prepareOracleAdminKit(baggage);
131
133
 
132
134
  const makeRecorderKit = defineRecorderKit({
133
- // @ts-expect-error XXX
134
135
  makeDurablePublishKit,
135
136
  makeRecorder,
136
137
  });
@@ -371,4 +372,4 @@ export const prepareFluxAggregatorKit = async (
371
372
  return makeFluxAggregatorKit;
372
373
  };
373
374
  harden(prepareFluxAggregatorKit);
374
- /** @typedef {ReturnType<Awaited<ReturnType<typeof prepareFluxAggregatorKit>>>} FluxAggregatorKit */
375
+ /** @typedef {EReturn<EReturn<typeof prepareFluxAggregatorKit>>} FluxAggregatorKit */
@@ -34,5 +34,6 @@ export type OracleStatus = {
34
34
  export type ImmutableState = Readonly<HeldParams & {}>;
35
35
  export type MutableState = OracleStatus & {};
36
36
  export type State = ImmutableState & MutableState;
37
- export type OracleKit = ReturnType<ReturnType<typeof prepareOracleAdminKit>>;
37
+ export type OracleKit = EReturn<EReturn<typeof prepareOracleAdminKit>>;
38
+ import type { EReturn } from '@endo/far';
38
39
  //# sourceMappingURL=priceOracleKit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"priceOracleKit.d.ts","sourceRoot":"","sources":["priceOracleKit.js"],"names":[],"mappings":"AAMA,yDAA0D;AA4DnD;;;;;QAcC;;;;WAIG;iEADQ,UAAU;QA0BrB,8BAA8B;qBAAhB,YAAY;;GAa/B;yBAjHU;IACR,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE;QACX,UAAU,EAAE,CACV,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,OAAO,oBAAoB,EAAE,UAAU,KAC5C,OAAO,CAAC,YAAY,CAAC,CAAC;KAC5B,CAAC;CACH;yBAGU;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAA;CAAE;;;uBAKpD,MAAM;sBACN,MAAM;sBACN,MAAM;cACN,MAAM;;6BAGP,QAAQ,CAAC,UAAU,GAAG,EAAE,CAAC;2BAEzB,YAAY,GAAG,EAAE;oBAEhB,cAAc,GAAG,YAAY;wBAyF7B,UAAU,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"priceOracleKit.d.ts","sourceRoot":"","sources":["priceOracleKit.js"],"names":[],"mappings":"AAMA,qCAAsC,mBAAmB,CAAC;AAgEnD;;;;;QAcC;;;;WAIG;iEADQ,UAAU;QA0BrB,8BAA8B;qBAAhB,YAAY;;GAa/B;yBAjHU;IACR,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE;QACX,UAAU,EAAE,CACV,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,OAAO,oBAAoB,EAAE,UAAU,KAC5C,OAAO,CAAC,YAAY,CAAC,CAAC;KAC5B,CAAC;CACH;yBAGU;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAA;CAAE;;;uBAKpD,MAAM;sBACN,MAAM;sBACN,MAAM;cACN,MAAM;;6BAGP,QAAQ,CAAC,UAAU,GAAG,EAAE,CAAC;2BAEzB,YAAY,GAAG,EAAE;oBAEhB,cAAc,GAAG,YAAY;wBAyF7B,QAAQ,QAAQ,OAAO,qBAAqB,CAAC,CAAC;6BAvHlC,WAAW"}
@@ -6,6 +6,10 @@ const trace = makeTracer('OrKit', true);
6
6
 
7
7
  export const INVITATION_MAKERS_DESC = 'oracle invitation';
8
8
 
9
+ /**
10
+ * @import {EReturn} from '@endo/far';
11
+ */
12
+
9
13
  /**
10
14
  * @typedef {{
11
15
  * oracleId: string;
@@ -122,4 +126,4 @@ export const prepareOracleAdminKit = baggage =>
122
126
  },
123
127
  );
124
128
 
125
- /** @typedef {ReturnType<ReturnType<typeof prepareOracleAdminKit>>} OracleKit */
129
+ /** @typedef {EReturn<EReturn<typeof prepareOracleAdminKit>>} OracleKit */
@@ -92,7 +92,7 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<import(
92
92
  }): ((priceQuery: any) => Promise<{
93
93
  quoteAmount: import("@agoric/ertp").SetAmount<PriceDescription>;
94
94
  quotePayment: globalThis.Payment<"set", PriceDescription>;
95
- }> | undefined) & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
95
+ }> | undefined) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
96
96
  quoteAmount: import("@agoric/ertp").SetAmount<PriceDescription>;
97
97
  quotePayment: globalThis.Payment<"set", PriceDescription>;
98
98
  }> | undefined>;
@@ -110,7 +110,6 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<import(
110
110
  * @returns {Promise<RoundData>}
111
111
  */
112
112
  getRoundData(roundIdRaw: bigint | number): Promise<RoundData>;
113
- /** @type {(roundId: bigint) => Readonly<RoundDetails & Round>} */
114
113
  getRoundStatus(roundId: bigint): Readonly<RoundDetails & Round>;
115
114
  /**
116
115
  * a method to provide all current info oracleStatuses need. Intended
@@ -201,4 +200,5 @@ import type { OracleStatus } from './priceOracleKit.js';
201
200
  import type { Timestamp } from '@agoric/time';
202
201
  import type { PriceQuoteValue } from '@agoric/zoe/tools/types.js';
203
202
  import type { PriceDescription } from '@agoric/zoe/tools/types.js';
203
+ import type { MapStore } from '@agoric/store';
204
204
  //# sourceMappingURL=roundsManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"roundsManager.d.ts","sourceRoot":"","sources":["roundsManager.js"],"names":[],"mappings":"AAyBA,qBAAqB;AACrB,wBADW,MAAM,CAC4B;AAqEtC;cA1BU,QAAQ;qBACD,SAAS,CAAC,IAAI,CAAC;aACvB,KAAK,CAAC,KAAK,CAAC;cACX,KAAK,CAAC,KAAK,CAAC;0BACA,OAAO,6CAA6C,EAAE,QAAQ,CAAC,WAAW,CAAC;mBAClF,YAAY;;kBAoDU,MAAM,CAAC,KAAK,CAAC;;;QA2DjD,8BAA8B;sCAAlB,MAAM;QAQlB;;;WAGG;wBAFQ,YAAY,WACZ,MAAM;QAQjB,8BAA8B;oCAAlB,MAAM;QASlB,8BAA8B;6BAAlB,MAAM;QAMlB;;;;WAIG;oCAHQ,MAAM,kBACN,SAAS,YACT,MAAM;QA4CjB;;;WAGG;8CAFQ,MAAM,QACN,MAAM;QAOjB;;;;;WAKG;iCAJQ,MAAM,UACN,YAAY,kBACZ,SAAS,GACP,YAAY,GAAG,SAAS;QAiBrC;;;;;WAKG;qCAJQ,MAAM,WACN,MAAM,UACN,YAAY,GACV,YAAY;QAwBzB;;;WAGG;8BAFQ,MAAM,kBACN,SAAS;QAWpB;;;WAGG;0BAFQ,MAAM,kBACN,SAAS;QAyBpB;;;WAGG;mCAFQ,MAAM,kBACN,SAAS;QAgCpB;;;WAGG;yCAFQ,MAAM,kBACN,SAAS;QA2BpB;;;;;WAKG;oCAJQ,YAAY,WACZ,MAAM,kBACN,SAAS,GACP,MAAM,GAAG,IAAI;;;QA8B1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,CAChB,UAAU,GAAG;IACX,OAAO,EAAE,SAAS,MAAM,EAAE,YAAY,CAAC,CAAC;IACxC,MAAM,EAAE,SAAS,MAAM,EAAE,KAAK,CAAC,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB,CACF;2BAGS;IACR,qBAAqB,EAAE,MAAM,OAAC,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;oBAEU,cAAc,GAAG,YAAY;kCA5ED,cAAc;kCAEzB,qBAAqB;+BAFV,cAAc;qCADqC,4BAA4B;sCAA5B,4BAA4B;8BAEpF,eAAe"}
@@ -17,6 +17,7 @@ const { add, subtract, multiply, floorDivide, ceilDivide, isGTE } = natSafeMath;
17
17
  /**
18
18
  * @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
19
19
  * @import {Timestamp, TimerService} from '@agoric/time'
20
+ * @import {MapStore, SetStore} from '@agoric/store';
20
21
  * @import {OracleStatus} from './priceOracleKit.js'
21
22
  */
22
23
 
@@ -1,8 +1,9 @@
1
1
  import { deeplyFulfilledObject, makeTracer } from '@agoric/internal';
2
2
  import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
3
- import { E } from '@endo/far';
4
3
  import { Stable } from '@agoric/internal/src/tokens.js';
4
+ import { E } from '@endo/far';
5
5
  import { makeGovernedTerms as makeGovernedATerms } from '../auction/params.js';
6
+ import { provideRetiredInstances } from './utils.js';
6
7
 
7
8
  const trace = makeTracer('NewAuction', true);
8
9
 
@@ -11,6 +12,7 @@ const trace = makeTracer('NewAuction', true);
11
12
  * auctionUpgradeNewInstance: Instance;
12
13
  * auctionUpgradeNewGovCreator: any;
13
14
  * newContractGovBundleId: string;
15
+ * retiredContractInstances: MapStore<string, Instance>;
14
16
  * }>} interlockPowers
15
17
  */
16
18
 
@@ -35,6 +37,7 @@ export const addAuction = async (
35
37
  economicCommitteeCreatorFacet: electorateCreatorFacet,
36
38
  governedContractKits: governedContractKitsP,
37
39
  priceAuthority8400,
40
+ retiredContractInstances: retiredContractInstancesP,
38
41
  zoe,
39
42
  },
40
43
  produce: {
@@ -42,6 +45,7 @@ export const addAuction = async (
42
45
  auctionUpgradeNewInstance,
43
46
  auctionUpgradeNewGovCreator,
44
47
  newContractGovBundleId,
48
+ retiredContractInstances: produceRetiredInstances,
45
49
  },
46
50
  instance: {
47
51
  consume: { reserve: reserveInstance },
@@ -79,6 +83,30 @@ export const addAuction = async (
79
83
  auctioneerInstallationP,
80
84
  ]);
81
85
 
86
+ const retiredInstances = await provideRetiredInstances(
87
+ retiredContractInstancesP,
88
+ produceRetiredInstances,
89
+ );
90
+
91
+ const governedContractKits = await governedContractKitsP;
92
+ trace('has', governedContractKits.has(legacyKit.instance));
93
+ if (governedContractKits.has(legacyKit.instance)) {
94
+ // bootstrap tests start having already run this upgrade. Actual upgrades on
95
+ // mainNet or testnets should start with the promiseSpace post upgrade-17,
96
+ // which doesn't have this entry in the map.
97
+ trace(
98
+ '⚠️ WARNING: not expected during chain upgrade. It IS normal during bootstrap tests',
99
+ );
100
+ } else {
101
+ // @ts-expect-error The original auctioneerKit had everything it needs
102
+ governedContractKits.init(legacyKit.instance, legacyKit);
103
+ }
104
+
105
+ // save the auctioneer instance so we can manage it later
106
+ const boardID = await E(board).getId(legacyKit.instance);
107
+ const identifier = `auctioneer-${boardID}`;
108
+ retiredInstances.init(identifier, legacyKit.instance);
109
+
82
110
  // Each field has an extra layer of type + value:
83
111
  // AuctionStartDelay: { type: 'relativeTime', value: { relValue: 2n, timerBrand: Object [Alleged: timerBrand] {} } }
84
112
  /** @type {any} */
@@ -191,7 +219,6 @@ export const addAuction = async (
191
219
  governedInstance,
192
220
  );
193
221
 
194
- const governedContractKits = await governedContractKitsP;
195
222
  governedContractKits.init(kit.instance, kit);
196
223
  auctionUpgradeNewInstance.resolve(governedInstance);
197
224
  auctionUpgradeNewGovCreator.resolve(kit.governorCreatorFacet);
@@ -210,6 +237,7 @@ export const ADD_AUCTION_MANIFEST = harden({
210
237
  economicCommitteeCreatorFacet: true,
211
238
  governedContractKits: true,
212
239
  priceAuthority8400: true,
240
+ retiredContractInstances: true,
213
241
  zoe: true,
214
242
  },
215
243
  produce: {
@@ -217,6 +245,7 @@ export const ADD_AUCTION_MANIFEST = harden({
217
245
  auctionUpgradeNewInstance: true,
218
246
  auctionUpgradeNewGovCreator: true,
219
247
  newContractGovBundleId: true,
248
+ retiredContractInstances: true,
220
249
  },
221
250
  instance: {
222
251
  consume: { reserve: true },
@@ -7,7 +7,7 @@ import { Far } from '@endo/marshal';
7
7
  import { AmountMath, AssetKind } from '@agoric/ertp';
8
8
  import { deeplyFulfilledObject } from '@agoric/internal';
9
9
  import { makeRatio } from '@agoric/zoe/src/contractSupport/index.js';
10
- import { parseRatio } from '@agoric/zoe/src/contractSupport/ratio.js';
10
+ import { parseRatio } from '@agoric/ertp/src/ratio.js';
11
11
  import { E } from '@endo/far';
12
12
  import { Stable } from '@agoric/internal/src/tokens.js';
13
13
  import { TimeMath } from '@agoric/time/src/timeMath.js';