@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/zoe",
3
- "version": "0.28.0-u23.0",
3
+ "version": "0.28.0-u23.1",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
@@ -41,16 +41,16 @@
41
41
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
42
42
  "dependencies": {
43
43
  "@agoric/base-zone": "0.3.0-u23.0",
44
- "@agoric/ertp": "0.18.0-u23.0",
45
- "@agoric/internal": "0.5.0-u23.0",
46
- "@agoric/notifier": "0.8.0-u23.0",
44
+ "@agoric/ertp": "0.18.0-u23.1",
45
+ "@agoric/internal": "0.5.0-u23.1",
46
+ "@agoric/notifier": "0.8.0-u23.1",
47
47
  "@agoric/store": "0.11.0-u23.0",
48
- "@agoric/swingset-liveslots": "0.12.0-u23.0",
49
- "@agoric/swingset-vat": "0.34.0-u23.0",
48
+ "@agoric/swingset-liveslots": "0.12.0-u23.1",
49
+ "@agoric/swingset-vat": "0.34.0-u23.1",
50
50
  "@agoric/time": "0.5.0-u23.0",
51
- "@agoric/vat-data": "0.7.0-u23.0",
52
- "@agoric/vow": "0.3.0-u23.0",
53
- "@agoric/zone": "0.4.0-u23.0",
51
+ "@agoric/vat-data": "0.7.0-u23.1",
52
+ "@agoric/vow": "0.3.0-u23.1",
53
+ "@agoric/zone": "0.4.0-u23.1",
54
54
  "@endo/bundle-source": "^4.1.2",
55
55
  "@endo/captp": "^4.4.8",
56
56
  "@endo/common": "^1.2.13",
@@ -97,5 +97,5 @@
97
97
  "typeCoverage": {
98
98
  "atLeast": 84.84
99
99
  },
100
- "gitHead": "1147be15b0704de17204d04e2407fa3192b98a1c"
100
+ "gitHead": "6a6343510742fef366aa7b4a31a862f9ef409656"
101
101
  }
