@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 @@
1
+ {"version":3,"file":"scaledPriceAuthority.d.ts","sourceRoot":"","sources":["scaledPriceAuthority.js"],"names":[],"mappings":"AAyCO,6BALI,IAAI,wBAAwB,CAAC,eAC7B,MAAM,WACN,OAAO;;;;GA2DjB;;0BA5Ea,KAAK,cAAc,CAAC;;;;aACpB,KAAK;;;;cACL,KAAK;;;;;;yBAVG,aAAa;6BACT,kBAAkB;oCAFiD,4BAA4B;0BAIlG,aAAa;2BADZ,cAAc"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @import {ZCF} from '@agoric/zoe';
3
+ * @import {SellItemsPublicFacet} from './types.js';
4
+ * @import {SellItemsCreatorFacet} from './types.js';
5
+ * @import {Amount} from '@agoric/ertp';
6
+ */
7
+ /**
8
+ * Sell items in exchange for money. Items may be fungible or
9
+ * non-fungible and multiple items may be bought at once. Money must
10
+ * be fungible.
11
+ *
12
+ * The `pricePerItem` is to be set in the terms. It is expected that all items
13
+ * are sold for the same uniform price.
14
+ *
15
+ * The initial offer should be { give: { Items: items } }, accompanied by
16
+ * terms as described above.
17
+ * Buyers use offers that match { want: { Items: items } give: { Money: m } }.
18
+ * The items provided should match particular items that the seller still has
19
+ * available to sell, and the money should be pricePerItem times the number of
20
+ * items requested.
21
+ *
22
+ * When all the items have been sold, the contract will terminate, triggering
23
+ * the creator's payout. If the creator has an onDemand exit clause, they can
24
+ * exit early to collect their winnings. The remaining items will still be
25
+ * available for sale, but the creator won't be able to collect later earnings.
26
+ *
27
+ * @param {ZCF<{pricePerItem: Amount<'nat'>}>} zcf
28
+ */
29
+ export function start(zcf: ZCF<{
30
+ pricePerItem: Amount<"nat">;
31
+ }>): {
32
+ creatorFacet: SellItemsCreatorFacet;
33
+ creatorInvitation: Promise<import("@agoric/zoe").Invitation<string, undefined>>;
34
+ publicFacet: SellItemsPublicFacet;
35
+ };
36
+ import type { Amount } from '@agoric/ertp';
37
+ import type { ZCF } from '@agoric/zoe';
38
+ import type { SellItemsCreatorFacet } from './types.js';
39
+ import type { SellItemsPublicFacet } from './types.js';
40
+ //# sourceMappingURL=sellItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sellItems.d.ts","sourceRoot":"","sources":["sellItems.js"],"names":[],"mappings":"AAgBA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,2BAFW,IAAI;IAAC,YAAY,EAAE,OAAO,KAAK,CAAC,CAAA;CAAC,CAAC;;;;EAuH5C;4BA9IwB,cAAc;yBAHjB,aAAa;2CAEK,YAAY;0CADb,YAAY"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
3
+ */
4
+ /**
5
+ * SimpleExchange is an exchange with a simple matching algorithm, which allows
6
+ * an unlimited number of parties to create new orders or accept existing
7
+ * orders. The notifier allows callers to find the current list of orders.
8
+ * https://agoric.com/documentation/zoe/guide/contracts/simple-exchange.html
9
+ *
10
+ * The SimpleExchange uses Asset and Price as its keywords. The contract treats
11
+ * the two keywords symmetrically. New offers can be created and existing offers
12
+ * can be accepted in either direction.
13
+ *
14
+ * { give: { 'Asset', simoleans(5n) }, want: { 'Price', quatloos(3) } }
15
+ * { give: { 'Price', quatloos(8) }, want: { 'Asset', simoleans(3n) } }
16
+ *
17
+ * The Asset is treated as an exact amount to be exchanged, while the
18
+ * Price is a limit that may be improved on. This simple exchange does
19
+ * not partially fill orders.
20
+ *
21
+ * The publicFacet is returned from the contract.
22
+ *
23
+ * @param {ZCF} zcf
24
+ */
25
+ export function start(zcf: ZCF): {
26
+ publicFacet: {
27
+ makeInvitation: () => Promise<Invitation<unknown, never>>;
28
+ getNotifier: () => import("@agoric/notifier").Notifier<{
29
+ buys: any;
30
+ sells: any;
31
+ }>;
32
+ } & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
33
+ makeInvitation: () => Promise<Invitation<unknown, never>>;
34
+ getNotifier: () => import("@agoric/notifier").Notifier<{
35
+ buys: any;
36
+ sells: any;
37
+ }>;
38
+ }>;
39
+ };
40
+ import type { ZCF } from '@agoric/zoe';
41
+ import type { Invitation } from '@agoric/zoe';
42
+ //# sourceMappingURL=simpleExchange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simpleExchange.d.ts","sourceRoot":"","sources":["simpleExchange.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BAFW,GAAG;;;;;;;;;;;;;;EA+Gb;yBArIsE,aAAa;gCAAb,aAAa"}
@@ -0,0 +1,87 @@
1
+ export type SellItemsPublicFacet = {
2
+ getItemsIssuer: () => Issuer;
3
+ getAvailableItems: () => Amount;
4
+ };
5
+ export type SellItemsCreatorOnly = {
6
+ makeBuyerInvitation: () => Promise<Invitation>;
7
+ };
8
+ export type SellItemsCreatorFacet = SellItemsPublicFacet & SellItemsCreatorOnly;
9
+ export type SellItemsParameters = {
10
+ customValueProperties: Record<string, any>;
11
+ count: number;
12
+ moneyIssuer: Issuer;
13
+ sellItemsInstallation: Installation;
14
+ pricePerItem: Amount;
15
+ };
16
+ export type SellItemsResult = {
17
+ sellItemsCreatorSeat: UserSeat;
18
+ sellItemsCreatorFacet: SellItemsCreatorFacet;
19
+ sellItemsInstance: Instance;
20
+ sellItemsPublicFacet: SellItemsPublicFacet;
21
+ };
22
+ export type MintAndSellNFTCreatorFacet = {
23
+ sellTokens: (sellParams: SellItemsParameters) => Promise<SellItemsResult>;
24
+ getIssuer: () => Issuer;
25
+ };
26
+ export type AutomaticRefundPublicFacet = {
27
+ getOffersCount: () => bigint;
28
+ makeInvitation: () => Promise<Invitation>;
29
+ };
30
+ export type AutoswapPublicFacet = {
31
+ /**
32
+ * synonym for
33
+ * makeSwapInInvitation
34
+ */
35
+ makeSwapInvitation: () => Promise<Invitation>;
36
+ /**
37
+ * make an invitation
38
+ * that allows one to do a swap in which the In amount is specified and the Out
39
+ * amount is calculated
40
+ */
41
+ makeSwapInInvitation: () => Promise<Invitation>;
42
+ /**
43
+ * make an invitation
44
+ * that allows one to do a swap in which the Out amount is specified and the In
45
+ * amount is calculated
46
+ */
47
+ makeSwapOutInvitation: () => Promise<Invitation>;
48
+ /**
49
+ * make an
50
+ * invitation that allows one to add liquidity to the pool.
51
+ */
52
+ makeAddLiquidityInvitation: () => Promise<Invitation>;
53
+ /**
54
+ * make an
55
+ * invitation that allows one to remove liquidity from the pool.
56
+ */
57
+ makeRemoveLiquidityInvitation: () => Promise<Invitation>;
58
+ getLiquidityIssuer: () => Issuer;
59
+ /**
60
+ * get the current value of
61
+ * liquidity held by investors.
62
+ */
63
+ getLiquiditySupply: () => bigint;
64
+ /**
65
+ * calculate the amount of brandOut that will be returned if the amountIn is
66
+ * offered using makeSwapInInvitation at the current price.
67
+ */
68
+ getInputPrice: (amountIn: Amount, brandOut: Brand) => Amount;
69
+ /**
70
+ * calculate the amount of brandIn that is required in order to get amountOut
71
+ * using makeSwapOutInvitation at the current price
72
+ */
73
+ getOutputPrice: (amountOut: Amount, brandIn: Brand) => Amount;
74
+ /**
75
+ * get an
76
+ * AmountKeywordRecord showing the current balances in the pool.
77
+ */
78
+ getPoolAllocation: () => Record<string, Amount>;
79
+ };
80
+ import type { Issuer } from '@agoric/ertp';
81
+ import type { Amount } from '@agoric/ertp';
82
+ import type { Invitation } from '../types-index.js';
83
+ import type { Installation } from '@agoric/zoe';
84
+ import type { UserSeat } from '../types-index.js';
85
+ import type { Instance } from '@agoric/zoe';
86
+ import type { Brand } from '@agoric/ertp';
87
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";oBAUc,MAAM,MAAM;uBACZ,MAAM,MAAM;;;yBAGZ,MAAM,OAAO,CAAC,UAAU,CAAC;;oCAE1B,oBAAoB,GAAG,oBAAoB;;2BAK1C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WACnB,MAAM;iBACN,MAAM;2BACN,YAAY;kBACZ,MAAM;;;0BAGN,QAAQ;2BACR,qBAAqB;uBACrB,QAAQ;0BACR,oBAAoB;;;gBAGpB,CAAC,UAAU,EAAE,mBAAmB,KAAK,OAAO,CAAC,eAAe,CAAC;eAC7D,MAAM,MAAM;;;oBAKZ,MAAM,MAAM;oBACZ,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;;wBAKzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;0BAEzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;2BAGzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;gCAGzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;mCAEzB,MAAM,OAAO,CAAC,UAAU,CAAC;wBAEzB,MAAM,MAAM;;;;;wBACZ,MAAM,MAAM;;;;;mBAEZ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,KAAK,MAAM;;;;;oBAG7C,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM;;;;;uBAG7C,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;4BAhEjB,cAAc;4BADd,cAAc;gCAEV,mBAAmB;kCAHP,aAAa;8BAI3B,mBAAmB;8BAJL,aAAa;2BAK9B,cAAc"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @import {ContractMeta, HandleOffer, ZCF} from '@agoric/zoe';
3
+ * @import { Baggage } from '@agoric/vat-data';
4
+ */
5
+ /** @type {ContractMeta<typeof start>} */
6
+ export const meta: ContractMeta<typeof start>;
7
+ export function start(zcf: ZCF<{}>, _privateArgs: undefined, baggage: Baggage): {
8
+ publicFacet: import("@endo/exo").Guarded<{
9
+ getValue(): import("@agoric/vow").Vow<any>;
10
+ setValue(value: any): void;
11
+ makeGetterInvitation(): Promise<import("@agoric/zoe").Invitation<import("@agoric/vow").Vow<any>, undefined>>;
12
+ makeSetterInvitation(): Promise<import("@agoric/zoe").Invitation<void, {
13
+ value: unknown;
14
+ }>>;
15
+ }>;
16
+ };
17
+ import type { ContractMeta } from '@agoric/zoe';
18
+ import type { ZCF } from '@agoric/zoe';
19
+ import type { Baggage } from '@agoric/vat-data';
20
+ //# sourceMappingURL=valueVow.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valueVow.contract.d.ts","sourceRoot":"","sources":["valueVow.contract.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAGnC;AAYK,2BAJI,IAAI,EAAE,CAAC,gBACP,SAAS,WACT,OAAO;;;;;;mBA8B4B,OAAO;;;EAWpD;kCA1DgD,aAAa;yBAAb,aAAa;6BAClC,kBAAkB"}
@@ -0,0 +1,4 @@
1
+ export function handlePWarning(promise: Promise<any>): void;
2
+ export function handlePKitWarning(promiseKit: PromiseRecord<any>): void;
3
+ import type { PromiseRecord } from '@endo/promise-kit';
4
+ //# sourceMappingURL=handleWarning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleWarning.d.ts","sourceRoot":"","sources":["handleWarning.js"],"names":[],"mappings":"AAWO,wCAHI,OAAO,CAAC,GAAG,CAAC,GACV,IAAI,CAIhB;AASM,8CAHI,cAAc,GAAG,CAAC,GAChB,IAAI,CAIhB;mCAvB+B,mBAAmB"}
@@ -0,0 +1,5 @@
1
+ export function makeInstanceRecordStorage(baggage: Baggage): (ir: InstanceRecord) => InstanceState;
2
+ import type { Baggage } from '@agoric/vat-data';
3
+ import type { InstanceRecord } from './zoeService/utils.js';
4
+ import type { InstanceState } from './internal-types.js';
5
+ //# sourceMappingURL=instanceRecordStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"AAqCO,mDAHI,OAAO,GACL,CAAC,EAAE,EAAE,cAAc,KAAK,aAAa,CAqFjD;6BA1GyB,kBAAkB;oCAEX,uBAAuB;mCACxB,qBAAqB"}
@@ -0,0 +1,196 @@
1
+ export type SeatData = {
2
+ proposal: ProposalRecord;
3
+ initialAllocation: Allocation;
4
+ seatHandle: SeatHandle;
5
+ offerArgs?: object;
6
+ };
7
+ /**
8
+ * Given an allocation, withdraw payments to create a payout
9
+ */
10
+ export type WithdrawPayments = (allocation: Allocation) => PaymentPKeywordRecord;
11
+ export type WithdrawFacet = {
12
+ withdrawPayments: (allocation: Allocation) => PaymentPKeywordRecord;
13
+ };
14
+ export type InstanceAdminHelper = {
15
+ exitZoeSeatAdmin: (zoeSeatAdmin: ZoeSeatAdmin) => void;
16
+ hasExited: (zoeSeatAdmin: ZoeSeatAdmin) => boolean;
17
+ };
18
+ export type ZoeSeatAdminKit = {
19
+ userSeat: UserSeat;
20
+ zoeSeatAdmin: ZoeSeatAdmin;
21
+ };
22
+ /**
23
+ * Make the Zoe seat admin, user seat and a notifier
24
+ */
25
+ export type MakeZoeSeatAdminKit = (initialAllocation: Allocation, instanceAdminHelper: InstanceAdminHelper, proposal: ProposalRecord, withdrawFacet: WithdrawFacet, exitObj: ERef<ExitObj>, offerResult?: ERef<unknown>, baggage: Baggage) => ZoeSeatAdminKit;
26
+ export type ZoeSeatAdminExit = (completion?: Completion) => void;
27
+ export type ZoeSeatAdminMethods = {
28
+ replaceAllocation: (allocation: Allocation) => void;
29
+ exit: ZoeSeatAdminExit;
30
+ /**
31
+ * called with the reason
32
+ * for calling fail on this seat, where reason is normally an instanceof Error.
33
+ */
34
+ fail: ShutdownWithFailure;
35
+ getExitSubscriber: () => Subscriber<AmountKeywordRecord>;
36
+ };
37
+ export type ZoeSeatAdmin = RemotableObject & ZoeSeatAdminMethods;
38
+ export type HandleOfferResult = {
39
+ offerResultPromise: Promise<Passable>;
40
+ exitObj: ExitObj;
41
+ };
42
+ /**
43
+ * The seatHandle may be created in either the Zoe or ZCF vat,
44
+ * depending on whether the seat comes from a normal offer or a
45
+ * request by the contract for an "empty" seat.
46
+ */
47
+ export type InstanceAdmin = {
48
+ assertAcceptingOffers: () => void;
49
+ makeUserSeat: (invitationHandle: InvitationHandle, initialAllocation: Allocation, proposal: ProposalRecord, offerArgs?: object) => UserSeat;
50
+ makeNoEscrowSeat: MakeNoEscrowSeat;
51
+ getInstance: () => Instance;
52
+ getPublicFacet: () => object;
53
+ getIssuers: () => IssuerKeywordRecord;
54
+ getBrands: () => BrandKeywordRecord;
55
+ getTerms: () => object;
56
+ getOfferFilter: () => string[];
57
+ getInstallation: () => Installation;
58
+ exitAllSeats: (completion: Completion) => void;
59
+ failAllSeats: ShutdownWithFailure;
60
+ stopAcceptingOffers: () => void;
61
+ isBlocked: (string: string) => boolean;
62
+ initDelayedState: (handleOfferObj: HandleOfferObj, publicFacet: unknown) => void;
63
+ setOfferFilter: (strings: string[]) => void;
64
+ };
65
+ /**
66
+ * The seatHandle may be created in either the Zoe or ZCF vat,
67
+ * depending on whether the seat comes from a normal offer or a
68
+ * request by the contract for an "empty" seat.
69
+ */
70
+ export type HandleOfferObj = {
71
+ handleOffer: (invitationHandle: InvitationHandle, seatData: SeatData) => HandleOfferResult;
72
+ };
73
+ export type ZoeInstanceAdminMakeInvitation = (invitationHandle: InvitationHandle, description: string, customDetails?: Record<string, any> | undefined, proposalShape?: Pattern) => Invitation;
74
+ export type ZoeInstanceAdmin = {
75
+ makeInvitation: ZoeInstanceAdminMakeInvitation;
76
+ saveIssuer: <I extends Issuer>(issuerP: ERef<I>, keyword: Keyword) => Promise<I extends Issuer<infer K, infer M> ? ZoeIssuerRecord<K, M> : never>;
77
+ makeZoeMint: MakeZoeMint;
78
+ registerFeeMint: RegisterFeeMint;
79
+ makeNoEscrowSeat: MakeNoEscrowSeat;
80
+ replaceAllocations: ReplaceAllocations;
81
+ exitAllSeats: (completion: Completion) => void;
82
+ failAllSeats: ShutdownWithFailure;
83
+ exitSeat: (seatHandle: SeatHandle, completion: Completion) => void;
84
+ failSeat: (seatHandle: SeatHandle, reason: Error) => void;
85
+ stopAcceptingOffers: () => void;
86
+ setOfferFilter: (strings: Array<string>) => void;
87
+ getOfferFilter: () => Array<string>;
88
+ getExitSubscriber: (seatHandle: SeatHandle) => Subscriber<AmountKeywordRecord>;
89
+ repairContractCompletionWatcher: () => void;
90
+ };
91
+ export type RegisterFeeMint = (keyword: Keyword, allegedFeeMintAccess: FeeMintAccess) => ZoeMint<"nat">;
92
+ export type WrapIssuerKitWithZoeMint = (keyword: Keyword, localIssuerKit: IssuerKit) => any;
93
+ export type MakeZoeMint = (keyword: Keyword, assetKind?: AssetKind | undefined, displayInfo?: AdditionalDisplayInfo | undefined, options?: Partial<{
94
+ elementShape: Pattern;
95
+ recoverySetsOption: import("@agoric/ertp").RecoverySetsOption;
96
+ }> | undefined) => ZoeMint;
97
+ export type MakeNoEscrowSeat = (initialAllocation: Allocation, proposal: ProposalRecord, exitObj: ExitObj, seatHandle: SeatHandle) => UserSeat;
98
+ export type ReplaceAllocations = (seatHandleAllocations: SeatHandleAllocation[]) => any;
99
+ export type SeatHandleAllocation = {
100
+ seatHandle: SeatHandle;
101
+ allocation: Allocation;
102
+ };
103
+ export type ZoeMint<K extends AssetKind = AssetKind> = {
104
+ getIssuerRecord: () => IssuerRecord<K>;
105
+ mintAndEscrow: (totalToMint: Amount<K>) => void;
106
+ /**
107
+ * Note that the burning is asynchronous, and so may not have happened by
108
+ * the time withdrawAndBurn returns. We rely on our other bookkeeping so that
109
+ * these assets are assumed burned elsewhere, so no one will try to access
110
+ * them even before they are actually burned.
111
+ */
112
+ withdrawAndBurn: (totalToBurn: Amount<K>) => void;
113
+ };
114
+ export type ZCFRoot = {
115
+ startZcf: StartZcf;
116
+ };
117
+ export type ExecuteContractResult = {
118
+ creatorFacet: object;
119
+ creatorInvitation?: Promise<Invitation> | undefined;
120
+ publicFacet: object;
121
+ handleOfferObj: HandleOfferObj;
122
+ };
123
+ export type StartZcf = (zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, instanceRecordFromZoe: InstanceRecord, issuerStorageFromZoe: IssuerRecords, privateArgs?: object) => Promise<ExecuteContractResult>;
124
+ export type MakeExitObj = (proposal: ProposalRecord, zoeSeatAdmin: ZCFSeat) => ExitObj;
125
+ export type ExitObj = {
126
+ exit: () => void;
127
+ };
128
+ export type SeatHandle = Handle<"Seat">;
129
+ /**
130
+ * Get the assetKind for a brand known by Zoe
131
+ *
132
+ * To be deleted when brands have a property for assetKind
133
+ */
134
+ export type GetAssetKindByBrand = (brand: Brand) => AssetKind;
135
+ export type IssuerRecords = Array<ZoeIssuerRecord>;
136
+ export type MakeZCFSeat = (seatData: SeatData) => ZCFSeat;
137
+ /**
138
+ * Drops all of the references in the seat-related weakStores by
139
+ * dropping the stores
140
+ */
141
+ export type DropAllReferences = () => void;
142
+ export type ZcfSeatManager = {
143
+ makeZCFSeat: MakeZCFSeat;
144
+ dropAllReferences: DropAllReferences;
145
+ };
146
+ export type ZcfMintReallocator = {
147
+ reallocate: (zcfSeat: ZCFSeat, newAllocation: Allocation) => void;
148
+ };
149
+ /**
150
+ * Add an issuer and its keyword to the instanceRecord for the
151
+ * contract instance
152
+ */
153
+ export type InstanceStateAddIssuer = (keyword: Keyword, issuerRecord: ZoeIssuerRecord) => void;
154
+ export type InstanceState = {
155
+ addIssuer: InstanceStateAddIssuer;
156
+ getInstanceRecord: () => InstanceRecord;
157
+ getTerms: () => AnyTerms;
158
+ getInstallation: () => Installation;
159
+ getIssuers: () => IssuerKeywordRecord;
160
+ getBrands: () => BrandKeywordRecord;
161
+ assertUniqueKeyword: (keyword: Keyword) => void;
162
+ };
163
+ import type { ProposalRecord } from '@agoric/zoe';
164
+ import type { Allocation } from './types-index.js';
165
+ import type { PaymentPKeywordRecord } from './types-index.js';
166
+ import type { UserSeat } from './types-index.js';
167
+ import type { ERef } from '@agoric/vow';
168
+ import type { Baggage } from '@agoric/vat-data';
169
+ import type { Completion } from './types-index.js';
170
+ import type { ShutdownWithFailure } from '@agoric/swingset-vat';
171
+ import type { AmountKeywordRecord } from '@agoric/zoe';
172
+ import type { Subscriber } from '@agoric/notifier';
173
+ import type { RemotableObject } from '@endo/pass-style';
174
+ import type { Passable } from '@endo/pass-style';
175
+ import type { InvitationHandle } from './types.js';
176
+ import type { Instance } from '@agoric/zoe';
177
+ import type { IssuerKeywordRecord } from '@agoric/zoe';
178
+ import type { BrandKeywordRecord } from './types.js';
179
+ import type { Installation } from '@agoric/zoe';
180
+ import type { Pattern } from '@endo/patterns';
181
+ import type { Invitation } from './types-index.js';
182
+ import type { Issuer } from '@agoric/ertp';
183
+ import type { Keyword } from '@agoric/zoe';
184
+ import type { ZoeIssuerRecord } from './types-index.js';
185
+ import type { FeeMintAccess } from './zoeService/types.js';
186
+ import type { IssuerKit } from '@agoric/ertp';
187
+ import type { AssetKind } from '@agoric/ertp';
188
+ import type { AdditionalDisplayInfo } from '@agoric/ertp';
189
+ import type { IssuerRecord } from '@agoric/ertp';
190
+ import type { Amount } from '@agoric/ertp';
191
+ import type { InstanceRecord } from './zoeService/utils.js';
192
+ import type { ZCFSeat } from '@agoric/zoe';
193
+ import type { Handle } from '@agoric/zoe';
194
+ import type { Brand } from '@agoric/ertp';
195
+ import type { AnyTerms } from './types.js';
196
+ //# sourceMappingURL=internal-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ export function makeIssuerRecord<K extends AssetKind>(brand: Brand<K>, issuer: Issuer<K>, displayInfo: DisplayInfo<K>): ZoeIssuerRecord<K>;
2
+ export function assertFullIssuerRecord(issuerRecord: IssuerRecord<any>): asserts issuerRecord is Required<IssuerRecord<any>>;
3
+ import type { AssetKind } from '@agoric/ertp';
4
+ import type { Brand } from '@agoric/ertp';
5
+ import type { Issuer } from '@agoric/ertp';
6
+ import type { DisplayInfo } from '@agoric/ertp';
7
+ import type { ZoeIssuerRecord } from './types-index.js';
8
+ import type { IssuerRecord } from '@agoric/ertp';
9
+ //# sourceMappingURL=issuerRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issuerRecord.d.ts","sourceRoot":"","sources":["issuerRecord.js"],"names":[],"mappings":"AAiBO,iCANkB,CAAC,SAAb,SAAW,SACb,MAAM,CAAC,CAAC,UACR,OAAO,CAAC,CAAC,eACT,YAAY,CAAC,CAAC,GACZ,gBAAgB,CAAC,CAAC,CAQ3B;AAMG,qDAHI,aAAa,GAAG,CAAC,GACf,QAAQ,YAAY,IAAI,QAAQ,CAAC,aAAa,GAAG,CAAC,CAAC,CAM/D;+BA9BqE,cAAc;2BAAd,cAAc;4BAAd,cAAc;iCAAd,cAAc;qCAClD,kBAAkB;kCADkB,cAAc"}
@@ -0,0 +1,24 @@
1
+ export function provideIssuerStorage(zcfBaggage: Baggage): {
2
+ storeIssuerKeywordRecord: (uncleanIssuerKeywordRecord: IssuerKeywordRecord) => Promise<{
3
+ issuers: IssuerKeywordRecord;
4
+ brands: BrandKeywordRecord;
5
+ }>;
6
+ storeIssuer: (issuerP: ERef<Issuer>) => Promise<ZoeIssuerRecord>;
7
+ storeIssuerRecord: (issuerRecord: ZoeIssuerRecord) => ZoeIssuerRecord;
8
+ getAssetKindByBrand: GetAssetKindByBrand;
9
+ getBrandForIssuer: <K extends AssetKind>(issuer: Issuer<K>) => Brand<K>;
10
+ getIssuerForBrand: <K extends AssetKind>(brand: Brand<K>) => Issuer<K>;
11
+ getIssuerRecords: (issuers: Issuer[]) => IssuerRecords;
12
+ instantiate: (issuerRecords?: any[]) => void;
13
+ };
14
+ import type { Baggage } from '@agoric/vat-data';
15
+ import type { IssuerKeywordRecord } from '@agoric/zoe';
16
+ import type { BrandKeywordRecord } from '@agoric/zoe';
17
+ import type { Issuer } from '@agoric/ertp';
18
+ import type { ERef } from '@agoric/vow';
19
+ import type { ZoeIssuerRecord } from '@agoric/zoe';
20
+ import type { GetAssetKindByBrand } from './internal-types.js';
21
+ import type { AssetKind } from '@agoric/ertp';
22
+ import type { Brand } from '@agoric/ertp';
23
+ import type { IssuerRecords } from './internal-types.js';
24
+ //# sourceMappingURL=issuerStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"AA4BO,iDAFI,OAAO;2DAwHL,mBAAmB,KACjB,OAAO,CAAC;QAAE,OAAO,EAAE,mBAAmB,CAAC;QAC7B,MAAM,EAAE,kBAAkB,CAAA;KAAE,CAAC;2BAnDzC,KAAK,MAAM,CAAC,KACV,OAAO,CAAE,eAAe,CAAC;sCAzB3B,eAAe,KACb,eAAe;;wBAyFH,CAAC,SAAb,SAAW,UACb,OAAO,CAAC,CAAC,KACP,MAAM,CAAC,CAAC;wBASI,CAAC,SAAb,SAAW,SACb,MAAM,CAAC,CAAC,KACN,OAAO,CAAC,CAAC;gCASX,MAAM,EAAE,KACN,aAAa;;EA2B3B;6BAvMyB,kBAAkB;yCAD+B,aAAa;wCAAb,aAAa;4BAK/D,cAAc;0BAEhB,aAAa;qCAPuC,aAAa;yCAElD,qBAAqB;+BAH/B,cAAc;2BAKlB,cAAc;mCADN,qBAAqB"}
@@ -0,0 +1,6 @@
1
+ export function defineDurableHandle<H extends string>(baggage: Baggage, handleType: H): H extends "Instance" ? () => Instance : () => Handle<H>;
2
+ export function makeHandle<H extends string>(handleType: H): H extends "Instance" ? Instance : Handle<H>;
3
+ import type { Baggage } from '@agoric/vat-data';
4
+ import type { Instance } from '@agoric/zoe';
5
+ import type { Handle } from '@agoric/zoe';
6
+ //# sourceMappingURL=makeHandle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"makeHandle.d.ts","sourceRoot":"","sources":["makeHandle.js"],"names":[],"mappings":"AAiBO,oCALe,CAAC,SAAV,MAAQ,WACV,OAAO,cACP,CAAC,GACC,CAAC,SAAS,UAAU,GAAG,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,CAAC,CAanE;AAUM,2BAJe,CAAC,SAAV,MAAQ,cACV,CAAC,GACC,CAAC,SAAS,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC,CAOvD;6BApCyB,kBAAkB;8BACT,aAAa;4BAAb,aAAa"}