@agoric/zoe 0.28.0-u23.0 → 0.28.0-u23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/package.json +10 -10
  2. package/source-spec-registry.d.ts +25 -0
  3. package/source-spec-registry.d.ts.map +1 -0
  4. package/src/cleanProposal.d.ts +13 -0
  5. package/src/cleanProposal.d.ts.map +1 -0
  6. package/src/contractFacet/allocationMath.d.ts +11 -0
  7. package/src/contractFacet/allocationMath.d.ts.map +1 -0
  8. package/src/contractFacet/evalContractCode.d.ts +2 -0
  9. package/src/contractFacet/evalContractCode.d.ts.map +1 -0
  10. package/src/contractFacet/exit.d.ts +2 -0
  11. package/src/contractFacet/exit.d.ts.map +1 -0
  12. package/src/contractFacet/offerHandlerStorage.d.ts +14 -0
  13. package/src/contractFacet/offerHandlerStorage.d.ts.map +1 -0
  14. package/src/contractFacet/offerSafety.d.ts +36 -0
  15. package/src/contractFacet/offerSafety.d.ts.map +1 -0
  16. package/src/contractFacet/reallocate.d.ts +6 -0
  17. package/src/contractFacet/reallocate.d.ts.map +1 -0
  18. package/src/contractFacet/rightsConservation.d.ts +13 -0
  19. package/src/contractFacet/rightsConservation.d.ts.map +1 -0
  20. package/src/contractFacet/typeGuards.d.ts +8 -0
  21. package/src/contractFacet/typeGuards.d.ts.map +1 -0
  22. package/src/contractFacet/types.d.ts +182 -0
  23. package/src/contractFacet/types.d.ts.map +1 -0
  24. package/src/contractFacet/vatRoot.d.ts +30 -0
  25. package/src/contractFacet/vatRoot.d.ts.map +1 -0
  26. package/src/contractFacet/zcfMint.d.ts +18 -0
  27. package/src/contractFacet/zcfMint.d.ts.map +1 -0
  28. package/src/contractFacet/zcfSeat.d.ts +12 -0
  29. package/src/contractFacet/zcfSeat.d.ts.map +1 -0
  30. package/src/contractFacet/zcfZygote.d.ts +19 -0
  31. package/src/contractFacet/zcfZygote.d.ts.map +1 -0
  32. package/src/contractSupport/atomicTransfer.d.ts +13 -0
  33. package/src/contractSupport/atomicTransfer.d.ts.map +1 -0
  34. package/src/contractSupport/bondingCurves.d.ts +7 -0
  35. package/src/contractSupport/bondingCurves.d.ts.map +1 -0
  36. package/src/contractSupport/durability.d.ts +10 -0
  37. package/src/contractSupport/durability.d.ts.map +1 -0
  38. package/src/contractSupport/index.d.ts +14 -0
  39. package/src/contractSupport/index.d.ts.map +1 -0
  40. package/src/contractSupport/prepare-ownable.d.ts +14 -0
  41. package/src/contractSupport/prepare-ownable.d.ts.map +1 -0
  42. package/src/contractSupport/priceAuthority.d.ts +36 -0
  43. package/src/contractSupport/priceAuthority.d.ts.map +1 -0
  44. package/src/contractSupport/priceAuthorityInitial.d.ts +8 -0
  45. package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -0
  46. package/src/contractSupport/priceAuthorityQuoteMint.d.ts +6 -0
  47. package/src/contractSupport/priceAuthorityQuoteMint.d.ts.map +1 -0
  48. package/src/contractSupport/priceAuthorityTransform.d.ts +23 -0
  49. package/src/contractSupport/priceAuthorityTransform.d.ts.map +1 -0
  50. package/src/contractSupport/priceQuote.d.ts +13 -0
  51. package/src/contractSupport/priceQuote.d.ts.map +1 -0
  52. package/src/contractSupport/recorder.d.ts +91 -0
  53. package/src/contractSupport/recorder.d.ts.map +1 -0
  54. package/src/contractSupport/stateMachine.d.ts +6 -0
  55. package/src/contractSupport/stateMachine.d.ts.map +1 -0
  56. package/src/contractSupport/statistics.d.ts +7 -0
  57. package/src/contractSupport/statistics.d.ts.map +1 -0
  58. package/src/contractSupport/testJigHelpers.d.ts +7 -0
  59. package/src/contractSupport/testJigHelpers.d.ts.map +1 -0
  60. package/src/contractSupport/topics.d.ts +52 -0
  61. package/src/contractSupport/topics.d.ts.map +1 -0
  62. package/src/contractSupport/types.d.ts +70 -0
  63. package/src/contractSupport/types.d.ts.map +1 -0
  64. package/src/contractSupport/zoeHelpers.d.ts +53 -0
  65. package/src/contractSupport/zoeHelpers.d.ts.map +1 -0
  66. package/src/contracts/atomicSwap.d.ts +20 -0
  67. package/src/contracts/atomicSwap.d.ts.map +1 -0
  68. package/src/contracts/auction/assertBidSeat.d.ts +2 -0
  69. package/src/contracts/auction/assertBidSeat.d.ts.map +1 -0
  70. package/src/contracts/auction/firstPriceLogic.d.ts +4 -0
  71. package/src/contracts/auction/firstPriceLogic.d.ts.map +1 -0
  72. package/src/contracts/auction/index.d.ts +84 -0
  73. package/src/contracts/auction/index.d.ts.map +1 -0
  74. package/src/contracts/auction/secondPriceLogic.d.ts +4 -0
  75. package/src/contracts/auction/secondPriceLogic.d.ts.map +1 -0
  76. package/src/contracts/automaticRefund.d.ts +29 -0
  77. package/src/contracts/automaticRefund.d.ts.map +1 -0
  78. package/src/contracts/autoswap.d.ts +51 -0
  79. package/src/contracts/autoswap.d.ts.map +1 -0
  80. package/src/contracts/barterExchange.d.ts +26 -0
  81. package/src/contracts/barterExchange.d.ts.map +1 -0
  82. package/src/contracts/callSpread/calculateShares.d.ts +2 -0
  83. package/src/contracts/callSpread/calculateShares.d.ts.map +1 -0
  84. package/src/contracts/callSpread/fundedCallSpread.d.ts +71 -0
  85. package/src/contracts/callSpread/fundedCallSpread.d.ts.map +1 -0
  86. package/src/contracts/callSpread/payoffHandler.d.ts +23 -0
  87. package/src/contracts/callSpread/payoffHandler.d.ts.map +1 -0
  88. package/src/contracts/callSpread/percent.d.ts +3 -0
  89. package/src/contracts/callSpread/percent.d.ts.map +1 -0
  90. package/src/contracts/callSpread/position.d.ts +10 -0
  91. package/src/contracts/callSpread/position.d.ts.map +1 -0
  92. package/src/contracts/callSpread/pricedCallSpread.d.ts +69 -0
  93. package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -0
  94. package/src/contracts/callSpread/types.d.ts +34 -0
  95. package/src/contracts/callSpread/types.d.ts.map +1 -0
  96. package/src/contracts/coveredCall-durable.d.ts +23 -0
  97. package/src/contracts/coveredCall-durable.d.ts.map +1 -0
  98. package/src/contracts/coveredCall.d.ts +68 -0
  99. package/src/contracts/coveredCall.d.ts.map +1 -0
  100. package/src/contracts/loan/addCollateral.d.ts +8 -0
  101. package/src/contracts/loan/addCollateral.d.ts.map +1 -0
  102. package/src/contracts/loan/borrow.d.ts +12 -0
  103. package/src/contracts/loan/borrow.d.ts.map +1 -0
  104. package/src/contracts/loan/close.d.ts +8 -0
  105. package/src/contracts/loan/close.d.ts.map +1 -0
  106. package/src/contracts/loan/index.d.ts +75 -0
  107. package/src/contracts/loan/index.d.ts.map +1 -0
  108. package/src/contracts/loan/lend.d.ts +8 -0
  109. package/src/contracts/loan/lend.d.ts.map +1 -0
  110. package/src/contracts/loan/liquidate.d.ts +5 -0
  111. package/src/contracts/loan/liquidate.d.ts.map +1 -0
  112. package/src/contracts/loan/scheduleLiquidation.d.ts +7 -0
  113. package/src/contracts/loan/scheduleLiquidation.d.ts.map +1 -0
  114. package/src/contracts/loan/types.d.ts +176 -0
  115. package/src/contracts/loan/types.d.ts.map +1 -0
  116. package/src/contracts/loan/updateDebt.d.ts +17 -0
  117. package/src/contracts/loan/updateDebt.d.ts.map +1 -0
  118. package/src/contracts/mintAndSellNFT.d.ts +35 -0
  119. package/src/contracts/mintAndSellNFT.d.ts.map +1 -0
  120. package/src/contracts/mintPayments.d.ts +34 -0
  121. package/src/contracts/mintPayments.d.ts.map +1 -0
  122. package/src/contracts/oracle.d.ts +38 -0
  123. package/src/contracts/oracle.d.ts.map +1 -0
  124. package/src/contracts/otcDesk.d.ts +90 -0
  125. package/src/contracts/otcDesk.d.ts.map +1 -0
  126. package/src/contracts/priceAggregator.d.ts +125 -0
  127. package/src/contracts/priceAggregator.d.ts.map +1 -0
  128. package/src/contracts/priceAggregatorTypes.d.ts +83 -0
  129. package/src/contracts/priceAggregatorTypes.d.ts.map +1 -0
  130. package/src/contracts/scaledPriceAuthority.d.ts +26 -0
  131. package/src/contracts/scaledPriceAuthority.d.ts.map +1 -0
  132. package/src/contracts/sellItems.d.ts +40 -0
  133. package/src/contracts/sellItems.d.ts.map +1 -0
  134. package/src/contracts/simpleExchange.d.ts +42 -0
  135. package/src/contracts/simpleExchange.d.ts.map +1 -0
  136. package/src/contracts/types.d.ts +87 -0
  137. package/src/contracts/types.d.ts.map +1 -0
  138. package/src/contracts/valueVow.contract.d.ts +20 -0
  139. package/src/contracts/valueVow.contract.d.ts.map +1 -0
  140. package/src/handleWarning.d.ts +4 -0
  141. package/src/handleWarning.d.ts.map +1 -0
  142. package/src/instanceRecordStorage.d.ts +5 -0
  143. package/src/instanceRecordStorage.d.ts.map +1 -0
  144. package/src/internal-types.d.ts +196 -0
  145. package/src/internal-types.d.ts.map +1 -0
  146. package/src/issuerRecord.d.ts +9 -0
  147. package/src/issuerRecord.d.ts.map +1 -0
  148. package/src/issuerStorage.d.ts +24 -0
  149. package/src/issuerStorage.d.ts.map +1 -0
  150. package/src/makeHandle.d.ts +6 -0
  151. package/src/makeHandle.d.ts.map +1 -0
  152. package/src/typeGuards.d.ts +185 -0
  153. package/src/typeGuards.d.ts.map +1 -0
  154. package/src/types.d.ts +29 -0
  155. package/src/types.d.ts.map +1 -0
  156. package/src/zoeService/createZCFVat.d.ts +2 -0
  157. package/src/zoeService/createZCFVat.d.ts.map +1 -0
  158. package/src/zoeService/escrowStorage.d.ts +12 -0
  159. package/src/zoeService/escrowStorage.d.ts.map +1 -0
  160. package/src/zoeService/feeMint.d.ts +27 -0
  161. package/src/zoeService/feeMint.d.ts.map +1 -0
  162. package/src/zoeService/installationStorage.d.ts +21 -0
  163. package/src/zoeService/installationStorage.d.ts.map +1 -0
  164. package/src/zoeService/instanceAdminStorage.d.ts +107 -0
  165. package/src/zoeService/instanceAdminStorage.d.ts.map +1 -0
  166. package/src/zoeService/internal-types.d.ts +125 -0
  167. package/src/zoeService/internal-types.d.ts.map +1 -0
  168. package/src/zoeService/invitationQueries.d.ts +9 -0
  169. package/src/zoeService/invitationQueries.d.ts.map +1 -0
  170. package/src/zoeService/makeInvitation.d.ts +9 -0
  171. package/src/zoeService/makeInvitation.d.ts.map +1 -0
  172. package/src/zoeService/offer/burnInvitation.d.ts +11 -0
  173. package/src/zoeService/offer/burnInvitation.d.ts.map +1 -0
  174. package/src/zoeService/offer/offer.d.ts +3 -0
  175. package/src/zoeService/offer/offer.d.ts.map +1 -0
  176. package/src/zoeService/originalZoeSeat.d.ts +36 -0
  177. package/src/zoeService/originalZoeSeat.d.ts.map +1 -0
  178. package/src/zoeService/startInstance.d.ts +7 -0
  179. package/src/zoeService/startInstance.d.ts.map +1 -0
  180. package/src/zoeService/types.d.ts +238 -0
  181. package/src/zoeService/types.d.ts.map +1 -0
  182. package/src/zoeService/zoe.d.ts +70 -0
  183. package/src/zoeService/zoe.d.ts.map +1 -0
  184. package/src/zoeService/zoeSeat.d.ts +31 -0
  185. package/src/zoeService/zoeSeat.d.ts.map +1 -0
  186. package/src/zoeService/zoeStorageManager.d.ts +47 -0
  187. package/src/zoeService/zoeStorageManager.d.ts.map +1 -0
  188. package/tools/fakePriceAuthority.d.ts +37 -0
  189. package/tools/fakePriceAuthority.d.ts.map +1 -0
  190. package/tools/fakeVatAdmin.d.ts +118 -0
  191. package/tools/fakeVatAdmin.d.ts.map +1 -0
  192. package/tools/manualPriceAuthority.d.ts +33 -0
  193. package/tools/manualPriceAuthority.d.ts.map +1 -0
  194. package/tools/manualTimer.d.ts +23 -0
  195. package/tools/manualTimer.d.ts.map +1 -0
  196. package/tools/prepare-test-env-ava.d.ts +2 -0
  197. package/tools/prepare-test-env-ava.d.ts.map +1 -0
  198. package/tools/prepare-test-env.d.ts +2 -0
  199. package/tools/prepare-test-env.d.ts.map +1 -0
  200. package/tools/scriptedOracle.d.ts +39 -0
  201. package/tools/scriptedOracle.d.ts.map +1 -0
  202. package/tools/scriptedPriceAuthority.d.ts +37 -0
  203. package/tools/scriptedPriceAuthority.d.ts.map +1 -0
  204. package/tools/setup-zoe.d.ts +43 -0
  205. package/tools/setup-zoe.d.ts.map +1 -0
  206. package/tools/test-utils.d.ts +24 -0
  207. package/tools/test-utils.d.ts.map +1 -0
  208. package/tools/types.d.ts +152 -0
  209. package/tools/types.d.ts.map +1 -0
  210. package/bundles/bundle-contractFacet-js-meta.json +0 -1075
  211. package/bundles/bundle-contractFacet.d.ts +0 -7
  212. package/bundles/bundle-contractFacet.d.ts.map +0 -1
  213. package/bundles/bundle-contractFacet.js +0 -1
  214. package/bundles/bundle-valueVow.contract-esbuild.js +0 -1
  215. package/bundles/bundle-valueVow.contract-js-meta.json +0 -560
  216. package/bundles/bundle-valueVow.contract.js +0 -1
  217. package/bundles/esbuild-bundle-20251113T203237.423Z.js +0 -1
  218. package/bundles/esbuild-bundle-20251113T203238.037Z.js +0 -1
  219. package/bundles/esbuild-bundle-20251113T203238.695Z.js +0 -1
  220. package/bundles/esbuild-bundle-20251113T203327.010Z.js +0 -1
  221. package/bundles/esbuild-bundle-20251113T203330.583Z.js +0 -1
  222. package/bundles/esbuild-bundle-20251113T232226.026Z.js +0 -1
  223. package/bundles/esbuild-bundle-20251113T232229.459Z.js +0 -1
  224. package/bundles/esbuild-bundle-20251114T162409.358Z.js +0 -1
  225. package/bundles/esbuild-bundle-20251114T162409.367Z.js +0 -1
  226. package/bundles/esbuild-bundle-20251114T162417.875Z.js +0 -1
  227. package/bundles/esbuild-bundle-20251114T162419.685Z.js +0 -1
  228. package/bundles/esbuild-bundle-20251114T162420.279Z.js +0 -1
  229. package/bundles/esbuild-bundle-20251114T162421.865Z.js +0 -1
  230. package/bundles/esbuild-bundle-20251114T162422.353Z.js +0 -1
  231. package/bundles/esbuild-bundle-20251114T162423.173Z.js +0 -1
  232. package/bundles/esbuild-bundle-20251114T162427.670Z.js +0 -1
  233. package/bundles/esbuild-bundle-20251114T162429.725Z.js +0 -1
  234. package/bundles/esbuild-bundle-20251114T162429.727Z.js +0 -1
  235. package/bundles/esbuild-bundle-20251114T162430.603Z.js +0 -1
  236. package/bundles/esbuild-bundle-20251114T162431.414Z.js +0 -1
  237. package/bundles/esbuild-bundle-20251114T162433.433Z.js +0 -1
  238. package/bundles/esbuild-bundle-20251114T162435.370Z.js +0 -1
  239. package/bundles/esbuild-bundle-20251114T162437.257Z.js +0 -1
  240. package/bundles/esbuild-bundle-20251114T162438.372Z.js +0 -1
  241. package/bundles/esbuild-bundle-20251114T162438.596Z.js +0 -1
  242. package/bundles/esbuild-bundle-20251114T162439.399Z.js +0 -1
  243. package/bundles/esbuild-bundle-20251114T162439.647Z.js +0 -1
  244. package/bundles/esbuild-bundle-20251114T162441.758Z.js +0 -1
  245. package/bundles/esbuild-bundle-20251114T162441.816Z.js +0 -1
  246. package/bundles/esbuild-bundle-20251114T162442.916Z.js +0 -1
  247. package/bundles/esbuild-bundle-20251114T162443.223Z.js +0 -1
  248. package/bundles/esbuild-bundle-20251114T162443.627Z.js +0 -1
  249. package/bundles/esbuild-bundle-20251114T162444.919Z.js +0 -1
  250. package/bundles/esbuild-bundle-20251114T162445.277Z.js +0 -1
  251. package/bundles/esbuild-bundle-20251114T162446.456Z.js +0 -1
  252. package/bundles/esbuild-bundle-20251114T162446.985Z.js +0 -1
  253. package/bundles/esbuild-bundle-20251114T162447.123Z.js +0 -1
  254. package/bundles/esbuild-bundle-20251114T162448.243Z.js +0 -1
  255. package/bundles/esbuild-bundle-20251114T162448.612Z.js +0 -1
  256. package/bundles/esbuild-bundle-20251114T162448.908Z.js +0 -1
  257. package/bundles/esbuild-bundle-20251114T162449.945Z.js +0 -1
  258. package/bundles/esbuild-bundle-20251114T162450.616Z.js +0 -1
  259. package/bundles/esbuild-bundle-20251114T162451.429Z.js +0 -1
  260. package/bundles/esbuild-bundle-20251114T162451.929Z.js +0 -1
  261. package/bundles/esbuild-bundle-20251114T162452.191Z.js +0 -1
  262. package/bundles/esbuild-bundle-20251114T162452.687Z.js +0 -1
  263. package/bundles/esbuild-bundle-20251114T162453.614Z.js +0 -1
  264. package/bundles/esbuild-bundle-20251114T162454.028Z.js +0 -1
  265. package/bundles/esbuild-bundle-20251114T162454.171Z.js +0 -1
  266. package/bundles/esbuild-bundle-20251114T162455.073Z.js +0 -1
  267. package/bundles/esbuild-bundle-20251114T162455.907Z.js +0 -1
  268. package/bundles/esbuild-bundle-20251114T162500.300Z.js +0 -1
  269. package/bundles/esbuild-bundle-20251114T162501.073Z.js +0 -1
  270. package/bundles/esbuild-bundle-20251114T162502.359Z.js +0 -1
  271. package/bundles/esbuild-bundle-20251114T162502.366Z.js +0 -1
  272. package/bundles/esbuild-bundle-20251114T162503.345Z.js +0 -1
  273. package/bundles/esbuild-bundle-20251114T162503.433Z.js +0 -1
  274. package/bundles/esbuild-bundle-20251114T162504.445Z.js +0 -1
  275. package/bundles/esbuild-bundle-20251114T162505.137Z.js +0 -1
  276. package/bundles/esbuild-bundle-20251114T162505.167Z.js +0 -1
  277. package/bundles/esbuild-bundle-20251114T162505.419Z.js +0 -1
  278. package/bundles/esbuild-bundle-20251114T162515.878Z.js +0 -1
  279. package/bundles/esbuild-bundle-20251114T162516.428Z.js +0 -1
  280. package/bundles/esbuild-bundle-20251114T162518.796Z.js +0 -1
  281. package/bundles/esbuild-bundle-20251114T162521.136Z.js +0 -1
  282. package/bundles/esbuild-bundle-20251114T162521.391Z.js +0 -1
  283. package/bundles/esbuild-bundle-20251114T162522.786Z.js +0 -1
  284. package/bundles/esbuild-bundle-20251114T162523.313Z.js +0 -1
  285. package/bundles/esbuild-bundle-20251114T162524.174Z.js +0 -1
  286. package/bundles/esbuild-bundle-20251114T162526.066Z.js +0 -1
  287. package/bundles/esbuild-bundle-20251114T162527.972Z.js +0 -1
  288. package/bundles/esbuild-bundle-20251114T162533.153Z.js +0 -1
  289. package/bundles/esbuild-bundle-20251114T162537.633Z.js +0 -1
  290. package/bundles/esbuild-bundle-20251114T162603.943Z.js +0 -1
  291. package/bundles/esbuild-bundle-20251114T162604.799Z.js +0 -1
  292. package/bundles/esbuild-bundle-20251114T162605.605Z.js +0 -1
  293. package/bundles/esbuild-bundle-20251114T162606.399Z.js +0 -1
  294. package/bundles/esbuild-bundle-20251114T162607.115Z.js +0 -1
  295. package/bundles/esbuild-bundle-20251114T162607.943Z.js +0 -1
  296. package/bundles/esbuild-bundle-20251114T162608.705Z.js +0 -1
  297. package/bundles/esbuild-bundle-20251114T162609.486Z.js +0 -1
  298. package/bundles/esbuild-bundle-20251114T162610.269Z.js +0 -1
  299. package/bundles/esbuild-bundle-20251114T162611.045Z.js +0 -1
  300. package/bundles/esbuild-bundle-20251114T162611.814Z.js +0 -1
  301. package/bundles/esbuild-bundle-20251114T162612.650Z.js +0 -1
  302. package/bundles/esbuild-bundle-20251114T162613.429Z.js +0 -1
  303. package/bundles/esbuild-bundle-20251114T162614.233Z.js +0 -1
  304. package/bundles/esbuild-bundle-20251114T162640.495Z.js +0 -1
  305. package/bundles/esbuild-bundle-20251114T162950.705Z.js +0 -1
  306. package/bundles/zcf.b64 +0 -1
  307. package/bundles/zcf.zip +0 -0