@@ -0,0 +1,25 @@
1
+ export namespace zoeSourceSpecRegistry {
2
+ namespace zcf {
3
+ let bundleName: string;
4
+ let packagePath: string;
5
+ let sourceSpec: string;
6
+ }
7
+ namespace automaticRefund {
8
+ let bundleName_1: string;
9
+ export { bundleName_1 as bundleName };
10
+ let packagePath_1: string;
11
+ export { packagePath_1 as packagePath };
12
+ let sourceSpec_1: string;
13
+ export { sourceSpec_1 as sourceSpec };
14
+ }
15
+ }
16
+ export function getZoeSourceSpec(name: keyof typeof zoeSourceSpecRegistry): {
17
+ bundleName: string;
18
+ packagePath: string;
19
+ sourceSpec: string;
20
+ } | {
21
+ bundleName: string;
22
+ packagePath: string;
23
+ sourceSpec: string;
24
+ };
25
+ //# sourceMappingURL=source-spec-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-spec-registry.d.ts","sourceRoot":"","sources":["source-spec-registry.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAsBO,uCADK,MAAM,OAAO,qBAAqB;;;;;;;;EACqB"}
@@ -0,0 +1,13 @@
1
+ export const MAX_KEYWORD_LENGTH: 100;
2
+ export function assertKeywordName(keyword: any): void;
3
+ export function cleanKeywords(uncleanKeywordRecord: {
4
+ [name: string]: any;
5
+ }): string[];
6
+ export function coerceAmountPatternKeywordRecord(allegedAmountKeywordRecord: any, getAssetKindByBrand: any): Record<string | number | symbol, any>;
7
+ export function coerceAmountKeywordRecord(allegedAmountKeywordRecord: unknown, getAssetKindByBrand: any): AmountKeywordRecord;
8
+ export function cleanProposal(proposal: Proposal, getAssetKindByBrand: GetAssetKindByBrand): ProposalRecord;
9
+ import type { AmountKeywordRecord } from '@agoric/zoe';
10
+ import type { Proposal } from '@agoric/zoe';
11
+ import type { GetAssetKindByBrand } from './internal-types.js';
12
+ import type { ProposalRecord } from '@agoric/zoe';
13
+ //# sourceMappingURL=cleanProposal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cleanProposal.d.ts","sourceRoot":"","sources":["cleanProposal.js"],"names":[],"mappings":"AASA,iCAAkC,GAAG,CAAC;AAkB/B,sDAYN;AAMM,oDAHI;IAAC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,GACnB,MAAM,EAAE,CAcpB;AAEM,mJAsBN;AAQM,sEAJI,OAAO,uBACP,GAAC,GACC,mBAAmB,CAa/B;AA4CM,wCAJI,QAAQ,uBACR,mBAAmB,GACjB,cAAc,CA6B1B;yCA/JyE,aAAa;8BAAb,aAAa;yCACjD,qBAAqB;oCADe,aAAa"}
@@ -0,0 +1,11 @@
1
+ export function addToAllocation(allocation: Allocation, amountKeywordRecord: AmountKeywordRecord): AmountKeywordRecord;
2
+ export function subtractFromAllocation(allocation: Allocation, amountKeywordRecord: AmountKeywordRecord): AmountKeywordRecord;
3
+ /**
4
+ * An operation such as add or subtract.
5
+ */
6
+ export type Operation = (amount: Amount | undefined, diff: Amount | undefined, keyword: Keyword) => Amount;
7
+ import type { Allocation } from './types.js';
8
+ import type { AmountKeywordRecord } from '@agoric/zoe';
9
+ import type { Amount } from '@agoric/ertp';
10
+ import type { Keyword } from '@agoric/zoe';
11
+ //# sourceMappingURL=allocationMath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allocationMath.d.ts","sourceRoot":"","sources":["allocationMath.js"],"names":[],"mappings":"AAuFO,4CAJI,UAAU,uBACV,mBAAmB,GACjB,mBAAmB,CAI/B;AAOM,mDAJI,UAAU,uBACV,mBAAmB,GACjB,mBAAmB,CAI/B;;;;iCApFU,MAAM,GAAG,SAAS,QAClB,MAAM,GAAG,SAAS,WAClB,OAAO,KACL,MAAM;gCAZU,YAAY;yCADM,aAAa;4BAEnC,cAAc;6BAFQ,aAAa"}
@@ -0,0 +1,2 @@
1
+ export function evalContractBundle(bundle: any, additionalEndowments?: {}): Promise<any>;
2
+ //# sourceMappingURL=evalContractCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evalContractCode.d.ts","sourceRoot":"","sources":["evalContractCode.js"],"names":[],"mappings":"AAMA,yFA2BC"}
@@ -0,0 +1,2 @@
1
+ export function makeMakeExiter(baggage: any): (proposal: import("../types-index.js").ProposalRecord, zcfSeat: import("./types.js").ZCFSeat) => import("../internal-types.js").ExitObj;
2
+ //# sourceMappingURL=exit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["exit.js"],"names":[],"mappings":"AA4BO,sLAwGN"}
@@ -0,0 +1,14 @@
1
+ export function makeOfferHandlerStorage(zcfBaggage: any): {
2
+ storeOfferHandler: (offerHandler: any) => import("@agoric/zoe").Handle<"Invitation">;
3
+ takeOfferHandler: (invitationHandle: InvitationHandle, details?: Details) => OfferHandler;
4
+ };
5
+ /**
6
+ * The following should work. But for some reason,
7
+ */
8
+ export type Details = string | {};
9
+ export type PassableOfferHandler = RemotableBrand<any, any> & RemotableObject & OfferHandler;
10
+ import type { InvitationHandle } from '../types.js';
11
+ import type { OfferHandler } from '@agoric/zoe';
12
+ import type { RemotableBrand } from '@endo/eventual-send';
13
+ import type { RemotableObject } from '@endo/pass-style';
14
+ //# sourceMappingURL=offerHandlerStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offerHandlerStorage.d.ts","sourceRoot":"","sources":["offerHandlerStorage.js"],"names":[],"mappings":"AAkCO;;yCAgCwB,gBAAgB,YAAY,OAAO,KAAK,YAAY;EAsBlF;;;;sBAlEY,MAAM,GAAG,EAAE;mCASX,2BAAiB,eAAe,GAAG,YAAY;sCArBzB,aAAa;kCADjB,aAAa;oCAiBX,qBAAqB;qCACpB,kBAAkB"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * `isOfferSafe` checks offer safety for a single offer.
3
+ *
4
+ * Note: This implementation checks whether we fully satisfy
5
+ * `proposal.give` (giving a refund) or whether we fully satisfy
6
+ * `proposal.want`. Both can be fully satisfied.
7
+ *
8
+ * @param {ProposalRecord} proposal - the rules that accompanied the
9
+ * escrow of payments that dictate what the user expected to get back
10
+ * from Zoe. A proposal is a record with keys `give`, `want`, and
11
+ * `exit`. `give` and `want` are records with keywords as keys and
12
+ * amounts as values. The proposal is a user's understanding of the
13
+ * contract that they are entering when they make an offer.
14
+ * @param {AmountKeywordRecord} allocation - a record with keywords
15
+ * as keys and amounts as values. These amounts are the reallocation
16
+ * to be given to a user.
17
+ */
18
+ export function isOfferSafe(proposal: ProposalRecord, allocation: AmountKeywordRecord): boolean;
19
+ /**
20
+ * For this allocation to satisfy what the user wanted, their
21
+ * allocated amounts must be greater than or equal to proposal.want.
22
+ *
23
+ * @param {ProposalRecord} proposal - the rules that accompanied the
24
+ * escrow of payments that dictate what the user expected to get back
25
+ * from Zoe. A proposal is a record with keys `give`, `want`, and
26
+ * `exit`. `give` and `want` are records with keywords as keys and
27
+ * amounts as values. The proposal is a user's understanding of the
28
+ * contract that they are entering when they make an offer.
29
+ * @param {AmountKeywordRecord} allocation - a record with keywords
30
+ * as keys and amounts as values. These amounts are the reallocation
31
+ * to be given to a user.
32
+ */
33
+ export function satisfiesWant(proposal: ProposalRecord, allocation: AmountKeywordRecord): 0 | 1;
34
+ import type { ProposalRecord } from '@agoric/zoe';
35
+ import type { AmountKeywordRecord } from '@agoric/zoe';
36
+ //# sourceMappingURL=offerSafety.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offerSafety.d.ts","sourceRoot":"","sources":["offerSafety.js"],"names":[],"mappings":"AAmEA;;;;;;;;;;;;;;;;GAgBG;AACH,sCAVY,cAAc,cAMd,mBAAmB,WAS9B;AAzDD;;;;;;;;;;;;;GAaG;AACH,wCAVW,cAAc,cAMd,mBAAmB,SAKgB;oCA5CQ,aAAa;yCAAb,aAAa"}
@@ -0,0 +1,6 @@
1
+ export function makeAllocationMap(transfers: Array<TransferPart>): [ZCFSeat, AmountKeywordRecord][];
2
+ export type TransactionList = Array<AmountKeywordRecord>;
3
+ import type { TransferPart } from '@agoric/zoe';
4
+ import type { ZCFSeat } from '@agoric/zoe';
5
+ import type { AmountKeywordRecord } from '@agoric/zoe';
6
+ //# sourceMappingURL=reallocate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reallocate.d.ts","sourceRoot":"","sources":["reallocate.js"],"names":[],"mappings":"AAqBO,6CAHI,KAAK,CAAC,YAAY,CAAC,GACjB,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE,CA8E5C;8BAtFa,KAAK,CAAC,mBAAmB,CAAC;kCAHqB,aAAa;6BAAb,aAAa;yCAAb,aAAa"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * `assertRightsConserved` checks that the total amount per brand is
3
+ * equal to the total amount per brand in the proposed reallocation
4
+ *
5
+ * @param {Amount[]} previousAmounts - an array of the amounts before the
6
+ * proposed reallocation
7
+ * @param {Amount[]} newAmounts - an array of the amounts in the
8
+ * proposed reallocation
9
+ * @returns {void}
10
+ */
11
+ export function assertRightsConserved(previousAmounts: Amount[], newAmounts: Amount[]): void;
12
+ import type { Amount } from '@agoric/ertp';
13
+ //# sourceMappingURL=rightsConservation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rightsConservation.d.ts","sourceRoot":"","sources":["rightsConservation.js"],"names":[],"mappings":"AAsFA;;;;;;;;;GASG;AACH,uDANW,MAAM,EAAE,cAER,MAAM,EAAE,GAEN,IAAI,CAMhB;4BA9FwB,cAAc"}
@@ -0,0 +1,8 @@
1
+ export const ZcfSeatShape: import("@endo/patterns").Matcher;
2
+ export const ZcfMintI: import("@endo/patterns").InterfaceGuard<{
3
+ getIssuerRecord: import("@endo/patterns").MethodGuard;
4
+ mintGains: import("@endo/patterns").MethodGuard;
5
+ burnLosses: import("@endo/patterns").MethodGuard;
6
+ }>;
7
+ export const ZcfI: import("@endo/patterns").InterfaceGuard<any>;
8
+ //# sourceMappingURL=typeGuards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA,4DAAmD;AAEnD;;;;GAMG;AAEH,gEAWE"}
@@ -0,0 +1,182 @@
1
+ import type { AdditionalDisplayInfo, Amount, AnyAmount, AssetKind, Brand, DisplayInfo, Issuer, Payment } from '@agoric/ertp';
2
+ import type { Subscriber } from '@agoric/notifier';
3
+ import type { ERef } from '@endo/far';
4
+ import type { Passable } from '@endo/pass-style';
5
+ import type { Key, Pattern } from '@endo/patterns';
6
+ import type { AmountKeywordRecord, ExitRule, FeeMintAccess, Instance, InvitationDetails, Keyword, ProposalRecord, StandardTerms, UserSeat, ZoeService } from '../types-index.js';
7
+ import type { ContractStartFunction } from '../zoeService/utils.js';
8
+ /**
9
+ * Any passable non-thenable. Often an explanatory string.
10
+ */
11
+ export type Completion = Passable;
12
+ export type ZCFMakeEmptySeatKit = (exit?: ExitRule | undefined) => ZcfSeatKit;
13
+ export type InvitationAmount = Amount<'set', InvitationDetails>;
14
+ export type ZoeIssuerRecord<K extends AssetKind = AssetKind, M extends Key = Key> = {
15
+ brand: Brand<K>;
16
+ issuer: Issuer<K, M>;
17
+ assetKind: K;
18
+ displayInfo?: DisplayInfo<K>;
19
+ };
20
+ export type Allocation = Record<Keyword, AnyAmount>;
21
+ /**
22
+ * Zoe Contract Facet
23
+ *
24
+ * The Zoe interface specific to a contract instance. The Zoe Contract
25
+ * Facet is an API object used by running contract instances to access
26
+ * the Zoe state for that instance. The Zoe Contract Facet is accessed
27
+ * synchronously from within the contract, and usually is referred to
28
+ * in code as zcf.
29
+ */
30
+ export type ZCF<CT = Record<string, unknown>> = {
31
+ /**
32
+ * - atomically reallocate amounts among seats.
33
+ */
34
+ atomicRearrange: (transfers: TransferPart[]) => void;
35
+ /**
36
+ * - check
37
+ * whether a keyword is valid and unique and could be added in
38
+ * `saveIssuer`
39
+ */
40
+ assertUniqueKeyword: (keyword: Keyword) => void;
41
+ /**
42
+ * Informs Zoe about an issuer and returns a promise for acknowledging
43
+ * when the issuer is added and ready.
44
+ *
45
+ * @returns the AmountMath and brand synchronously accessible after
46
+ * saving
47
+ */
48
+ saveIssuer: <I extends Issuer>(issuerP: ERef<I>, keyword: Keyword) => Promise<I extends Issuer<infer K, infer M> ? ZoeIssuerRecord<K, M> : never>;
49
+ /**
50
+ * Make a credible Zoe invitation for a particular smart contract
51
+ * indicated by the `instance` in the details of the invitation. Zoe
52
+ * also puts the `installation` and a unique `handle` in the details
53
+ * of the invitation. The contract must provide a `description` for
54
+ * the invitation and should include whatever information is necessary
55
+ * for a potential buyer of the invitation to know what they are
56
+ * getting in the `customDetails`. `customDetails` will be
57
+ * placed in the details of the invitation.
58
+ */
59
+ makeInvitation: <R, A = undefined>(offerHandler: OfferHandler<ERef<R>, A>, description: string, customDetails?: object, proposalShape?: Pattern) => Promise<Invitation<R, A>>;
60
+ shutdown: (completion: Completion) => void;
61
+ shutdownWithFailure: import('@agoric/swingset-vat').ShutdownWithFailure;
62
+ getZoeService: () => ERef<ZoeService>;
63
+ getInvitationIssuer: () => Issuer<'set'>;
64
+ getTerms: () => StandardTerms & CT;
65
+ getBrandForIssuer: <K extends AssetKind>(issuer: Issuer<K>) => Brand<K>;
66
+ getIssuerForBrand: <K_1 extends AssetKind>(brand: Brand<K_1>) => Issuer<K_1>;
67
+ getAssetKind: (brand: Brand) => AssetKind;
68
+ makeZCFMint: <K_2 extends AssetKind = 'nat'>(keyword: Keyword, assetKind?: K_2 | undefined, displayInfo?: AdditionalDisplayInfo, options?: import('@agoric/ertp').IssuerOptionsRecord) => Promise<ZCFMint<K_2>>;
69
+ registerFeeMint: ZCFRegisterFeeMint;
70
+ makeEmptySeatKit: ZCFMakeEmptySeatKit;
71
+ setTestJig: SetTestJig;
72
+ stopAcceptingOffers: () => Promise<void>;
73
+ setOfferFilter: (strings: Array<string>) => Promise<void>;
74
+ getOfferFilter: () => Promise<Array<string>>;
75
+ getInstance: () => Instance;
76
+ };
77
+ export type TransferPart = [
78
+ fromSeat?: ZCFSeat,
79
+ toSeat?: ZCFSeat,
80
+ fromAmounts?: AmountKeywordRecord,
81
+ toAmounts?: AmountKeywordRecord
82
+ ];
83
+ export type ZCFRegisterFeeMint = (keyword: Keyword, allegedFeeMintAccess: FeeMintAccess) => Promise<ZCFMint<'nat'>>;
84
+ /**
85
+ * Provide a jig object for testing purposes only.
86
+ *
87
+ * The contract code provides a callback whose return result will
88
+ * be made available to the test that started this contract. The
89
+ * supplied callback will only be called in a testing context,
90
+ * never in production; i.e., it is only called if `testJigSetter`
91
+ * was supplied.
92
+ *
93
+ * If no `testFn` is supplied, then an empty jig will be used.
94
+ * An additional `zcf` property set to the current ContractFacet
95
+ * will be appended to the returned jig object (overriding any
96
+ * provided by the `testFn`).
97
+ */
98
+ export type SetTestJig<T extends Record<string, unknown> = Record<string, unknown>> = (testFn?: () => T) => void;
99
+ export type ZCFMint<K extends AssetKind = AssetKind> = {
100
+ getIssuerRecord: () => ZoeIssuerRecord<K>;
101
+ /**
102
+ * All the amounts in gains must be of this ZCFMint's brand.
103
+ * The gains' keywords are in the namespace of that seat.
104
+ * Add the gains to that seat's allocation.
105
+ * The resulting state must be offer safe. (Currently, increasing assets can
106
+ * never violate offer safety anyway.)
107
+ *
108
+ * Mint that amount of assets into the pooled purse.
109
+ * If a seat is provided, it is returned. Otherwise a new seat is
110
+ * returned.
111
+ */
112
+ mintGains: (gains: AmountKeywordRecord, zcfSeat?: ZCFSeat) => ZCFSeat;
113
+ /**
114
+ * All the amounts in losses must be of this ZCFMint's brand.
115
+ * The losses' keywords are in the namespace of that seat.
116
+ * Subtract losses from that seat's allocation.
117
+ * The resulting state must be offer safe.
118
+ *
119
+ * Burn that amount of assets from the pooled purse.
120
+ */
121
+ burnLosses: (losses: AmountKeywordRecord, zcfSeat: ZCFSeat) => void;
122
+ };
123
+ /**
124
+ * fail called with the reason for this failure, where reason is
125
+ * normally an instanceof Error.
126
+ */
127
+ export type ZCFSeatFail = (reason: unknown) => Error;
128
+ export type ZCFSeat = import('@endo/pass-style').RemotableObject & {
129
+ exit: (completion?: Completion) => void;
130
+ fail: ZCFSeatFail;
131
+ getSubscriber: () => Promise<Subscriber<Allocation>>;
132
+ hasExited: () => boolean;
133
+ getProposal: () => ProposalRecord;
134
+ /**
135
+ * @param brand used for filling in an empty amount if the `keyword`
136
+ * is not present in the allocation
137
+ */
138
+ getAmountAllocated: <B extends Brand<any>>(keyword: Keyword, brand?: B) => B extends Brand<infer K> ? Amount<K> : Amount;
139
+ getCurrentAllocation: () => Allocation;
140
+ isOfferSafe: (newAllocation: Allocation) => boolean;
141
+ };
142
+ export type ZcfSeatKit = {
143
+ zcfSeat: ZCFSeat;
144
+ userSeat: Promise<UserSeat>;
145
+ };
146
+ export type HandleOffer<OR, OA> = (seat: ZCFSeat, offerArgs: OA) => OR;
147
+ export type OfferHandler<OR = unknown, OA = never> = HandleOffer<OR, OA> | {
148
+ handle: HandleOffer<OR, OA>;
149
+ };
150
+ export type ContractMeta<SF extends ContractStartFunction> = {
151
+ customTermsShape?: Record<Parameters<SF>[0] extends ZCF<infer CT> ? keyof CT : never, Pattern>;
152
+ privateArgsShape?: {
153
+ [K in keyof Parameters<SF>[1]]: Pattern;
154
+ };
155
+ /**
156
+ * - `none` means that the contract is not upgradable.
157
+ * - `canUpgrade` means this code can perform an upgrade
158
+ * - `canBeUpgraded` means that the contract stores kinds durably such that the next version can upgrade
159
+ */
160
+ upgradability?: 'none' | 'canBeUpgraded' | 'canUpgrade' | undefined;
161
+ };
162
+ /**
163
+ * API for a contract start function.
164
+ */
165
+ export type ContractStartFn<PF = any, CF = any, CT = any, PA = any> = (zcf: ZCF<CT>, privateArgs: PA, baggage: import('@agoric/vat-data').Baggage) => ERef<ContractStartFnResult<PF, CF>>;
166
+ export type ContractStartFnResult<PF, CF> = {
167
+ publicFacet?: PF;
168
+ creatorFacet?: CF;
169
+ creatorInvitation?: Promise<Invitation<any, any>> | undefined;
170
+ };
171
+ /**
172
+ * @deprecated use the parameterized version
173
+ */
174
+ export type AdminFacet = import('../zoeService/utils.js').AdminFacet<any>;
175
+ declare const OfferReturn: unique symbol;
176
+ declare const OfferArgs: unique symbol;
177
+ export type Invitation<R = unknown, A = undefined> = Payment<'set', InvitationDetails> & {
178
+ [OfferReturn]?: R;
179
+ [OfferArgs]?: A;
180
+ };
181
+ export {};
182
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,MAAM,EACN,SAAS,EACT,SAAS,EACT,KAAK,EACL,WAAW,EACX,MAAM,EACN,OAAO,EACR,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EACV,mBAAmB,EACnB,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,aAAa,EACb,QAAQ,EACR,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAA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AAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @import {ZCF, ZoeService} from '@agoric/zoe';
3
+ * @import {Baggage} from '@agoric/vat-data';
4
+ * @import {VatPowers} from '@agoric/swingset-vat';
5
+ * @import {BundleCap} from '@agoric/swingset-vat';
6
+ * @import {StartZcf} from '../internal-types.js';
7
+ * @import {Issuer} from '@agoric/ertp';
8
+ */
9
+ /**
10
+ * @param {VatPowers & { testJigSetter: ( {zcf}: {zcf: ZCF} ) => void }} powers
11
+ * @param {{contractBundleCap: BundleCap, zoeService: ZoeService, invitationIssuer: Issuer<'set'>, privateArgs?: any}} vatParameters
12
+ * @param {Baggage} baggage
13
+ */
14
+ export function buildRootObject(powers: VatPowers & {
15
+ testJigSetter: ({ zcf }: {
16
+ zcf: ZCF;
17
+ }) => void;
18
+ }, vatParameters: {
19
+ contractBundleCap: BundleCap;
20
+ zoeService: ZoeService;
21
+ invitationIssuer: Issuer<"set">;
22
+ privateArgs?: any;
23
+ }, baggage: Baggage): Promise<import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>>;
24
+ import type { VatPowers } from '@agoric/swingset-vat';
25
+ import type { ZCF } from '@agoric/zoe';
26
+ import type { BundleCap } from '@agoric/swingset-vat';
27
+ import type { ZoeService } from '@agoric/zoe';
28
+ import type { Issuer } from '@agoric/ertp';
29
+ import type { Baggage } from '@agoric/vat-data';
30
+ //# sourceMappingURL=vatRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vatRoot.d.ts","sourceRoot":"","sources":["vatRoot.js"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AAEH;;;;GAIG;AACH,wCAJW,SAAS,GAAG;IAAE,aAAa,EAAE,CAAE,EAAC,GAAG,EAAC,EAAE;QAAC,GAAG,EAAE,GAAG,CAAA;KAAC,KAAM,IAAI,CAAA;CAAE,iBAC5D;IAAC,iBAAiB,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,UAAU,CAAC;IAAC,gBAAgB,EAAE,OAAO,KAAK,CAAC,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAC,WAC1G,OAAO,iIA8DjB;+BAvE2B,sBAAsB;yBAFhB,aAAa;+BAGnB,sBAAsB;gCAHhB,aAAa;4BAKtB,cAAc;6BAJb,kBAAkB"}
@@ -0,0 +1,18 @@
1
+ export function sumAmountKeywordRecord(amr: AmountKeywordRecord, issuerRecord: ZoeIssuerRecord): Amount;
2
+ export function prepareZcMint(zcfBaggage: Baggage, recordIssuer: {
3
+ (keyword: string, issuerRecord: ZoeIssuerRecord): void;
4
+ }, getAssetKindByBrand: GetAssetKindByBrand, makeEmptySeatKit: (exit?: undefined) => {
5
+ zcfSeat: any;
6
+ userSeat: Promise<UserSeat>;
7
+ }, reallocator: ZcfMintReallocator): (keyword: string, zoeMintP: ERef<ZoeMint<K>>) => Promise<ZCFMint<K>>;
8
+ import type { AmountKeywordRecord } from '@agoric/zoe';
9
+ import type { ZoeIssuerRecord } from '@agoric/zoe';
10
+ import type { Amount } from '@agoric/ertp';
11
+ import type { Baggage } from '@agoric/vat-data';
12
+ import type { GetAssetKindByBrand } from '../internal-types.js';
13
+ import type { UserSeat } from '@agoric/zoe';
14
+ import type { ZcfMintReallocator } from '../internal-types.js';
15
+ import type { ZCFMint } from '@agoric/zoe';
16
+ import type { ZoeMint } from '../internal-types.js';
17
+ import type { ERef } from '@agoric/vow';
18
+ //# sourceMappingURL=zcfMint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"AA0BO,4CAJI,mBAAmB,gBACnB,eAAe,GACb,MAAM,CAYlB;AASM,0CANI,OAAO,gBACP;IAAE,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,GAAG,IAAI,CAAA;CAAE,uBAC1D,mBAAmB,oBACnB,CAAC,IAAI,CAAC,EAAE,SAAS,KAAK;IAAE,OAAO,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,eACnE,kBAAkB,IA0Gb,SAJH,MAIU,EAAE,UAHZ,KAAK,QAAQ,CAAC,CAAC,CAGK,KAFlB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAWjC;yCAnJkF,aAAa;qCAAb,aAAa;4BAMvE,cAAc;6BALb,kBAAkB;yCAEN,sBAAsB;8BAHuB,aAAa;wCAI3D,sBAAsB;6BAJwB,aAAa;6BAKtE,sBAAsB;0BAEzB,aAAa"}
@@ -0,0 +1,12 @@
1
+ export function createSeatManager(zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, getAssetKindByBrand: GetAssetKindByBrand, shutdownWithFailure: ShutdownWithFailure, zcfBaggage: Baggage): {
2
+ seatManager: ZcfSeatManager;
3
+ zcfMintReallocator: ZcfMintReallocator;
4
+ };
5
+ import type { ZoeInstanceAdmin } from '../internal-types.js';
6
+ import type { ERef } from '@agoric/vow';
7
+ import type { GetAssetKindByBrand } from '../internal-types.js';
8
+ import type { ShutdownWithFailure } from '@agoric/swingset-vat';
9
+ import type { Baggage } from '@agoric/vat-data';
10
+ import type { ZcfSeatManager } from '../internal-types.js';
11
+ import type { ZcfMintReallocator } from '../internal-types.js';
12
+ //# sourceMappingURL=zcfSeat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zcfSeat.d.ts","sourceRoot":"","sources":["zcfSeat.js"],"names":[],"mappings":"AA6CO,oDANI,KAAK,gBAAgB,CAAC,uBACtB,mBAAmB,uBACnB,mBAAmB,cACnB,OAAO,GACL;IAAE,WAAW,EAAE,cAAc,CAAC;IAAC,kBAAkB,EAAE,kBAAkB,CAAA;CAAE,CAuTnF;sCAtUkD,sBAAsB;0BAIlD,aAAa;yCAHE,sBAAsB;yCALtB,sBAAsB;6BAClC,kBAAkB;oCAGO,sBAAsB;wCAEpC,sBAAsB"}
@@ -0,0 +1,19 @@
1
+ export function makeZCFZygote(powers: VatPowers, zoeService: ERef<ZoeService>, invitationIssuer: Issuer<"set">, testJigSetter: ({ zcf }: {
2
+ zcf: ZCF;
3
+ }) => void, contractBundleCap: BundleCap, zcfBaggage?: Baggage): Promise<ZCFZygote>;
4
+ export type ZCFZygote = {
5
+ startContract: (instanceAdminFromZoe: ERef<ZoeInstanceAdmin>, instanceRecordFromZoe: InstanceRecord, issuerStorageFromZoe: IssuerRecords, privateArgs?: object) => Promise<ExecuteContractResult>;
6
+ restartContract: (privateArgs?: object) => void;
7
+ };
8
+ import type { VatPowers } from '@agoric/swingset-vat';
9
+ import type { ZoeService } from '@agoric/zoe';
10
+ import type { ERef } from '@agoric/vow';
11
+ import type { Issuer } from '@agoric/ertp';
12
+ import type { ZCF } from '@agoric/zoe';
13
+ import type { BundleCap } from '@agoric/swingset-vat';
14
+ import type { Baggage } from '@agoric/vat-data';
15
+ import type { ZoeInstanceAdmin } from '../internal-types.js';
16
+ import type { InstanceRecord } from '../zoeService/utils.js';
17
+ import type { IssuerRecords } from '../internal-types.js';
18
+ import type { ExecuteContractResult } from '../internal-types.js';
19
+ //# sourceMappingURL=zcfZygote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zcfZygote.d.ts","sourceRoot":"","sources":["zcfZygote.js"],"names":[],"mappings":"AAsEO,sCARI,SAAS,cACT,KAAK,UAAU,CAAC,oBAChB,OAAO,KAAK,CAAC,iBACb,CAAE,EAAC,GAAG,EAAC,EAAE;IAAC,GAAG,EAAE,GAAG,CAAA;CAAC,KAAM,IAAI,qBAC7B,SAAS,eACT,OAAO,GACL,OAAO,CAAC,SAAS,CAAC,CAod9B;;mBAvea,CAAC,oBAAoB,EAAE,KAAK,gBAAgB,CAAC,EACpD,qBAAqB,EAAE,cAAc,EACrC,oBAAoB,EAAE,aAAa,EACnC,WAAW,CAAC,EAAE,MAAM,KACnB,OAAO,CAAC,qBAAqB,CAAC;qBACxB,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI;;+BAtBgB,sBAAsB;gCAGhB,aAAa;0BASxD,aAAa;4BAFX,cAAc;yBAP2B,aAAa;+BAHnB,sBAAsB;6BACxD,kBAAkB;sCAIqB,sBAAsB;oCACtD,wBAAwB;mCADQ,sBAAsB;2CAE/C,sBAAsB"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @import {AmountKeywordRecord, TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
3
+ */
4
+ export const TransferPartShape: import("@endo/patterns").Matcher;
5
+ export function atomicRearrange(zcf: ZCF, transfers: TransferPart[]): void;
6
+ export function fromOnly(fromSeat: ZCFSeat, fromAmounts: AmountKeywordRecord): TransferPart;
7
+ export function toOnly(toSeat: ZCFSeat, toAmounts: AmountKeywordRecord): TransferPart;
8
+ export function atomicTransfer(zcf: ZCF, fromSeat?: ZCFSeat, toSeat?: ZCFSeat, fromAmounts?: AmountKeywordRecord, toAmounts?: AmountKeywordRecord): void;
9
+ import type { ZCF } from '@agoric/zoe';
10
+ import type { TransferPart } from '@agoric/zoe';
11
+ import type { ZCFSeat } from '@agoric/zoe';
12
+ import type { AmountKeywordRecord } from '@agoric/zoe';
13
+ //# sourceMappingURL=atomicTransfer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"atomicTransfer.d.ts","sourceRoot":"","sources":["atomicTransfer.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH,iEAGE;AAyCK,qCAHI,GAAG,aACH,YAAY,EAAE,QAIxB;AAcM,mCAJI,OAAO,eACP,mBAAmB,GACjB,YAAY,CAGmB;AAcrC,+BAJI,OAAO,aACP,mBAAmB,GACjB,YAAY,CAG0B;AAW5C,oCANI,GAAG,aACH,OAAO,WACP,OAAO,gBACP,mBAAmB,cACnB,mBAAmB,QAQgD;yBAhGZ,aAAa;kCAAb,aAAa;6BAAb,aAAa;yCAAb,aAAa"}
@@ -0,0 +1,7 @@
1
+ export function getInputPrice(inputValue: any, inputReserve: any, outputReserve: any, feeBasisPoints?: bigint): NatValue;
2
+ export function getOutputPrice(outputValue: any, inputReserve: any, outputReserve: any, feeBasisPoints?: bigint): NatValue;
3
+ export function calcLiqValueToMint(liqTokenSupply: bigint, inputValue: bigint, inputReserve: bigint): NatValue;
4
+ export function calcSecondaryRequired(centralIn: any, centralPool: any, secondaryPool: any, secondaryIn: any): NatValue;
5
+ export function calcValueToRemove(liqTokenSupply: any, poolValue: any, liquidityValueIn: any): bigint;
6
+ import type { NatValue } from '@agoric/ertp';
7
+ //# sourceMappingURL=bondingCurves.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bondingCurves.d.ts","sourceRoot":"","sources":["bondingCurves.js"],"names":[],"mappings":"AAoCO,0CAXI,GAAG,gBAEH,GAAG,iBAEH,GAAG,mBAEH,MAAM,GAGJ,QAAQ,CAoBpB;AAqBM,4CAXI,GAAG,gBAEH,GAAG,iBAEH,GAAG,mBAEH,MAAM,GAGJ,QAAQ,CAwBpB;AAcM,mDALI,MAAM,cACN,MAAM,gBACN,MAAM,GACJ,QAAQ,CAepB;AAcM,iDAPI,GAAG,eACH,GAAG,iBACH,GAAG,eACH,GAAG,GAED,QAAQ,CA4BpB;AAIM,sGAUN;8BA7K0B,cAAc"}
@@ -0,0 +1,10 @@
1
+ export function makeEphemeraProvider<E extends {}, K extends WeakKey>(init: (key: K) => E): (key: K) => E;
2
+ export function provideEmptySeat(zcf: ZCF, baggage: Baggage, name: string): ZCFSeat;
3
+ export function provideAll<T extends Record<string, () => ERef<any>>>(baggage: MapStore<string, any>, thunks: T): Promise<{ [K in keyof T]: Awaited<ReturnType<T[K]>>; }>;
4
+ export function provideSingleton<T extends () => ERef<any>>(mapStore: Baggage, key: string, makeValue: T, withValue?: (value: Awaited<ReturnType<T>>) => void): Promise<Awaited<ReturnType<T>>>;
5
+ import type { ZCF } from '@agoric/zoe';
6
+ import type { Baggage } from '@agoric/swingset-liveslots';
7
+ import type { ZCFSeat } from '@agoric/zoe';
8
+ import type { ERef } from '@agoric/vow';
9
+ import type { MapStore } from '@agoric/swingset-liveslots';
10
+ //# sourceMappingURL=durability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"durability.d.ts","sourceRoot":"","sources":["durability.js"],"names":[],"mappings":"AAoBO,qCAJW,CAAC,SAAN,EAAI,EACM,CAAC,SAAV,OAAQ,QACX,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,eASA,CAAC,CAWxB;AAWM,sCALI,GAAG,WACH,OAAO,QACP,MAAM,GACJ,OAAO,CAInB;AAiCM,2BALwC,CAAC,SAAlC,MAAM,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC,CAAE,WACnC,SAAS,MAAM,EAAE,GAAG,CAAC,UACrB,CAAC,GACC,OAAO,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAE,CAAC,CAuBlE;AAgBM,iCAPwB,CAAC,SAAnB,MAAO,KAAK,GAAG,CAAE,YACnB,OAAO,OACP,MAAM,aACN,CAAC,cACD,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GACrC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAc3C;yBA9H8B,aAAa;6BADlB,4BAA4B;6BACvB,aAAa;0BACrB,aAAa;8BAHT,4BAA4B"}
@@ -0,0 +1,14 @@
1
+ export { natSafeMath } from "@agoric/ertp/src/safeMath.js";
2
+ export { makeStateMachine } from "./stateMachine.js";
3
+ export * from "@agoric/ertp/src/ratio.js";
4
+ export * from "./durability.js";
5
+ export * from "./prepare-ownable.js";
6
+ export * from "./priceAuthority.js";
7
+ export * from "./priceQuote.js";
8
+ export * from "./recorder.js";
9
+ export * from "./statistics.js";
10
+ export * from "./topics.js";
11
+ export { calcLiqValueToMint, calcSecondaryRequired, calcValueToRemove, getInputPrice, getOutputPrice } from "./bondingCurves.js";
12
+ export { atomicRearrange, atomicTransfer, fromOnly, toOnly } from "./atomicTransfer.js";
13
+ export { assertIssuerKeywords, assertNatAssetKind, assertProposalShape, defaultAcceptanceMsg, depositToSeat, fitProposalShape, offerTo, satisfies, saveAllIssuers, swap, swapExact, withdrawFromSeat } from "./zoeHelpers.js";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export function prepareOwnable<MN extends (string | symbol)[]>(zone: Zone, makeInvitation: ZCF["makeInvitation"], uKindName: string, uMethodNames: MN, options?: OwnableOptions): <U>(underlying: U) => Partial<U> & {
2
+ makeTransferInvitation: () => Invitation<U>;
3
+ };
4
+ export type OwnableOptions = {
5
+ /**
6
+ * The `interfaceName` of the underlying interface guard.
7
+ * Defaults to the `uKindName`.
8
+ */
9
+ uInterfaceName?: string | undefined;
10
+ };
11
+ import type { Zone } from '@agoric/base-zone';
12
+ import type { ZCF } from '@agoric/zoe';
13
+ import type { Invitation } from '../types-index.js';
14
+ //# sourceMappingURL=prepare-ownable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepare-ownable.d.ts","sourceRoot":"","sources":["prepare-ownable.js"],"names":[],"mappings":"AAgDO,+BAlB4B,EAAE,SAAvB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAG,QACvB,IAAI,kBACJ,GAAG,CAAC,gBAAgB,CAAC,aAQrB,MAAM,gBAEN,EAAE,YAGF,cAAc,GACZ,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG;IAAC,sBAAsB,EAAE,MAAM,WAAW,CAAC,CAAC,CAAA;CAAC,CA6D5F;;;;;;;;0BAtGsB,mBAAmB;yBACpB,aAAa;gCACN,mBAAmB"}