@@ -0,0 +1,36 @@
1
+ export const PriceAuthorityI: import("@endo/patterns").InterfaceGuard<{
2
+ getQuoteIssuer: import("@endo/patterns").MethodGuard;
3
+ getTimerService: import("@endo/patterns").MethodGuard;
4
+ quoteGiven: import("@endo/patterns").MethodGuard;
5
+ quoteWanted: import("@endo/patterns").MethodGuard;
6
+ makeQuoteNotifier: import("@endo/patterns").MethodGuard;
7
+ quoteAtTime: import("@endo/patterns").MethodGuard;
8
+ quoteWhenLT: import("@endo/patterns").MethodGuard;
9
+ quoteWhenLTE: import("@endo/patterns").MethodGuard;
10
+ quoteWhenGTE: import("@endo/patterns").MethodGuard;
11
+ quoteWhenGT: import("@endo/patterns").MethodGuard;
12
+ mutableQuoteWhenLT: import("@endo/patterns").MethodGuard;
13
+ mutableQuoteWhenLTE: import("@endo/patterns").MethodGuard;
14
+ mutableQuoteWhenGTE: import("@endo/patterns").MethodGuard;
15
+ mutableQuoteWhenGT: import("@endo/patterns").MethodGuard;
16
+ }>;
17
+ export function makeOnewayPriceAuthorityKit(opts: {
18
+ quoteIssuer: Issuer<"set", PriceDescription>;
19
+ notifier: ERef<Notifier<unknown>>;
20
+ timer: ERef<TimerService>;
21
+ createQuote: PriceQuoteCreate;
22
+ actualBrandIn: Brand<"nat">;
23
+ actualBrandOut: Brand<"nat">;
24
+ }): PriceAuthorityKit;
25
+ export type CompareAmount = (amount: Amount, amountLimit: Amount) => boolean;
26
+ export type Trigger = (createInstantQuote: PriceQuoteCreate) => Promise<void>;
27
+ import type { PriceDescription } from '@agoric/zoe/tools/types.js';
28
+ import type { Issuer } from '@agoric/ertp';
29
+ import type { Notifier } from '@agoric/notifier';
30
+ import type { ERef } from '@agoric/vow';
31
+ import type { TimerService } from '@agoric/time';
32
+ import type { PriceQuoteCreate } from '@agoric/zoe/tools/types.js';
33
+ import type { Brand } from '@agoric/ertp';
34
+ import type { PriceAuthorityKit } from '@agoric/zoe/tools/types.js';
35
+ import type { Amount } from '@agoric/ertp';
36
+ //# sourceMappingURL=priceAuthority.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priceAuthority.d.ts","sourceRoot":"","sources":["priceAuthority.js"],"names":[],"mappings":"AAoDA;;;;;;;;;;;;;;;GAiBG;AAYI,kDARJ;IAA8C,WAAW,EAAjD,OAAO,KAAK,EAAE,gBAAgB,CAAC;IACD,QAAQ,EAAtC,KAAK,SAAS,OAAO,CAAC,CAAC;IACE,KAAK,EAA9B,KAAK,YAAY,CAAC;IACK,WAAW,EAAlC,gBAAgB;IACG,aAAa,EAAhC,MAAM,KAAK,CAAC;IACO,cAAc,EAAjC,MAAM,KAAK,CAAC;CACpB,GAAU,iBAAiB,CAwT7B;qCA7WU,MAAM,eACN,MAAM,KACJ,OAAO;2CAiBT,gBAAgB,KACd,OAAO,CAAC,IAAI,CAAC;sCAlCyI,4BAA4B;4BAItK,cAAc;8BAHZ,kBAAkB;0BAMtB,aAAa;kCALL,cAAc;sCAFsH,4BAA4B;2BAKvK,cAAc;uCAL6H,4BAA4B;4BAGtK,cAAc"}
@@ -0,0 +1,8 @@
1
+ export function makeInitialTransform(priceOutPerIn: Ratio, priceAuthority: PriceAuthority, quoteMint: ERef<Mint<"set", PriceDescription>>, brandIn: Brand<"nat">, brandOut: Brand<"nat">): PriceAuthority;
2
+ import type { Ratio } from '@agoric/ertp';
3
+ import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
4
+ import type { PriceDescription } from '@agoric/zoe/tools/types.js';
5
+ import type { Mint } from '@agoric/ertp';
6
+ import type { ERef } from '@agoric/vow';
7
+ import type { Brand } from '@agoric/ertp';
8
+ //# sourceMappingURL=priceAuthorityInitial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priceAuthorityInitial.d.ts","sourceRoot":"","sources":["priceAuthorityInitial.js"],"names":[],"mappings":"AAgCO,oDAPI,KAAK,kBACL,cAAc,aACd,KAAK,KAAK,KAAK,EAAE,gBAAgB,CAAC,CAAC,WACnC,MAAM,KAAK,CAAC,YACZ,MAAM,KAAK,CAAC,GACV,cAAc,CAyF1B;2BAxGuB,cAAc;oCADuD,4BAA4B;sCAA5B,4BAA4B;0BAFnF,cAAc;0BAI7B,aAAa;2BAJE,cAAc"}
@@ -0,0 +1,6 @@
1
+ export function provideQuoteMint(baggage: Baggage): ERef<Mint<"set", PriceDescription>>;
2
+ import type { Baggage } from '@agoric/vat-data';
3
+ import type { PriceDescription } from '@agoric/zoe/tools/types.js';
4
+ import type { Mint } from '@agoric/ertp';
5
+ import type { ERef } from '@agoric/vow';
6
+ //# sourceMappingURL=priceAuthorityQuoteMint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priceAuthorityQuoteMint.d.ts","sourceRoot":"","sources":["priceAuthorityQuoteMint.js"],"names":[],"mappings":"AAiBO,0CAHI,OAAO,GACL,KAAK,KAAK,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAkB/C;6BA3ByB,kBAAkB;sCAD+D,4BAA4B;0BAEhH,cAAc;0BAEd,aAAa"}
@@ -0,0 +1,23 @@
1
+ export function mintQuote(quoteBrand: Brand<"set">, amountIn: Amount<"nat">, amountOut: Amount<"nat">, timer: TimerService, timestamp: TimestampRecord, quoteMint: ERef<Mint<"set", PriceDescription>>): Promise<PriceQuote>;
2
+ export function makePriceAuthorityTransform({ quoteMint, sourcePriceAuthority, sourceBrandIn, sourceBrandOut, actualBrandIn, actualBrandOut, makeSourceAmountIn, makeSourceAmountOut, transformSourceAmountIn, transformSourceAmountOut, }: {
3
+ quoteMint: ERef<Mint<"set", PriceDescription>>;
4
+ sourcePriceAuthority: ERef<PriceAuthority>;
5
+ sourceBrandIn: Brand<"nat">;
6
+ sourceBrandOut: Brand<"nat">;
7
+ actualBrandIn?: Brand<"nat"> | undefined;
8
+ actualBrandOut?: Brand<"nat"> | undefined;
9
+ makeSourceAmountIn?: ((amountIn: Amount<"nat">) => Amount<"nat">) | undefined;
10
+ makeSourceAmountOut?: ((amountOut: Amount<"nat">) => Amount<"nat">) | undefined;
11
+ transformSourceAmountIn?: ((sourceAmountIn: Amount<"nat">) => Amount<"nat">) | undefined;
12
+ transformSourceAmountOut?: ((sourceAmountOut: Amount<"nat">) => Amount<"nat">) | undefined;
13
+ }): Promise<PriceAuthority>;
14
+ import type { Brand } from '@agoric/ertp';
15
+ import type { Amount } from '@agoric/ertp';
16
+ import type { TimerService } from '@agoric/time';
17
+ import type { TimestampRecord } from '@agoric/time';
18
+ import type { PriceDescription } from '@agoric/zoe/tools/types.js';
19
+ import type { Mint } from '@agoric/ertp';
20
+ import type { ERef } from '@agoric/vow';
21
+ import type { PriceQuote } from '@agoric/zoe/tools/types.js';
22
+ import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
23
+ //# sourceMappingURL=priceAuthorityTransform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priceAuthorityTransform.d.ts","sourceRoot":"","sources":["priceAuthorityTransform.js"],"names":[],"mappings":"AA2BO,sCARI,MAAM,KAAK,CAAC,YACZ,OAAO,KAAK,CAAC,aACb,OAAO,KAAK,CAAC,SACb,YAAY,aACZ,eAAe,aACf,KAAK,KAAK,KAAK,EAAE,gBAAgB,CAAC,CAAC,GACjC,OAAO,CAAC,UAAU,CAAC,CAmB/B;AAeM,4OAXJ;IAAkD,SAAS,EAAnD,KAAK,KAAK,KAAK,EAAE,gBAAgB,CAAC,CAAC;IACR,oBAAoB,EAA/C,KAAK,cAAc,CAAC;IACD,aAAa,EAAhC,MAAM,KAAK,CAAC;IACO,cAAc,EAAjC,MAAM,KAAK,CAAC;IACQ,aAAa;IACb,cAAc;IACgB,kBAAkB,eAAzD,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACS,mBAAmB,gBAA1D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACa,uBAAuB,qBAA9D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACS,wBAAwB,sBAA/D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;CAAiC,2BA4N5F;2BAzQuB,cAAc;4BACb,cAAc;kCAHR,cAAc;qCACX,cAAc;sCAH8B,4BAA4B;0BAMnF,cAAc;0BACd,aAAa;gCAP0C,4BAA4B;oCAA5B,4BAA4B"}
@@ -0,0 +1,13 @@
1
+ export function getPriceDescription(quote: PriceQuote): PriceDescription;
2
+ export function getAmountIn(quote: PriceQuote): import("@agoric/ertp").NatAmount;
3
+ export function getAmountOut(quote: PriceQuote): import("@agoric/ertp").NatAmount;
4
+ /** @type {(quote: PriceQuote) => Timestamp} */
5
+ export const getTimestamp: (quote: PriceQuote) => Timestamp;
6
+ export function unitAmount(brand: Brand<"nat">): Promise<import("@agoric/ertp").NatAmount>;
7
+ export function makePriceQuoteIssuer(): IssuerKit<"set", PriceDescription>;
8
+ import type { PriceQuote } from '@agoric/zoe/tools/types.js';
9
+ import type { PriceDescription } from '@agoric/zoe/tools/types.js';
10
+ import type { Timestamp } from '@agoric/time';
11
+ import type { Brand } from '@agoric/ertp';
12
+ import type { IssuerKit } from '@agoric/ertp';
13
+ //# sourceMappingURL=priceQuote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"AAqBO,2CAHI,UAAU,GACR,gBAAgB,CAM5B;AAGM,mCADK,UAAU,oCACiD;AAEhE,oCADK,UAAU,oCACmD;AACzE,+CAA+C;AAC/C,2BADW,CAAC,KAAK,EAAE,UAAU,KAAK,SAAS,CAC+B;AAGnE,kCADK,MAAM,KAAK,CAAC,6CAMvB;AAGM,wCACM,UAAU,KAAK,EAAE,gBAAgB,CAAC,CAE5C;gCAxC0F,4BAA4B;sCAA5B,4BAA4B;+BAC7F,cAAc;2BAClB,cAAc;+BACV,cAAc"}
@@ -0,0 +1,91 @@
1
+ export function prepareRecorder(baggage: Baggage, marshaller: ERemote<EMarshaller>): (publisher: import("@agoric/notifier").Publisher<unknown>, storageNode: Remote<StorageNode>, valueShape?: TypedPattern<any> | undefined) => import("@endo/exo").Guarded<{
2
+ getStorageNode(): Remote<StorageNode>;
3
+ /**
4
+ * Memoizes the remote call to the storage node
5
+ *
6
+ * @returns {Promise<string>}
7
+ */
8
+ getStoragePath(): Promise<string>;
9
+ /**
10
+ * Marshalls before writing to storage or publisher to help ensure the two streams match.
11
+ *
12
+ * @param {any} value
13
+ * @returns {Promise<void>}
14
+ */
15
+ write(value: any): Promise<void>;
16
+ /**
17
+ * Like `write` but prevents future writes and terminates the publisher.
18
+ *
19
+ * @param {any} value
20
+ * @returns {Promise<void>}
21
+ */
22
+ writeFinal(value: any): Promise<void>;
23
+ }>;
24
+ export function defineRecorderKit({ makeRecorder, makeDurablePublishKit }: {
25
+ makeRecorder: MakeRecorder;
26
+ makeDurablePublishKit: ReturnType<typeof prepareDurablePublishKit>;
27
+ }): <T>(storageNode: Remote<StorageNode>, valueShape?: TypedPattern<T> | undefined) => RecorderKit<T>;
28
+ export function defineERecorderKit({ makeRecorder, makeDurablePublishKit }: {
29
+ makeRecorder: MakeRecorder;
30
+ makeDurablePublishKit: ReturnType<typeof prepareDurablePublishKit>;
31
+ }): <T>(storageNodeP: ERemote<StorageNode>, valueShape?: TypedPattern<T> | undefined) => EventualRecorderKit<T>;
32
+ export function prepareRecorderKit(baggage: Baggage, marshaller: ERemote<EMarshaller>): <T>(storageNode: Remote<StorageNode>, valueShape?: TypedPattern<T> | undefined) => RecorderKit<T>;
33
+ export function prepareRecorderKitMakers(baggage: Baggage, marshaller: ERemote<EMarshaller>): {
34
+ makeDurablePublishKit: <T>(options?: Parameters<(options?: {
35
+ valueDurability?: "mandatory" | undefined;
36
+ }) => import("@agoric/notifier").DurablePublishKitState>[0]) => PublishKit<T>;
37
+ makeRecorder: (publisher: import("@agoric/notifier").Publisher<unknown>, storageNode: Remote<StorageNode>, valueShape?: TypedPattern<any> | undefined) => import("@endo/exo").Guarded<{
38
+ getStorageNode(): Remote<StorageNode>;
39
+ /**
40
+ * Memoizes the remote call to the storage node
41
+ *
42
+ * @returns {Promise<string>}
43
+ */
44
+ getStoragePath(): Promise<string>;
45
+ /**
46
+ * Marshalls before writing to storage or publisher to help ensure the two streams match.
47
+ *
48
+ * @param {any} value
49
+ * @returns {Promise<void>}
50
+ */
51
+ write(value: any): Promise<void>;
52
+ /**
53
+ * Like `write` but prevents future writes and terminates the publisher.
54
+ *
55
+ * @param {any} value
56
+ * @returns {Promise<void>}
57
+ */
58
+ writeFinal(value: any): Promise<void>;
59
+ }>;
60
+ makeRecorderKit: <T>(storageNode: Remote<StorageNode>, valueShape?: TypedPattern<T> | undefined) => RecorderKit<T>;
61
+ makeERecorderKit: <T>(storageNodeP: ERemote<StorageNode>, valueShape?: TypedPattern<T> | undefined) => EventualRecorderKit<T>;
62
+ };
63
+ export namespace RecorderKitShape {
64
+ let recorder: import("@endo/patterns").Matcher;
65
+ let subscriber: import("@endo/patterns").Matcher;
66
+ }
67
+ export type Recorder<T> = {
68
+ getStorageNode(): Remote<StorageNode>;
69
+ getStoragePath(): Promise<string>;
70
+ write(value: T): Promise<void>;
71
+ writeFinal(value: T): Promise<void>;
72
+ };
73
+ export type RecorderKit<T> = Pick<PublishKit<T>, "subscriber"> & {
74
+ recorder: Recorder<T>;
75
+ };
76
+ export type EventualRecorderKit<T> = Pick<PublishKit<T>, "subscriber"> & {
77
+ recorderP: ERef<Recorder<T>>;
78
+ };
79
+ export type MakeRecorder = ReturnType<typeof prepareRecorder>;
80
+ export type MakeRecorderKit = ReturnType<typeof defineRecorderKit>;
81
+ export type MakeERecorderKit = ReturnType<typeof defineERecorderKit>;
82
+ import type { Baggage } from '@agoric/vat-data';
83
+ import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
84
+ import type { ERemote } from '@agoric/internal';
85
+ import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
86
+ import type { Remote } from '@agoric/internal';
87
+ import type { TypedPattern } from '@agoric/internal';
88
+ import { prepareDurablePublishKit } from '@agoric/notifier';
89
+ import type { PublishKit } from '@agoric/notifier';
90
+ import type { ERef } from '@agoric/vow';
91
+ //# sourceMappingURL=recorder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["recorder.js"],"names":[],"mappings":"AAiDO,yCAHI,OAAO,cACP,QAAQ,WAAW,CAAC;;IAmCzB;;;;OAIG;sBADU,OAAO,CAAC,MAAM,CAAC;IAa5B;;;;;OAKG;iBAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;IAa1B;;;;;OAKG;sBAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;GAkB/B;AAWM,2EAFI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,qBAAqB,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAAC,IAI5F,CAAC,eACH,OAAO,WAAW,CAAC,+CAEjB,WAAW,CAAC,CAAC,CAAC,CAQ5B;AAUM,4EAFI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,qBAAqB,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAAC,IAI5F,CAAC,gBACH,QAAQ,WAAW,CAAC,+CAElB,mBAAmB,CAAC,CAAC,CAAC,CAUpC;AAaM,4CAHI,OAAO,cACP,QAAQ,WAAW,CAAC,IA/ChB,CAAC,eACH,OAAO,WAAW,CAAC,+CAEjB,WAAW,CAAC,CAAC,CAAC,CAqD5B;AAaM,kDAHI,OAAO,cACP,QAAQ,WAAW,CAAC;;;;;;QAvIzB;;;;WAIG;0BADU,OAAO,CAAC,MAAM,CAAC;QAa5B;;;;;WAKG;qBAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;QAa1B;;;;;WAKG;0BAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;;sBA+BjB,CAAC,eACH,OAAO,WAAW,CAAC,+CAEjB,WAAW,CAAC,CAAC,CAAC;uBAoBd,CAAC,gBACH,QAAQ,WAAW,CAAC,+CAElB,mBAAmB,CAAC,CAAC,CAAC;EAiEpC;;;;;qBApNY,CAAC,IACD;IAAE,cAAc,IAAI,OAAO,WAAW,CAAC,CAAC;IAAC,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,UAAU,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE;wBAIjJ,CAAC,IACD,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAA;CAAE;gCAI7D,CAAC,IACD,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG;IAAE,SAAS,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE;2BAmGnE,UAAU,CAAC,OAAO,eAAe,CAAC;8BAuBlC,UAAU,CAAC,OAAO,iBAAiB,CAAC;+BA0BpC,UAAU,CAAC,OAAO,kBAAkB,CAAC;6BAjLzB,kBAAkB;iCAFd,iDAAiD;6BAD/B,kBAAkB;iCAIpC,0CAA0C;4BAJxB,kBAAkB;kCAAlB,kBAAkB;yCAPzB,kBAAkB;gCAS9B,kBAAkB;0BAGxB,aAAa"}
@@ -0,0 +1,6 @@
1
+ export function makeStateMachine(initialState: any, allowedTransitionsArray: any): {
2
+ canTransitionTo: (nextState: any) => any;
3
+ transitionTo: (nextState: any) => void;
4
+ getStatus: (_: any) => any;
5
+ };
6
+ //# sourceMappingURL=stateMachine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stateMachine.d.ts","sourceRoot":"","sources":["stateMachine.js"],"names":[],"mappings":"AAUA;;;;EAYC"}
@@ -0,0 +1,7 @@
1
+ export function calculateMedian<T>(samples: Array<T>, math: TypedMath<T>): T | undefined;
2
+ export type TypedMath<T> = {
3
+ add: (a: T, b: T) => T;
4
+ divide: (a: T, b: bigint) => T;
5
+ isGTE: (a: T, b: T) => boolean;
6
+ };
7
+ //# sourceMappingURL=statistics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["statistics.js"],"names":[],"mappings":"AAgBO,gCALM,CAAC,WACH,KAAK,CAAC,CAAC,CAAC,QACR,SAAS,CAAC,CAAC,CAAC,GACV,CAAC,GAAG,SAAS,CA0BzB;sBAvCY,CAAC;SAEA,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;YACjB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;WACtB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO"}
@@ -0,0 +1,7 @@
1
+ export function makeJigKit<T extends Record<string, unknown> = Record<string, unknown>>(): {
2
+ setTestJig: SetTestJig<T>;
3
+ getTestJig: () => T | undefined;
4
+ };
5
+ export type TestJigKit<T extends Record<string, unknown> = Record<string, unknown>> = ReturnType<typeof makeJigKit<T>>;
6
+ import type { SetTestJig } from '../contractFacet/types.js';
7
+ //# sourceMappingURL=testJigHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testJigHelpers.d.ts","sourceRoot":"","sources":["testJigHelpers.js"],"names":[],"mappings":"AAOO,2BAFiC,CAAC,SAA3B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE;;sBAWtB,CAAC,GAAG,SAAS;EAI5B;uBAGuC,CAAC,SAA3B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE,8BACzB,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;gCAvBhB,2BAA2B"}
@@ -0,0 +1,52 @@
1
+ export { SubscriberShape };
2
+ export const PublicTopicShape: import("@endo/patterns").Matcher;
3
+ /**
4
+ * @template {object} T topic value
5
+ * @typedef {{
6
+ * description?: string,
7
+ * subscriber: Subscriber<T>,
8
+ * storagePath: ERef<string>,
9
+ * }} PublicTopic
10
+ */
11
+ /**
12
+ * A {PublicTopic} in which the `storagePath` is always a resolved string and the `subscriber is remote.
13
+ *
14
+ * Useful when working with Vows and async-flow.
15
+ *
16
+ * @template {object} T topic value
17
+ * @typedef {{
18
+ * description?: string,
19
+ * subscriber: Remote<Subscriber<T>>,
20
+ * storagePath: string,
21
+ * }} ResolvedPublicTopic
22
+ */
23
+ export const TopicsRecordShape: import("@endo/patterns").Matcher;
24
+ export function makeRecorderTopic<T>(description: string, recorderKit: RecorderKit<T> | EventualRecorderKit<T>): PublicTopic<T>;
25
+ export type PublicTopic<T extends unknown> = {
26
+ description?: string;
27
+ subscriber: Subscriber<T>;
28
+ storagePath: ERef<string>;
29
+ };
30
+ /**
31
+ * A {PublicTopic} in which the `storagePath` is always a resolved string and the `subscriber is remote.
32
+ *
33
+ * Useful when working with Vows and async-flow.
34
+ */
35
+ export type ResolvedPublicTopic<T extends unknown> = {
36
+ description?: string;
37
+ subscriber: Remote<Subscriber<T>>;
38
+ storagePath: string;
39
+ };
40
+ export type TopicsRecord = {
41
+ [topicName: string]: PublicTopic<unknown>;
42
+ };
43
+ export type ResolvedTopicsRecord = {
44
+ [topicName: string]: ResolvedPublicTopic<unknown>;
45
+ };
46
+ import { SubscriberShape } from '@agoric/notifier';
47
+ import type { RecorderKit } from './recorder.js';
48
+ import type { EventualRecorderKit } from './recorder.js';
49
+ import type { Subscriber } from '@agoric/notifier';
50
+ import type { ERef } from '@agoric/vow';
51
+ import type { Remote } from '@agoric/internal';
52
+ //# sourceMappingURL=topics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topics.d.ts","sourceRoot":"","sources":["topics.js"],"names":[],"mappings":";AAcA,gEAME;AAEF;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AAEH,iEAA0E;AAoBnE,kCALM,CAAC,eACH,MAAM,eACN,YAAY,CAAC,CAAC,GAAG,oBAAoB,CAAC,CAAC,GACrC,WAAW,CAAC,CAAC,CAAC,CAU1B;wBAjDqB,CAAC,oBACV;IACR,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC;IAC1B,WAAW,EAAE,KAAK,MAAM,CAAC,CAAC;CAC3B;;;;;;gCAQkB,CAAC,oBACV;IACR,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB;2BAMS;IACZ,CAAK,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CAC3C;mCAIS;IACZ,CAAK,SAAS,EAAE,MAAM,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;CACnD;gCAvD4B,kBAAkB;iCAOpB,eAAe;yCACP,eAAe;gCAFxB,kBAAkB;0BAGxB,aAAa;4BAJX,kBAAkB"}
@@ -0,0 +1,70 @@
1
+ export type SeatGainsLossesRecord = {
2
+ seat: ZCFSeat;
3
+ /**
4
+ * - what the seat will
5
+ * gain as a result of this trade
6
+ */
7
+ gains: AmountKeywordRecord;
8
+ /**
9
+ * - what the seat [will]
10
+ * give up as a result of this trade. Losses is optional, but can
11
+ * only be omitted if the keywords for both seats are the same.
12
+ * If losses is not defined, the gains of the other seat is
13
+ * subtracted.
14
+ */
15
+ losses: AmountKeywordRecord;
16
+ };
17
+ /**
18
+ * If two seats can satisfy each other's wants, trade enough to
19
+ * satisfy the wants of both seats and exit both seats.
20
+ *
21
+ * The surplus remains with the original seat. For example if seat A
22
+ * gives 5 moola and seat B only wants 3 moola, seat A retains 2
23
+ * moola.
24
+ *
25
+ * If the swap fails, no assets are transferred, both seats will fail,
26
+ * and the function throws.
27
+ *
28
+ * The keywords for both seats must match.
29
+ */
30
+ export type Swap = (zcf: ZCF, leftSeat: ZCFSeat, rightSeat: ZCFSeat) => string;
31
+ /**
32
+ * Swap such that both seats gain what they want and lose everything
33
+ * that they gave. Only good for exact and entire swaps where each
34
+ * seat wants everything that the other seat has. The benefit of using
35
+ * this method is that the keywords of each seat do not matter.
36
+ *
37
+ * If the swap fails, no assets are transferred, both seats will fail,
38
+ * and the function throws.
39
+ */
40
+ export type SwapExact = (zcf: ZCF, leftSeat: ZCFSeat, rightSeat: ZCFSeat) => string;
41
+ /**
42
+ * A mapping of keywords to keywords.
43
+ */
44
+ export type KeywordKeywordRecord = Record<Keyword, Keyword>;
45
+ /**
46
+ * Given a mapping of keywords to keywords, invert the keys and
47
+ * values. This is used to map the offers made to another contract
48
+ * back to the keywords used in the first contract.
49
+ */
50
+ export type Reverse = (keywordRecord?: KeywordKeywordRecord | undefined) => KeywordKeywordRecord;
51
+ /**
52
+ * Remap the keywords of an amountKeywordRecord, issuerKeywordRecord, or a
53
+ * PaymentPKeywordRecord according to a mapping. This is used to remap
54
+ * from keywords used in contractA to keywords used in contractB and
55
+ * vice versa in `offerTo`
56
+ */
57
+ export type MapKeywords = (keywordRecord: AmountKeywordRecord | PaymentPKeywordRecord | IssuerKeywordRecord | undefined, keywordMapping: KeywordKeywordRecord) => any;
58
+ export type Ratio = {
59
+ numerator: Amount<"nat">;
60
+ denominator: Amount<"nat">;
61
+ };
62
+ export type ScaleAmount = (amount: Amount<"nat">, ratio: Ratio) => Amount<"nat">;
63
+ import type { ZCFSeat } from '@agoric/zoe';
64
+ import type { AmountKeywordRecord } from '@agoric/zoe';
65
+ import type { ZCF } from '@agoric/zoe';
66
+ import type { Keyword } from '@agoric/zoe';
67
+ import type { PaymentPKeywordRecord } from '@agoric/zoe';
68
+ import type { IssuerKeywordRecord } from '@agoric/zoe';
69
+ import type { Amount } from '@agoric/ertp';
70
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";UAYc,OAAO;;;;;WACP,mBAAmB;;;;;;;;YAEnB,mBAAmB;;;;;;;;;;;;;;;yBAqBtB,GAAG,YACH,OAAO,aACP,OAAO,KACL,MAAM;;;;;;;;;;8BAcR,GAAG,YACH,OAAO,aACP,OAAO,KACL,MAAM;;;;mCAIN,MAAM,CAAC,OAAO,EAAC,OAAO,CAAC;;;;;;4EAYvB,oBAAoB;;;;;;;0CAWtB,mBAAmB,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,SAAS,kBAC7E,oBAAoB;;eAKjB,OAAO,KAAK,CAAC;iBACb,OAAO,KAAK,CAAC;;mCAKhB,OAAO,KAAK,CAAC,SACb,KAAK,KACH,OAAO,KAAK,CAAC;6BA3F+E,aAAa;yCAAb,aAAa;yBAAb,aAAa;6BAAb,aAAa;2CAAb,aAAa;yCAAb,aAAa;4BAC7F,cAAc"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @import {Pattern} from '@endo/patterns';
3
+ * @import {AmountKeywordRecord, ContractMeta, Invitation, IssuerKeywordRecord, Keyword, PaymentPKeywordRecord, Proposal, ProposalRecord, UserSeat, ZCF, ZCFSeat} from '@agoric/zoe';
4
+ * @import {KeywordKeywordRecord, MapKeywords, Reverse, Swap, SwapExact} from './types.js';
5
+ * @import {Allocation} from '../contractFacet/types.js';
6
+ * @import {ERef} from '@agoric/vow';
7
+ */
8
+ export const defaultAcceptanceMsg: "The offer has been accepted. Once the contract has been completed, please check your payout";
9
+ export function assertIssuerKeywords(zcf: any, expected: any): void;
10
+ export function satisfies(_ignored: any, seat: ZcfSeatPartial, update: AmountKeywordRecord): 0 | 1;
11
+ /** @type {Swap} */
12
+ export const swap: Swap;
13
+ /** @type {SwapExact} */
14
+ export const swapExact: SwapExact;
15
+ export function fitProposalShape(seat: ZCFSeat, proposalShape: Pattern): void;
16
+ export function assertProposalShape(seat: ZCFSeat, expected: ExpectedRecord): void;
17
+ export function assertNatAssetKind(zcf: any, brand: any): void;
18
+ export const depositToSeatSuccessMsg: "Deposit and reallocation successful.";
19
+ export function depositToSeat(zcf: ZCF, recipientSeat: ZCFSeat, amounts: AmountKeywordRecord, payments: PaymentPKeywordRecord): Promise<string>;
20
+ export function withdrawFromSeat(zcf: ZCF, seat: ZCFSeat, amounts: AmountKeywordRecord): Promise<PaymentPKeywordRecord>;
21
+ export function saveAllIssuers(zcf: ZCF, issuerKeywordRecord?: IssuerKeywordRecord): Promise<(import("@agoric/zoe").ZoeIssuerRecord<any, import("@endo/patterns").Key> | undefined)[]>;
22
+ /** @type {MapKeywords} */
23
+ export const mapKeywords: MapKeywords;
24
+ export function offerTo<Args extends unknown, Result extends unknown>(zcf: ZCF, invitation: ERef<Invitation<Result, Args>>, keywordMapping: KeywordKeywordRecord | undefined, proposal: Proposal, fromSeat: ZCFSeat, toSeat?: ZCFSeat, offerArgs?: Args): Promise<{
25
+ userSeatPromise: Promise<UserSeat<Result>>;
26
+ deposited: Promise<AmountKeywordRecord>;
27
+ }>;
28
+ export type ZcfSeatPartial = {
29
+ getProposal: () => ProposalRecord;
30
+ getCurrentAllocation: () => Allocation;
31
+ };
32
+ export type ExpectedRecord = {
33
+ want?: Record<string, null> | undefined;
34
+ give?: Record<string, null> | undefined;
35
+ exit?: Partial<Record<never, null>> | undefined;
36
+ };
37
+ import type { AmountKeywordRecord } from '@agoric/zoe';
38
+ import type { Swap } from './types.js';
39
+ import type { SwapExact } from './types.js';
40
+ import type { ZCFSeat } from '@agoric/zoe';
41
+ import type { Pattern } from '@endo/patterns';
42
+ import type { ZCF } from '@agoric/zoe';
43
+ import type { PaymentPKeywordRecord } from '@agoric/zoe';
44
+ import type { IssuerKeywordRecord } from '@agoric/zoe';
45
+ import type { MapKeywords } from './types.js';
46
+ import type { Invitation } from '@agoric/zoe';
47
+ import type { ERef } from '@agoric/vow';
48
+ import type { KeywordKeywordRecord } from './types.js';
49
+ import type { Proposal } from '@agoric/zoe';
50
+ import type { UserSeat } from '@agoric/zoe';
51
+ import type { ProposalRecord } from '@agoric/zoe';
52
+ import type { Allocation } from '../contractFacet/types.js';
53
+ //# sourceMappingURL=zoeHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoeHelpers.d.ts","sourceRoot":"","sources":["zoeHelpers.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH,iIAAkI;AAI3H,oEAON;AAuBM,oCALI,GAAG,QACH,cAAc,UACd,mBAAmB,GACjB,CAAC,GAAC,CAAC,CAOf;AAED,mBAAmB;AACnB,mBADW,IAAI,CAkBb;AAEF,wBAAwB;AACxB,wBADW,SAAS,CAqBlB;AAiBK,uCAHI,OAAO,iBACP,OAAO,QAIgD;AAsB3D,0CAHI,OAAO,YACP,cAAc,QA8BxB;AAGM,+DAGN;AAED,6EAA8E;AAavE,mCANI,GAAG,iBACH,OAAO,WACP,mBAAmB,YACnB,qBAAqB,GACnB,OAAO,CAAC,MAAM,CAAC,CA8B3B;AAYM,sCALI,GAAG,QACH,OAAO,WACP,mBAAmB,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAQ1C;AAWM,oCAJI,GAAG,wBACH,mBAAmB,qGAgB7B;AAED,0BAA0B;AAC1B,0BADW,WAAW,CAYpB;AAiDK,wBAHe,IAAI,kBACJ,MAAM,uBA/BjB,GAAG,cAGH,KAAK,WAAW,MAAM,EAAE,IAAI,CAAC,CAAC,kBAG9B,oBAAoB,GAAG,SAAS,YAKhC,QAAQ,YAGR,OAAO,WAGP,OAAO,cAIP,IAAI,GAGF,OAAO,CAAC;IAAC,eAAe,EAAE,OAAO,CAAC,SAAS,MAAM,CAAC,CAAC,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAAC,CAAC,CA+D1G;;iBAxVa,MAAM,cAAc;0BACpB,MAAM,UAAU;;;;;;;yCAtByI,aAAa;0BACtG,YAAY;+BAAZ,YAAY;6BAD6E,aAAa;6BAD1J,gBAAgB;yBAC6H,aAAa;2CAAb,aAAa;yCAAb,aAAa;iCACtG,YAAY;gCAD6E,aAAa;0BAG7J,aAAa;0CAF0C,YAAY;8BAD6E,aAAa;8BAAb,aAAa;oCAAb,aAAa;gCAEvJ,2BAA2B"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @import {OfferHandler, ZCF} from '@agoric/zoe';
3
+ */
4
+ /**
5
+ * Trade one item for another.
6
+ * https://agoric.com/documentation/zoe/guide/contracts/atomic-swap.html
7
+ *
8
+ * The initial offer is { give: { Asset: A }, want: { Price: B } }.
9
+ * The outcome from the first offer is an invitation for the second party,
10
+ * who should offer { give: { Price: B }, want: { Asset: A } }, with a want
11
+ * amount no greater than the original's give, and a give amount at least as
12
+ * large as the original's want.
13
+ *
14
+ * @param {ZCF} zcf
15
+ */
16
+ export function start(zcf: ZCF): {
17
+ creatorInvitation: Promise<import("@agoric/zoe").Invitation<unknown, never>>;
18
+ };
19
+ import type { ZCF } from '@agoric/zoe';
20
+ //# sourceMappingURL=atomicSwap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"atomicSwap.d.ts","sourceRoot":"","sources":["atomicSwap.js"],"names":[],"mappings":"AAOA;;GAEG;AAEH;;;;;;;;;;;GAWG;AACH,2BAFW,GAAG;;EAqCb;yBAlDmC,aAAa"}
@@ -0,0 +1,2 @@
1
+ export function assertBidSeat(_zcf: any, sellSeat: any, bidSeat: any): void;
2
+ //# sourceMappingURL=assertBidSeat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertBidSeat.d.ts","sourceRoot":"","sources":["assertBidSeat.js"],"names":[],"mappings":"AAGO,4EASN"}
@@ -0,0 +1,4 @@
1
+ export function calcWinnerAndClose(zcf: ZCF, sellSeat: ZCFSeat, bidSeats: Array<ZCFSeat>): void;
2
+ import type { ZCF } from '@agoric/zoe';
3
+ import type { ZCFSeat } from '@agoric/zoe';
4
+ //# sourceMappingURL=firstPriceLogic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firstPriceLogic.d.ts","sourceRoot":"","sources":["firstPriceLogic.js"],"names":[],"mappings":"AAYO,wCAJI,GAAG,YACH,OAAO,YACP,KAAK,CAAC,OAAO,CAAC,QAmDxB;yBA1D8B,aAAa;6BAAb,aAAa"}
@@ -0,0 +1,84 @@
1
+ /**
2
+ * @import {TimerService} from '@agoric/time';
3
+ * @import {OfferHandler, ZCF} from '@agoric/zoe';
4
+ */
5
+ export const FIRST_PRICE: "first-price";
6
+ export const SECOND_PRICE: "second-price";
7
+ /**
8
+ * NOT TO BE USED IN PRODUCTION CODE. BIDS ARE PUBLIC. An auction
9
+ * contract in which the seller offers an Asset for sale, and states a
10
+ * minimum price. The auction closes at the deadline specified by the
11
+ * timeAuthority, bidDuration, winnerPriceOption parameters in the terms provided by
12
+ * the creator of the contract instance.
13
+ * Winner price option can be `first-price` or `second-price`, default to `second-price`.
14
+ *
15
+ * startInstance() specifies the issuers and the terms. An invitation
16
+ * for the seller is returned as the creatorInvitation. The seller's
17
+ * offer should look like { give: { Asset: asset }, want: { Ask:
18
+ * minimumBidAmount}} The asset can be non-fungible, but the Ask
19
+ * amount should be of a fungible brand. The bidder invitations can be
20
+ * made by calling makeBidInvitation on the object returned from the
21
+ * seller's offer. Each bidder can submit an offer: { give: { Bid:
22
+ * null } want: { Asset: null } }.
23
+ *
24
+ * @param {ZCF<{
25
+ * timeAuthority: TimerService,
26
+ * winnerPriceOption?: FIRST_PRICE | SECOND_PRICE,
27
+ * bidDuration: bigint,
28
+ * }>} zcf
29
+ */
30
+ export function start(zcf: ZCF<{
31
+ timeAuthority: TimerService;
32
+ winnerPriceOption?: "first-price" | "second-price";
33
+ bidDuration: bigint;
34
+ }>): {
35
+ creatorInvitation: Promise<import("@agoric/zoe").Invitation<{
36
+ makeBidInvitation: () => Promise<import("@agoric/zoe").Invitation<unknown, never>>;
37
+ getSessionDetails: () => {
38
+ auctionedAssets: any;
39
+ minimumBid: any;
40
+ winnerPriceOption: string;
41
+ closesAfter: any;
42
+ bidDuration: bigint;
43
+ timeAuthority: TimerService;
44
+ bids: string | any[];
45
+ };
46
+ } & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
47
+ makeBidInvitation: () => Promise<import("@agoric/zoe").Invitation<unknown, never>>;
48
+ getSessionDetails: () => {
49
+ auctionedAssets: any;
50
+ minimumBid: any;
51
+ winnerPriceOption: string;
52
+ closesAfter: any;
53
+ bidDuration: bigint;
54
+ timeAuthority: TimerService;
55
+ bids: string | any[];
56
+ };
57
+ }>, undefined>>;
58
+ publicFacet: {
59
+ getCurrentBids: () => any[] | "Bids are hidden for \"second price\" auctions";
60
+ getSessionDetails: () => {
61
+ auctionedAssets: any;
62
+ minimumBid: any;
63
+ winnerPriceOption: string;
64
+ closesAfter: any;
65
+ bidDuration: bigint;
66
+ timeAuthority: TimerService;
67
+ bids: string | any[];
68
+ };
69
+ } & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
70
+ getCurrentBids: () => any[] | "Bids are hidden for \"second price\" auctions";
71
+ getSessionDetails: () => {
72
+ auctionedAssets: any;
73
+ minimumBid: any;
74
+ winnerPriceOption: string;
75
+ closesAfter: any;
76
+ bidDuration: bigint;
77
+ timeAuthority: TimerService;
78
+ bids: string | any[];
79
+ };
80
+ }>;
81
+ };
82
+ import type { TimerService } from '@agoric/time';
83
+ import type { ZCF } from '@agoric/zoe';
84
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAgBA;;;GAGG;AAEH,0BAAoB,aAAa,CAAC;AAClC,2BAAqB,cAAc,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,2BANW,IAAI;IACZ,aAAa,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,8BAA0B,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyHJ;kCArJ8B,cAAc;yBACT,aAAa"}
@@ -0,0 +1,4 @@
1
+ export function calcWinnerAndClose(zcf: ZCF, sellSeat: ZCFSeat, bidSeats: Array<ZCFSeat>): void;
2
+ import type { ZCF } from '@agoric/zoe';
3
+ import type { ZCFSeat } from '@agoric/zoe';
4
+ //# sourceMappingURL=secondPriceLogic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secondPriceLogic.d.ts","sourceRoot":"","sources":["secondPriceLogic.js"],"names":[],"mappings":"AAYO,wCAJI,GAAG,YACH,OAAO,YACP,KAAK,CAAC,OAAO,CAAC,QA8DxB;yBArE8B,aAAa;6BAAb,aAAa"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @import {OfferHandler, ZCF} from '@agoric/zoe';
3
+ */
4
+ /**
5
+ * This is a very trivial contract to explain and test Zoe.
6
+ * AutomaticRefund just gives you back what you put in.
7
+ * AutomaticRefund tells Zoe to complete the
8
+ * offer, which gives the user their payout through Zoe. Other
9
+ * contracts will use these same steps, but they will have more
10
+ * sophisticated logic and interfaces.
11
+ *
12
+ * Since the contract doesn't attempt any reallocation, the offer can contain
13
+ * anything in `give` and `want`. The amount in `give` will be returned, and
14
+ * `want` will be ignored.
15
+ *
16
+ * @param {ZCF<{}>} zcf
17
+ */
18
+ export function start(zcf: ZCF<{}>): {
19
+ creatorInvitation: Promise<import("@agoric/zoe").Invitation<unknown, never>>;
20
+ publicFacet: {
21
+ getOffersCount: () => bigint;
22
+ makeInvitation: () => Promise<import("@agoric/zoe").Invitation<unknown, never>>;
23
+ } & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
24
+ getOffersCount: () => bigint;
25
+ makeInvitation: () => Promise<import("@agoric/zoe").Invitation<unknown, never>>;
26
+ }>;
27
+ };
28
+ import type { ZCF } from '@agoric/zoe';
29
+ //# sourceMappingURL=automaticRefund.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"automaticRefund.d.ts","sourceRoot":"","sources":["automaticRefund.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH;;;;;;;;;;;;;GAaG;AACH,2BAFW,IAAI,EAAE,CAAC;;;;;;;;;EAqBjB;yBApCmC,aAAa"}