@agoric/zoe 0.26.3-other-dev-d15096d.0.d15096d → 0.26.3-other-dev-ecf44df.0.ecf44df

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 (315) hide show
  1. package/contractFacet.js +0 -2
  2. package/package.json +35 -47
  3. package/source-spec-registry.js +23 -0
  4. package/src/cleanProposal.d.ts +5 -1
  5. package/src/cleanProposal.d.ts.map +1 -1
  6. package/src/cleanProposal.js +5 -5
  7. package/src/contractFacet/allocationMath.d.ts +4 -0
  8. package/src/contractFacet/allocationMath.d.ts.map +1 -1
  9. package/src/contractFacet/allocationMath.js +7 -1
  10. package/src/contractFacet/buildRootObject.d.ts +14 -0
  11. package/src/contractFacet/buildRootObject.d.ts.map +1 -0
  12. package/src/contractFacet/buildRootObject.js +89 -0
  13. package/src/contractFacet/evalContractCode.d.ts +1 -1
  14. package/src/contractFacet/evalContractCode.d.ts.map +1 -1
  15. package/src/contractFacet/evalContractCode.js +0 -2
  16. package/src/contractFacet/exit.d.ts +1 -1
  17. package/src/contractFacet/exit.d.ts.map +1 -1
  18. package/src/contractFacet/exit.js +8 -4
  19. package/src/contractFacet/offerHandlerStorage.d.ts +3 -1
  20. package/src/contractFacet/offerHandlerStorage.d.ts.map +1 -1
  21. package/src/contractFacet/offerHandlerStorage.js +3 -3
  22. package/src/contractFacet/offerSafety.d.ts +2 -0
  23. package/src/contractFacet/offerSafety.d.ts.map +1 -1
  24. package/src/contractFacet/offerSafety.js +4 -0
  25. package/src/contractFacet/reallocate.d.ts +3 -0
  26. package/src/contractFacet/reallocate.d.ts.map +1 -1
  27. package/src/contractFacet/reallocate.js +3 -2
  28. package/src/contractFacet/rightsConservation.d.ts +1 -0
  29. package/src/contractFacet/rightsConservation.d.ts.map +1 -1
  30. package/src/contractFacet/rightsConservation.js +4 -2
  31. package/src/contractFacet/typeGuards.d.ts +44 -4
  32. package/src/contractFacet/typeGuards.d.ts.map +1 -1
  33. package/src/contractFacet/types.d.ts +16 -8
  34. package/src/contractFacet/types.d.ts.map +1 -1
  35. package/src/contractFacet/types.js +256 -0
  36. package/src/contractFacet/vatRoot.d.ts +5 -20
  37. package/src/contractFacet/vatRoot.d.ts.map +1 -1
  38. package/src/contractFacet/vatRoot.js +2 -77
  39. package/src/contractFacet/zcfMint.d.ts +8 -0
  40. package/src/contractFacet/zcfMint.d.ts.map +1 -1
  41. package/src/contractFacet/zcfMint.js +9 -3
  42. package/src/contractFacet/zcfSeat.d.ts +5 -0
  43. package/src/contractFacet/zcfSeat.d.ts.map +1 -1
  44. package/src/contractFacet/zcfSeat.js +14 -8
  45. package/src/contractFacet/zcfZygote.d.ts +10 -0
  46. package/src/contractFacet/zcfZygote.d.ts.map +1 -1
  47. package/src/contractFacet/zcfZygote.js +15 -6
  48. package/src/contractSupport/atomicTransfer.d.ts +17 -2
  49. package/src/contractSupport/atomicTransfer.d.ts.map +1 -1
  50. package/src/contractSupport/atomicTransfer.js +11 -3
  51. package/src/contractSupport/bondingCurves.d.ts +1 -0
  52. package/src/contractSupport/bondingCurves.d.ts.map +1 -1
  53. package/src/contractSupport/bondingCurves.js +6 -4
  54. package/src/contractSupport/durability.d.ts +3 -0
  55. package/src/contractSupport/durability.d.ts.map +1 -1
  56. package/src/contractSupport/durability.js +3 -2
  57. package/src/contractSupport/index.d.ts +3 -3
  58. package/src/contractSupport/index.js +11 -13
  59. package/src/contractSupport/prepare-ownable.d.ts +2 -0
  60. package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
  61. package/src/contractSupport/prepare-ownable.js +4 -1
  62. package/src/contractSupport/priceAuthority.d.ts +159 -14
  63. package/src/contractSupport/priceAuthority.d.ts.map +1 -1
  64. package/src/contractSupport/priceAuthority.js +9 -3
  65. package/src/contractSupport/priceAuthorityInitial.d.ts +2 -0
  66. package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
  67. package/src/contractSupport/priceAuthorityInitial.js +3 -2
  68. package/src/contractSupport/priceAuthorityQuoteMint.d.ts +2 -0
  69. package/src/contractSupport/priceAuthorityQuoteMint.d.ts.map +1 -1
  70. package/src/contractSupport/priceAuthorityQuoteMint.js +12 -9
  71. package/src/contractSupport/priceAuthorityTransform.d.ts +6 -2
  72. package/src/contractSupport/priceAuthorityTransform.d.ts.map +1 -1
  73. package/src/contractSupport/priceAuthorityTransform.js +7 -2
  74. package/src/contractSupport/priceQuote.d.ts +2 -0
  75. package/src/contractSupport/priceQuote.d.ts.map +1 -1
  76. package/src/contractSupport/priceQuote.js +4 -4
  77. package/src/contractSupport/recorder.d.ts +9 -39
  78. package/src/contractSupport/recorder.d.ts.map +1 -1
  79. package/src/contractSupport/recorder.js +5 -18
  80. package/src/contractSupport/testJigHelpers.d.ts +7 -0
  81. package/src/contractSupport/testJigHelpers.d.ts.map +1 -0
  82. package/src/contractSupport/testJigHelpers.js +26 -0
  83. package/src/contractSupport/topics.d.ts +17 -5
  84. package/src/contractSupport/topics.d.ts.map +1 -1
  85. package/src/contractSupport/topics.js +5 -3
  86. package/src/contractSupport/{types-ambient.d.ts → types.d.ts} +16 -9
  87. package/src/contractSupport/types.d.ts.map +1 -0
  88. package/src/contractSupport/{types-ambient.js → types.js} +8 -3
  89. package/src/contractSupport/zoeHelpers.d.ts +16 -2
  90. package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
  91. package/src/contractSupport/zoeHelpers.js +7 -4
  92. package/src/contracts/atomicSwap.d.ts +5 -1
  93. package/src/contracts/atomicSwap.d.ts.map +1 -1
  94. package/src/contracts/atomicSwap.js +5 -1
  95. package/src/contracts/auction/assertBidSeat.d.ts +1 -1
  96. package/src/contracts/auction/assertBidSeat.d.ts.map +1 -1
  97. package/src/contracts/auction/assertBidSeat.js +2 -2
  98. package/src/contracts/auction/firstPriceLogic.d.ts +2 -0
  99. package/src/contracts/auction/firstPriceLogic.d.ts.map +1 -1
  100. package/src/contracts/auction/firstPriceLogic.js +5 -0
  101. package/src/contracts/auction/index.d.ts +22 -20
  102. package/src/contracts/auction/index.d.ts.map +1 -1
  103. package/src/contracts/auction/index.js +9 -7
  104. package/src/contracts/auction/secondPriceLogic.d.ts +2 -0
  105. package/src/contracts/auction/secondPriceLogic.d.ts.map +1 -1
  106. package/src/contracts/auction/secondPriceLogic.js +5 -0
  107. package/src/contracts/automaticRefund.d.ts +8 -4
  108. package/src/contracts/automaticRefund.d.ts.map +1 -1
  109. package/src/contracts/automaticRefund.js +4 -0
  110. package/src/contracts/autoswap.d.ts +5 -1
  111. package/src/contracts/autoswap.d.ts.map +1 -1
  112. package/src/contracts/autoswap.js +10 -7
  113. package/src/contracts/barterExchange.d.ts +7 -3
  114. package/src/contracts/barterExchange.d.ts.map +1 -1
  115. package/src/contracts/barterExchange.js +5 -1
  116. package/src/contracts/callSpread/calculateShares.d.ts +1 -1
  117. package/src/contracts/callSpread/calculateShares.js +7 -3
  118. package/src/contracts/callSpread/fundedCallSpread.d.ts +8 -1
  119. package/src/contracts/callSpread/fundedCallSpread.d.ts.map +1 -1
  120. package/src/contracts/callSpread/fundedCallSpread.js +9 -4
  121. package/src/contracts/callSpread/payoffHandler.d.ts +12 -0
  122. package/src/contracts/callSpread/payoffHandler.d.ts.map +1 -1
  123. package/src/contracts/callSpread/payoffHandler.js +13 -5
  124. package/src/contracts/callSpread/percent.d.ts +2 -2
  125. package/src/contracts/callSpread/percent.js +5 -0
  126. package/src/contracts/callSpread/pricedCallSpread.d.ts +7 -5
  127. package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -1
  128. package/src/contracts/callSpread/pricedCallSpread.js +10 -5
  129. package/src/contracts/callSpread/{types-ambient.d.ts → types.d.ts} +12 -8
  130. package/src/contracts/callSpread/types.d.ts.map +1 -0
  131. package/src/contracts/callSpread/{types-ambient.js → types.js} +6 -0
  132. package/src/contracts/coveredCall-durable.d.ts +2 -1
  133. package/src/contracts/coveredCall-durable.d.ts.map +1 -1
  134. package/src/contracts/coveredCall-durable.js +3 -2
  135. package/src/contracts/coveredCall.d.ts +5 -1
  136. package/src/contracts/coveredCall.d.ts.map +1 -1
  137. package/src/contracts/coveredCall.js +4 -0
  138. package/src/contracts/loan/addCollateral.d.ts +5 -0
  139. package/src/contracts/loan/addCollateral.d.ts.map +1 -1
  140. package/src/contracts/loan/addCollateral.js +5 -0
  141. package/src/contracts/loan/borrow.d.ts +9 -0
  142. package/src/contracts/loan/borrow.d.ts.map +1 -1
  143. package/src/contracts/loan/borrow.js +13 -4
  144. package/src/contracts/loan/close.d.ts +5 -0
  145. package/src/contracts/loan/close.d.ts.map +1 -1
  146. package/src/contracts/loan/close.js +7 -2
  147. package/src/contracts/loan/index.d.ts +8 -1
  148. package/src/contracts/loan/index.d.ts.map +1 -1
  149. package/src/contracts/loan/index.js +3 -0
  150. package/src/contracts/loan/lend.d.ts +5 -0
  151. package/src/contracts/loan/lend.d.ts.map +1 -1
  152. package/src/contracts/loan/lend.js +5 -0
  153. package/src/contracts/loan/liquidate.d.ts +2 -0
  154. package/src/contracts/loan/liquidate.d.ts.map +1 -1
  155. package/src/contracts/loan/liquidate.js +3 -1
  156. package/src/contracts/loan/scheduleLiquidation.d.ts +4 -0
  157. package/src/contracts/loan/scheduleLiquidation.d.ts.map +1 -1
  158. package/src/contracts/loan/scheduleLiquidation.js +8 -4
  159. package/src/contracts/loan/{types-ambient.d.ts → types.d.ts} +53 -38
  160. package/src/contracts/loan/types.d.ts.map +1 -0
  161. package/src/contracts/loan/{types-ambient.js → types.js} +42 -29
  162. package/src/contracts/loan/updateDebt.d.ts +3 -0
  163. package/src/contracts/loan/updateDebt.d.ts.map +1 -1
  164. package/src/contracts/loan/updateDebt.js +5 -4
  165. package/src/contracts/mintAndSellNFT.d.ts +4 -0
  166. package/src/contracts/mintAndSellNFT.d.ts.map +1 -1
  167. package/src/contracts/mintAndSellNFT.js +3 -1
  168. package/src/contracts/mintPayments.d.ts +12 -8
  169. package/src/contracts/mintPayments.d.ts.map +1 -1
  170. package/src/contracts/mintPayments.js +5 -1
  171. package/src/contracts/oracle.d.ts +7 -2
  172. package/src/contracts/oracle.d.ts.map +1 -1
  173. package/src/contracts/oracle.js +4 -1
  174. package/src/contracts/otcDesk.d.ts +8 -1
  175. package/src/contracts/otcDesk.d.ts.map +1 -1
  176. package/src/contracts/otcDesk.js +5 -2
  177. package/src/contracts/priceAggregator.d.ts +20 -8
  178. package/src/contracts/priceAggregator.d.ts.map +1 -1
  179. package/src/contracts/priceAggregator.js +11 -2
  180. package/src/contracts/priceAggregatorTypes.d.ts +18 -13
  181. package/src/contracts/priceAggregatorTypes.d.ts.map +1 -1
  182. package/src/contracts/priceAggregatorTypes.js +5 -1
  183. package/src/contracts/scaledPriceAuthority.d.ts +2 -0
  184. package/src/contracts/scaledPriceAuthority.d.ts.map +1 -1
  185. package/src/contracts/scaledPriceAuthority.js +5 -2
  186. package/src/contracts/sellItems.d.ts +11 -1
  187. package/src/contracts/sellItems.d.ts.map +1 -1
  188. package/src/contracts/sellItems.js +12 -5
  189. package/src/contracts/simpleExchange.d.ts +3 -3
  190. package/src/contracts/simpleExchange.js +3 -3
  191. package/src/contracts/{types-ambient.d.ts → types.d.ts} +23 -16
  192. package/src/contracts/types.d.ts.map +1 -0
  193. package/src/contracts/{types-ambient.js → types.js} +15 -8
  194. package/src/contracts/valueVow.contract.d.ts +2 -4
  195. package/src/contracts/valueVow.contract.d.ts.map +1 -1
  196. package/src/contracts/valueVow.contract.js +6 -5
  197. package/src/handleWarning.d.ts +1 -0
  198. package/src/handleWarning.d.ts.map +1 -1
  199. package/src/handleWarning.js +3 -1
  200. package/src/instanceRecordStorage.d.ts +1 -0
  201. package/src/instanceRecordStorage.d.ts.map +1 -1
  202. package/src/instanceRecordStorage.js +5 -2
  203. package/src/internal-types.d.ts +63 -46
  204. package/src/internal-types.d.ts.map +1 -1
  205. package/src/internal-types.js +11 -13
  206. package/src/issuerRecord.d.ts +10 -1
  207. package/src/issuerRecord.d.ts.map +1 -1
  208. package/src/issuerRecord.js +5 -5
  209. package/src/issuerStorage.d.ts +8 -0
  210. package/src/issuerStorage.d.ts.map +1 -1
  211. package/src/issuerStorage.js +12 -7
  212. package/src/makeHandle.d.ts +2 -0
  213. package/src/makeHandle.d.ts.map +1 -1
  214. package/src/makeHandle.js +5 -4
  215. package/src/typeGuards.d.ts +1045 -120
  216. package/src/typeGuards.d.ts.map +1 -1
  217. package/src/typeGuards.js +12 -10
  218. package/src/types.js +37 -0
  219. package/src/zoeService/createZCFVat.d.ts.map +1 -1
  220. package/src/zoeService/createZCFVat.js +0 -2
  221. package/src/zoeService/escrowStorage.d.ts +4 -0
  222. package/src/zoeService/escrowStorage.d.ts.map +1 -1
  223. package/src/zoeService/escrowStorage.js +9 -2
  224. package/src/zoeService/feeMint.d.ts +11 -3
  225. package/src/zoeService/feeMint.d.ts.map +1 -1
  226. package/src/zoeService/feeMint.js +5 -4
  227. package/src/zoeService/installationStorage.d.ts +4 -2
  228. package/src/zoeService/installationStorage.d.ts.map +1 -1
  229. package/src/zoeService/installationStorage.js +3 -2
  230. package/src/zoeService/instanceAdminStorage.d.ts +38 -2
  231. package/src/zoeService/instanceAdminStorage.d.ts.map +1 -1
  232. package/src/zoeService/instanceAdminStorage.js +7 -4
  233. package/src/zoeService/internal-types.d.ts +44 -20
  234. package/src/zoeService/internal-types.d.ts.map +1 -1
  235. package/src/zoeService/internal-types.js +15 -4
  236. package/src/zoeService/invitationQueries.d.ts +3 -3
  237. package/src/zoeService/invitationQueries.d.ts.map +1 -1
  238. package/src/zoeService/invitationQueries.js +4 -6
  239. package/src/zoeService/makeInvitation.d.ts +3 -2
  240. package/src/zoeService/makeInvitation.d.ts.map +1 -1
  241. package/src/zoeService/makeInvitation.js +3 -4
  242. package/src/zoeService/offer/burnInvitation.d.ts +6 -0
  243. package/src/zoeService/offer/burnInvitation.d.ts.map +1 -1
  244. package/src/zoeService/offer/burnInvitation.js +10 -3
  245. package/src/zoeService/offer/offer.d.ts.map +1 -1
  246. package/src/zoeService/offer/offer.js +3 -5
  247. package/src/zoeService/originalZoeSeat.d.ts +34 -23
  248. package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
  249. package/src/zoeService/originalZoeSeat.js +12 -6
  250. package/src/zoeService/startInstance.d.ts +2 -0
  251. package/src/zoeService/startInstance.d.ts.map +1 -1
  252. package/src/zoeService/startInstance.js +127 -116
  253. package/src/zoeService/types.js +307 -0
  254. package/src/zoeService/utils.d.ts +2 -2
  255. package/src/zoeService/zoe.d.ts +4 -5
  256. package/src/zoeService/zoe.d.ts.map +1 -1
  257. package/src/zoeService/zoe.js +9 -14
  258. package/src/zoeService/zoeSeat.d.ts +27 -3
  259. package/src/zoeService/zoeSeat.d.ts.map +1 -1
  260. package/src/zoeService/zoeSeat.js +12 -7
  261. package/src/zoeService/zoeStorageManager.d.ts +47 -12
  262. package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
  263. package/src/zoeService/zoeStorageManager.js +68 -56
  264. package/tools/fakePriceAuthority.d.ts +4 -1
  265. package/tools/fakePriceAuthority.d.ts.map +1 -1
  266. package/tools/fakePriceAuthority.js +5 -0
  267. package/tools/fakeVatAdmin.d.ts +20 -58
  268. package/tools/fakeVatAdmin.d.ts.map +1 -1
  269. package/tools/fakeVatAdmin.js +96 -53
  270. package/tools/manualPriceAuthority.d.ts +2 -0
  271. package/tools/manualPriceAuthority.d.ts.map +1 -1
  272. package/tools/manualPriceAuthority.js +1 -2
  273. package/tools/prepare-test-env-ava.d.ts +1 -1
  274. package/tools/prepare-test-env-ava.js +1 -6
  275. package/tools/prepare-test-env.js +0 -2
  276. package/tools/scriptedOracle.d.ts +12 -8
  277. package/tools/scriptedOracle.d.ts.map +1 -1
  278. package/tools/scriptedOracle.js +3 -1
  279. package/tools/scriptedPriceAuthority.d.ts +6 -1
  280. package/tools/scriptedPriceAuthority.d.ts.map +1 -1
  281. package/tools/scriptedPriceAuthority.js +4 -0
  282. package/tools/setup-zoe.d.ts +11 -7
  283. package/tools/setup-zoe.d.ts.map +1 -1
  284. package/tools/setup-zoe.js +22 -8
  285. package/tools/test-utils.d.ts +1 -1
  286. package/tools/testVatRoot.d.ts +7 -0
  287. package/tools/testVatRoot.d.ts.map +1 -0
  288. package/tools/testVatRoot.js +7 -0
  289. package/tools/types.d.ts +1 -0
  290. package/tools/types.d.ts.map +1 -1
  291. package/tools/types.js +1 -0
  292. package/bundles/bundle-contractFacet-js-meta.json +0 -1070
  293. package/bundles/bundle-contractFacet.d.ts +0 -7
  294. package/bundles/bundle-contractFacet.d.ts.map +0 -1
  295. package/bundles/bundle-contractFacet.js +0 -1
  296. package/exported.js +0 -1
  297. package/src/contractFacet/types.ts +0 -249
  298. package/src/contractSupport/types-ambient.d.ts.map +0 -1
  299. package/src/contracts/callSpread/types-ambient.d.ts.map +0 -1
  300. package/src/contracts/exported.d.ts +0 -2
  301. package/src/contracts/exported.d.ts.map +0 -1
  302. package/src/contracts/exported.js +0 -4
  303. package/src/contracts/loan/types-ambient.d.ts.map +0 -1
  304. package/src/contracts/types-ambient.d.ts.map +0 -1
  305. package/src/types-ambient.d.ts +0 -1
  306. package/src/types-ambient.d.ts.map +0 -1
  307. package/src/types-ambient.js +0 -5
  308. package/src/types.ts +0 -37
  309. package/src/zoeService/types-ambient.d.ts +0 -1
  310. package/src/zoeService/types-ambient.d.ts.map +0 -1
  311. package/src/zoeService/types-ambient.js +0 -5
  312. package/src/zoeService/types.ts +0 -307
  313. package/src/zoeService/utils.test-d.d.ts +0 -2
  314. package/src/zoeService/utils.test-d.d.ts.map +0 -1
  315. package/src/zoeService/utils.test-d.ts +0 -35
package/contractFacet.js CHANGED
@@ -1,3 +1 @@
1
- // @jessie-check
2
-
3
1
  export * from './src/contractFacet/vatRoot.js';
package/package.json CHANGED
@@ -1,29 +1,26 @@
1
1
  {
2
2
  "name": "@agoric/zoe",
3
- "version": "0.26.3-other-dev-d15096d.0.d15096d",
3
+ "version": "0.26.3-other-dev-ecf44df.0.ecf44df",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
7
7
  "engines": {
8
- "node": "^20.9 || ^22.11"
8
+ "node": "^22.11 || ^24.14"
9
9
  },
10
10
  "scripts": {
11
- "build": "yarn build:bundles",
12
- "build:bundles": "node scripts/build-bundles.js",
13
- "prepack": "yarn run -T tsc --build tsconfig.build.json",
14
- "postpack": "git clean -f '*.d.*ts*' '*.tsbuildinfo'",
11
+ "prepack": "yarn run -T prepack-package",
12
+ "postpack": "yarn run -T postpack-package",
15
13
  "test": "ava --verbose",
16
14
  "test:c8": "c8 --all ${C8_OPTIONS:-} ava",
17
- "test:unit": "ava 'test/unitTests' -T 1m --verbose",
15
+ "test:unit": "ava 'test/unitTests' -T 2m --verbose",
18
16
  "test:swingset": "ava 'test/swingsetTests' -T 10m --verbose",
19
17
  "test:xs": "yarn test:xs-worker",
20
18
  "test:xs-unit": "exit 0",
21
19
  "test:xs-worker": "SWINGSET_WORKER_TYPE=xs-worker ava -c 2 'test/swingsetTests'",
22
- "build-zcfBundle": "yarn build:bundles",
23
20
  "lint-fix": "yarn lint:eslint --fix",
24
21
  "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
25
- "lint:eslint": "yarn run -T eslint .",
26
- "lint:types": "yarn run -T tsc"
22
+ "lint:eslint": "node ../../scripts/eslint-repo.mjs .",
23
+ "lint:types": "yarn run -T tsgo --tsBuildInfoFile tsconfig.tsgo.tsbuildinfo"
27
24
  },
28
25
  "repository": {
29
26
  "type": "git",
@@ -43,36 +40,36 @@
43
40
  },
44
41
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
45
42
  "dependencies": {
46
- "@agoric/base-zone": "0.1.1-other-dev-d15096d.0.d15096d",
47
- "@agoric/ertp": "0.16.3-other-dev-d15096d.0.d15096d",
48
- "@agoric/internal": "0.3.3-other-dev-d15096d.0.d15096d",
49
- "@agoric/notifier": "0.6.3-other-dev-d15096d.0.d15096d",
50
- "@agoric/store": "0.9.3-other-dev-d15096d.0.d15096d",
51
- "@agoric/swingset-liveslots": "0.10.3-other-dev-d15096d.0.d15096d",
52
- "@agoric/swingset-vat": "0.32.3-other-dev-d15096d.0.d15096d",
53
- "@agoric/time": "0.3.3-other-dev-d15096d.0.d15096d",
54
- "@agoric/vat-data": "0.5.3-other-dev-d15096d.0.d15096d",
55
- "@agoric/vow": "0.1.1-other-dev-d15096d.0.d15096d",
56
- "@agoric/zone": "0.2.3-other-dev-d15096d.0.d15096d",
57
- "@endo/bundle-source": "^4.1.2",
58
- "@endo/captp": "^4.4.8",
59
- "@endo/common": "^1.2.13",
60
- "@endo/errors": "^1.2.13",
61
- "@endo/eventual-send": "^1.3.4",
62
- "@endo/exo": "^1.5.12",
43
+ "@agoric/base-zone": "0.1.1-other-dev-ecf44df.0.ecf44df",
44
+ "@agoric/ertp": "0.16.3-other-dev-ecf44df.0.ecf44df",
45
+ "@agoric/internal": "0.3.3-other-dev-ecf44df.0.ecf44df",
46
+ "@agoric/notifier": "0.6.3-other-dev-ecf44df.0.ecf44df",
47
+ "@agoric/store": "0.9.3-other-dev-ecf44df.0.ecf44df",
48
+ "@agoric/swingset-liveslots": "0.10.3-other-dev-ecf44df.0.ecf44df",
49
+ "@agoric/swingset-vat": "0.32.3-other-dev-ecf44df.0.ecf44df",
50
+ "@agoric/time": "0.3.3-other-dev-ecf44df.0.ecf44df",
51
+ "@agoric/vat-data": "0.5.3-other-dev-ecf44df.0.ecf44df",
52
+ "@agoric/vow": "0.1.1-other-dev-ecf44df.0.ecf44df",
53
+ "@agoric/zone": "0.2.3-other-dev-ecf44df.0.ecf44df",
54
+ "@endo/bundle-source": "^4.3.2",
55
+ "@endo/captp": "^4.5.1",
56
+ "@endo/common": "^1.4.0",
57
+ "@endo/errors": "^1.3.1",
58
+ "@endo/eventual-send": "^1.5.0",
59
+ "@endo/exo": "^1.7.0",
63
60
  "@endo/far": "^1.1.14",
64
- "@endo/import-bundle": "^1.5.2",
65
- "@endo/marshal": "^1.8.0",
66
- "@endo/nat": "^5.1.3",
67
- "@endo/pass-style": "^1.6.3",
68
- "@endo/patterns": "^1.7.0",
69
- "@endo/promise-kit": "^1.1.13",
61
+ "@endo/import-bundle": "^1.7.0",
62
+ "@endo/marshal": "^1.10.0",
63
+ "@endo/nat": "^5.2.0",
64
+ "@endo/pass-style": "^1.8.1",
65
+ "@endo/patterns": "^1.9.1",
66
+ "@endo/promise-kit": "^1.2.1",
70
67
  "yargs-parser": "^21.1.1"
71
68
  },
72
69
  "devDependencies": {
73
- "@agoric/kmarshal": "0.1.1-other-dev-d15096d.0.d15096d",
74
- "@endo/init": "^1.1.12",
75
- "ava": "^5.3.0",
70
+ "@agoric/kmarshal": "0.1.1-other-dev-ecf44df.0.ecf44df",
71
+ "@endo/init": "^1.1.13",
72
+ "ava": "^8.0.1",
76
73
  "c8": "^10.1.3",
77
74
  "import-meta-resolve": "^4.1.0",
78
75
  "tsd": "^0.33.0"
@@ -80,25 +77,16 @@
80
77
  "files": [
81
78
  "bundles/",
82
79
  "src/",
80
+ "source-spec-registry.*",
83
81
  "tools/",
84
82
  "contractFacet.js",
85
- "exported.js",
86
83
  "NEWS.md"
87
84
  ],
88
- "ava": {
89
- "files": [
90
- "test/**/*.test.*"
91
- ],
92
- "require": [
93
- "@endo/init/debug.js"
94
- ],
95
- "timeout": "20m"
96
- },
97
85
  "publishConfig": {
98
86
  "access": "public"
99
87
  },
100
88
  "typeCoverage": {
101
89
  "atLeast": 84.74
102
90
  },
103
- "gitHead": "d15096dc4ff8b96e9b6cd11954c20d3a9efbb393"
91
+ "gitHead": "ecf44df5eadcc7a1d68745f056fca19155fb5231"
104
92
  }
@@ -0,0 +1,23 @@
1
+ import { fileURLToPath } from 'node:url';
2
+
3
+ /** @param {string} packagePath */
4
+ const resolveSourceSpec = packagePath =>
5
+ fileURLToPath(import.meta.resolve(packagePath));
6
+
7
+ export const zoeSourceSpecRegistry = {
8
+ zcf: {
9
+ bundleName: 'contractFacet',
10
+ packagePath: '@agoric/zoe/contractFacet.js',
11
+ sourceSpec: resolveSourceSpec('@agoric/zoe/contractFacet.js'),
12
+ },
13
+ automaticRefund: {
14
+ bundleName: 'automaticRefund',
15
+ packagePath: '@agoric/zoe/src/contracts/automaticRefund.js',
16
+ sourceSpec: resolveSourceSpec(
17
+ '@agoric/zoe/src/contracts/automaticRefund.js',
18
+ ),
19
+ },
20
+ };
21
+
22
+ /** @param {keyof typeof zoeSourceSpecRegistry} name */
23
+ export const getZoeSourceSpec = name => zoeSourceSpecRegistry[name];
@@ -3,9 +3,13 @@ export function assertKeywordName(keyword: any): void;
3
3
  export function cleanKeywords(uncleanKeywordRecord: {
4
4
  [name: string]: any;
5
5
  }): string[];
6
- export function coerceAmountPatternKeywordRecord(allegedAmountKeywordRecord: any, getAssetKindByBrand: any): Record<string | number | symbol, any>;
6
+ export function coerceAmountPatternKeywordRecord(allegedAmountKeywordRecord: any, getAssetKindByBrand: any): {
7
+ [x: string]: any;
8
+ };
7
9
  export function coerceAmountKeywordRecord(allegedAmountKeywordRecord: unknown, getAssetKindByBrand: any): AmountKeywordRecord;
8
10
  export function cleanProposal(proposal: Proposal, getAssetKindByBrand: GetAssetKindByBrand): ProposalRecord;
11
+ import type { AmountKeywordRecord } from '@agoric/zoe';
9
12
  import type { Proposal } from '@agoric/zoe';
13
+ import type { GetAssetKindByBrand } from './internal-types.js';
10
14
  import type { ProposalRecord } from '@agoric/zoe';
11
15
  //# sourceMappingURL=cleanProposal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cleanProposal.d.ts","sourceRoot":"","sources":["cleanProposal.js"],"names":[],"mappings":"AASA,iCAAkC,GAAG,CAAC;AAiB/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;8BA9JoD,aAAa;oCAAb,aAAa"}
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;;EAsBN;AAQM,sEAJI,OAAO,uBACP,GAAC,GACC,mBAAmB,CAY/B;AA4CM,wCAJI,QAAQ,uBACR,mBAAmB,GACjB,cAAc,CA6B1B;yCA9JyE,aAAa;8BAAb,aAAa;yCACjD,qBAAqB;oCADe,aAAa"}
@@ -1,8 +1,8 @@
1
- import { assert, q, Fail } from '@endo/errors';
2
1
  import { AmountMath, getAssetKind } from '@agoric/ertp';
3
2
  import { objectMap } from '@agoric/internal';
3
+ import { assertKey, assertPattern, isKey, mustMatch } from '@agoric/store';
4
+ import { assert, Fail, q } from '@endo/errors';
4
5
  import { assertRecord } from '@endo/marshal';
5
- import { assertKey, assertPattern, mustMatch, isKey } from '@agoric/store';
6
6
  import { FullProposalShape } from './typeGuards.js';
7
7
 
8
8
  const { ownKeys } = Reflect;
@@ -10,7 +10,8 @@ const { ownKeys } = Reflect;
10
10
  export const MAX_KEYWORD_LENGTH = 100;
11
11
 
12
12
  /**
13
- * @import {ExitRule, Proposal, ProposalRecord} from '@agoric/zoe';
13
+ * @import {AmountKeywordRecord, ExitRule, Proposal, ProposalRecord} from '@agoric/zoe';
14
+ * @import {GetAssetKindByBrand} from './internal-types.js';
14
15
  */
15
16
 
16
17
  const firstCapASCII = /^[A-Z][a-zA-Z0-9_$]*$/;
@@ -95,8 +96,7 @@ export const coerceAmountKeywordRecord = (
95
96
  getAssetKindByBrand,
96
97
  );
97
98
  assertKey(result);
98
- // @ts-expect-error checked cast
99
- return result;
99
+ return /** @type {AmountKeywordRecord} */ (result);
100
100
  };
101
101
 
102
102
  /**
@@ -4,4 +4,8 @@ export function subtractFromAllocation(allocation: Allocation, amountKeywordReco
4
4
  * An operation such as add or subtract.
5
5
  */
6
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';
7
11
  //# sourceMappingURL=allocationMath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"allocationMath.d.ts","sourceRoot":"","sources":["allocationMath.js"],"names":[],"mappings":"AAiFO,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"}
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"}
@@ -1,5 +1,11 @@
1
- import { Fail, q } from '@endo/errors';
2
1
  import { AmountMath } from '@agoric/ertp';
2
+ import { Fail, q } from '@endo/errors';
3
+
4
+ /**
5
+ * @import {AmountKeywordRecord, Keyword} from '@agoric/zoe';
6
+ * @import {Allocation} from './types.js';
7
+ * @import {Amount} from '@agoric/ertp';
8
+ */
3
9
 
4
10
  /**
5
11
  * @callback Operation
@@ -0,0 +1,14 @@
1
+ export function makeBuildRootObject(makeZCFZygote: (powers: any, zoeService: ZoeService, invitationIssuer: Issuer<"set">, testJigSetter: ({ zcf }: {
2
+ zcf: ZCF;
3
+ }) => void, contractBundleCap: BundleCap, baggage: Baggage) => Promise<any>): (powers: any, vatParameters: {
4
+ contractBundleCap: BundleCap;
5
+ zoeService: ZoeService;
6
+ invitationIssuer: Issuer<"set">;
7
+ privateArgs?: any;
8
+ }, baggage: Baggage) => Promise<import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>>;
9
+ import type { ZoeService } from '@agoric/zoe';
10
+ import type { Issuer } from '@agoric/ertp';
11
+ import type { ZCF } from '@agoric/zoe';
12
+ import type { BundleCap } from '@agoric/swingset-vat';
13
+ import type { Baggage } from '@agoric/vat-data';
14
+ //# sourceMappingURL=buildRootObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildRootObject.d.ts","sourceRoot":"","sources":["buildRootObject.js"],"names":[],"mappings":"AAqBO,mDAJI,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,OAAO,KAAK,CAAC,EAC3E,aAAa,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,GAAG,CAAA;CAAE,KAAK,IAAI,EAC9C,iBAAiB,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,YAIvD,GAAG,iBACH;IACN,iBAAiB,EAAE,SAAS,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,EAAE,OAAO,KAAK,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,GAAG,CAAC;CACnB,WACO,OAAO,mIAyDnB;gCAhFiC,aAAa;4BAGtB,cAAc;yBAHL,aAAa;+BAEnB,sBAAsB;6BADxB,kBAAkB"}
@@ -0,0 +1,89 @@
1
+ // @jessie-check
2
+
3
+ import { Fail } from '@endo/errors';
4
+ import { E } from '@endo/far';
5
+ import { Far } from '@endo/marshal';
6
+
7
+ /**
8
+ * @import {ZCF, ZoeService} from '@agoric/zoe';
9
+ * @import {Baggage} from '@agoric/vat-data';
10
+ * @import {BundleCap} from '@agoric/swingset-vat';
11
+ * @import {Issuer} from '@agoric/ertp';
12
+ * @import {StartZcf} from '../internal-types.js';
13
+ */
14
+
15
+ /**
16
+ * Shared implementation for production and test contract-vat roots.
17
+ *
18
+ * @param {(powers: any, zoeService: ZoeService, invitationIssuer: Issuer<'set'>,
19
+ * testJigSetter: ({ zcf }: { zcf: ZCF }) => void,
20
+ * contractBundleCap: BundleCap, baggage: Baggage) => Promise<any>} makeZCFZygote
21
+ */
22
+ export const makeBuildRootObject = makeZCFZygote => {
23
+ /**
24
+ * @param {any} powers
25
+ * @param {{
26
+ * contractBundleCap: BundleCap,
27
+ * zoeService: ZoeService,
28
+ * invitationIssuer: Issuer<'set'>,
29
+ * privateArgs?: any,
30
+ * }} vatParameters
31
+ * @param {Baggage} baggage
32
+ */
33
+ const buildRootObject = async (powers, vatParameters, baggage) => {
34
+ const { testJigSetter } = powers;
35
+ const { contractBundleCap } = vatParameters;
36
+ contractBundleCap ||
37
+ Fail`expected vatParameters.contractBundleCap ${vatParameters}`;
38
+ let { zoeService, invitationIssuer } = vatParameters;
39
+ const firstTime = !baggage.has('DidStart');
40
+ if (firstTime) {
41
+ baggage.init('DidStart', 'DidStart');
42
+ baggage.init('zoeService', zoeService);
43
+ baggage.init('invitationIssuer', invitationIssuer);
44
+ } else {
45
+ !zoeService || Fail`On restart zoeService must not be in vatParameters`;
46
+ zoeService = baggage.get('zoeService');
47
+
48
+ !invitationIssuer ||
49
+ Fail`On restart invitationIssuer must not be in vatParameters`;
50
+ invitationIssuer = baggage.get('invitationIssuer');
51
+ }
52
+
53
+ const zcfZygote = await makeZCFZygote(
54
+ powers,
55
+ zoeService,
56
+ invitationIssuer,
57
+ testJigSetter,
58
+ contractBundleCap,
59
+ baggage,
60
+ );
61
+
62
+ if (!firstTime) {
63
+ return E.when(
64
+ E(zcfZygote).restartContract(vatParameters.privateArgs),
65
+ () => Far('upgraded contractRunner', {}),
66
+ );
67
+ }
68
+
69
+ return Far('contractRunner', {
70
+ /** @type {StartZcf} */
71
+ startZcf: (
72
+ zoeInstanceAdmin,
73
+ instanceRecordFromZoe,
74
+ issuerStorageFromZoe,
75
+ privateArgs = undefined,
76
+ ) => {
77
+ return E(zcfZygote).startContract(
78
+ zoeInstanceAdmin,
79
+ instanceRecordFromZoe,
80
+ issuerStorageFromZoe,
81
+ privateArgs,
82
+ );
83
+ },
84
+ });
85
+ };
86
+
87
+ return harden(buildRootObject);
88
+ };
89
+ harden(makeBuildRootObject);
@@ -1,2 +1,2 @@
1
- export function evalContractBundle(bundle: any, additionalEndowments?: {}): Promise<any>;
1
+ export function evalContractBundle(bundle: any, additionalEndowments?: {}): any;
2
2
  //# sourceMappingURL=evalContractCode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"evalContractCode.d.ts","sourceRoot":"","sources":["evalContractCode.js"],"names":[],"mappings":"AAQA,yFA2BC"}
1
+ {"version":3,"file":"evalContractCode.d.ts","sourceRoot":"","sources":["evalContractCode.js"],"names":[],"mappings":"AAMA,gFA2BC"}
@@ -1,5 +1,3 @@
1
- // @jessie-check
2
-
3
1
  // NB: cannot import, breaks bundle building
4
2
  /* global globalThis */
5
3
 
@@ -1,2 +1,2 @@
1
- export function makeMakeExiter(baggage: any): (proposal: globalThis.ProposalRecord, zcfSeat: globalThis.ZCFSeat) => ExitObj;
1
+ export function makeMakeExiter(baggage: any): (proposal: import("../types-index.js").ProposalRecord, zcfSeat: import("./types.js").ZCFSeat) => import("../internal-types.js").ExitObj;
2
2
  //# sourceMappingURL=exit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["exit.js"],"names":[],"mappings":"AAwBO,4HAwGN"}
1
+ {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["exit.js"],"names":[],"mappings":"AA4BO,sLAwGN"}
@@ -1,15 +1,19 @@
1
- import { Fail, q } from '@endo/errors';
2
- import { E } from '@endo/eventual-send';
3
- import { prepareExoClass, provideDurableSetStore } from '@agoric/vat-data';
4
1
  import { M, initEmpty } from '@agoric/store';
5
2
  import { TimestampShape } from '@agoric/time';
3
+ import { prepareExoClass, provideDurableSetStore } from '@agoric/vat-data';
4
+ import { Fail, q } from '@endo/errors';
5
+ import { E } from '@endo/eventual-send';
6
6
 
7
7
  import {
8
- isOnDemandExitRule,
9
8
  isAfterDeadlineExitRule,
9
+ isOnDemandExitRule,
10
10
  isWaivedExitRule,
11
11
  } from '../typeGuards.js';
12
12
 
13
+ /**
14
+ * @import {MakeExitObj} from '../internal-types.js';
15
+ */
16
+
13
17
  const ExitObjectI = M.interface('ExitObject', { exit: M.call().returns() });
14
18
  const WakerI = M.interface('Waker', {
15
19
  wake: M.call(TimestampShape).returns(),
@@ -1,5 +1,5 @@
1
1
  export function makeOfferHandlerStorage(zcfBaggage: any): {
2
- storeOfferHandler: (offerHandler: any) => globalThis.Handle<"Invitation">;
2
+ storeOfferHandler: (offerHandler: any) => import("@agoric/zoe").Handle<"Invitation">;
3
3
  takeOfferHandler: (invitationHandle: InvitationHandle, details?: Details) => OfferHandler;
4
4
  };
5
5
  /**
@@ -7,6 +7,8 @@ export function makeOfferHandlerStorage(zcfBaggage: any): {
7
7
  */
8
8
  export type Details = string | {};
9
9
  export type PassableOfferHandler = RemotableBrand<any, any> & RemotableObject & OfferHandler;
10
+ import type { InvitationHandle } from '../types.js';
11
+ import type { OfferHandler } from '@agoric/zoe';
10
12
  import type { RemotableBrand } from '@endo/eventual-send';
11
13
  import type { RemotableObject } from '@endo/pass-style';
12
14
  //# sourceMappingURL=offerHandlerStorage.d.ts.map
@@ -1 +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;oCAL3B,qBAAqB;qCACpB,kBAAkB"}
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"}
@@ -1,14 +1,14 @@
1
- // @jessie-check
2
-
3
1
  import { makeScalarWeakMapStore } from '@agoric/store';
4
- import { ToFarFunction } from '@endo/marshal';
5
2
  import { canBeDurable, provideDurableWeakMapStore } from '@agoric/vat-data';
3
+ import { ToFarFunction } from '@endo/marshal';
6
4
 
7
5
  import { defineDurableHandle } from '../makeHandle.js';
8
6
 
9
7
  /**
10
8
  * @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
11
9
  * @import {MapStore} from '@agoric/swingset-liveslots';
10
+ * @import {OfferHandler} from '@agoric/zoe';
11
+ * @import {InvitationHandle} from '../types.js';
12
12
  */
13
13
 
14
14
  /**
@@ -31,4 +31,6 @@ export function isOfferSafe(proposal: ProposalRecord, allocation: AmountKeywordR
31
31
  * to be given to a user.
32
32
  */
33
33
  export function satisfiesWant(proposal: ProposalRecord, allocation: AmountKeywordRecord): 0 | 1;
34
+ import type { ProposalRecord } from '@agoric/zoe';
35
+ import type { AmountKeywordRecord } from '@agoric/zoe';
34
36
  //# sourceMappingURL=offerSafety.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"offerSafety.d.ts","sourceRoot":"","sources":["offerSafety.js"],"names":[],"mappings":"AA+DA;;;;;;;;;;;;;;;;GAgBG;AACH,sCAVY,cAAc,cAMd,mBAAmB,WAS9B;AAzDD;;;;;;;;;;;;;GAaG;AACH,wCAVW,cAAc,cAMd,mBAAmB,SAKgB"}
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"}
@@ -1,5 +1,9 @@
1
1
  import { AmountMath } from '@agoric/ertp';
2
2
 
3
+ /**
4
+ * @import {AmountKeywordRecord, ProposalRecord} from '@agoric/zoe';
5
+ */
6
+
3
7
  /**
4
8
  * Helper to perform satisfiesWant and satisfiesGive. Is
5
9
  * allocationAmount greater than or equal to requiredAmount for every
@@ -1,3 +1,6 @@
1
1
  export function makeAllocationMap(transfers: Array<TransferPart>): [ZCFSeat, AmountKeywordRecord][];
2
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';
3
6
  //# sourceMappingURL=reallocate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reallocate.d.ts","sourceRoot":"","sources":["reallocate.js"],"names":[],"mappings":"AAoBO,6CAHI,KAAK,CAAC,YAAY,CAAC,GACjB,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE,CA8E5C;8BAtFa,KAAK,CAAC,mBAAmB,CAAC"}
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"}
@@ -1,11 +1,12 @@
1
- import { Fail } from '@endo/errors';
2
1
  import { makeScalarMapStore } from '@agoric/vat-data';
2
+ import { Fail } from '@endo/errors';
3
3
 
4
- import { assertRightsConserved } from './rightsConservation.js';
5
4
  import { addToAllocation, subtractFromAllocation } from './allocationMath.js';
5
+ import { assertRightsConserved } from './rightsConservation.js';
6
6
 
7
7
  /**
8
8
  * @import {MapStore} from '@agoric/swingset-liveslots';
9
+ * @import {AmountKeywordRecord, TransferPart, ZCFSeat} from '@agoric/zoe';
9
10
  */
10
11
 
11
12
  /** @typedef {Array<AmountKeywordRecord>} TransactionList */
@@ -9,4 +9,5 @@
9
9
  * @returns {void}
10
10
  */
11
11
  export function assertRightsConserved(previousAmounts: Amount[], newAmounts: Amount[]): void;
12
+ import type { Amount } from '@agoric/ertp';
12
13
  //# sourceMappingURL=rightsConservation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rightsConservation.d.ts","sourceRoot":"","sources":["rightsConservation.js"],"names":[],"mappings":"AAoFA;;;;;;;;;GASG;AACH,uDANW,MAAM,EAAE,cAER,MAAM,EAAE,GAEN,IAAI,CAMhB"}
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"}
@@ -1,9 +1,11 @@
1
- import { assert, Fail } from '@endo/errors';
2
- import { makeScalarMapStore } from '@agoric/store';
3
1
  import { AmountMath } from '@agoric/ertp';
2
+ import { makeScalarMapStore } from '@agoric/store';
3
+ import { assert, Fail } from '@endo/errors';
4
4
 
5
5
  /**
6
6
  * @import {MapStore} from '@agoric/store';
7
+ * @import {Amount} from '@agoric/ertp';
8
+ * @import {Brand} from '@agoric/ertp';
7
9
  */
8
10
 
9
11
  /**
@@ -1,8 +1,48 @@
1
- export const ZcfSeatShape: import("@endo/patterns").Matcher;
1
+ export const ZcfSeatShape: import("@endo/patterns").MatcherOf<"remotable", any>;
2
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;
3
+ getIssuerRecord: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], (string & {
4
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
5
+ }) | (number & {
6
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
7
+ }) | (bigint & {
8
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
9
+ }) | (false & {
10
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
11
+ }) | (true & {
12
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
13
+ }) | (symbol & {
14
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
15
+ }) | (void & {
16
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
17
+ }) | (ArrayBuffer & {
18
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
19
+ }) | (import("@endo/eventual-send").RemotableBrand<any, any> & {
20
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
21
+ }) | (import("@endo/pass-style").RemotableObject<string> & {
22
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
23
+ }) | (import("@endo/pass-style").CopyArrayInterface<import("@endo/pass-style").PassableCap, Error> & {
24
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
25
+ }) | (import("@endo/pass-style").CopyRecordInterface<import("@endo/pass-style").PassableCap, Error> & {
26
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
27
+ }) | (import("@endo/pass-style").CopyTaggedInterface<import("@endo/pass-style").PassableCap, Error> & {
28
+ "Symbol(castedType)"?: import("./types.js").ZoeIssuerRecord | undefined;
29
+ }), import("@endo/patterns").SyncValueGuard>;
30
+ mintGains: import("@endo/patterns").MethodGuard<"sync", [import("@endo/patterns").MatcherOf<"recordOf", [import("@endo/patterns").MatcherOf<"string", string>, {
31
+ brand: (import("@endo/pass-style").CopyRecordInterface<import("@endo/pass-style").PassableCap, Error> & {
32
+ "Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
33
+ }) | (import("@endo/pass-style").CopyTaggedInterface<import("@endo/pass-style").PassableCap, Error> & {
34
+ "Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
35
+ });
36
+ value: import("@endo/patterns").MatcherOf<"or", [import("@endo/patterns").MatcherOf<"nat", bigint>, import("@endo/patterns").MatcherOf<"setOf", any>, import("@endo/patterns").MatcherOf<"arrayOf", import("@endo/patterns").MatcherOf<"key", any>>, import("@endo/patterns").MatcherOf<"bagOf", any>]>;
37
+ }]>], [import("@endo/patterns").MatcherOf<"remotable", any>], import("@endo/patterns").MatcherOf<"remotable", any>, import("@endo/patterns").SyncValueGuard>;
38
+ burnLosses: import("@endo/patterns").MethodGuard<"sync", [import("@endo/patterns").MatcherOf<"recordOf", [import("@endo/patterns").MatcherOf<"string", string>, {
39
+ brand: (import("@endo/pass-style").CopyRecordInterface<import("@endo/pass-style").PassableCap, Error> & {
40
+ "Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
41
+ }) | (import("@endo/pass-style").CopyTaggedInterface<import("@endo/pass-style").PassableCap, Error> & {
42
+ "Symbol(castedType)"?: import("@agoric/ertp").Brand | undefined;
43
+ });
44
+ value: import("@endo/patterns").MatcherOf<"or", [import("@endo/patterns").MatcherOf<"nat", bigint>, import("@endo/patterns").MatcherOf<"setOf", any>, import("@endo/patterns").MatcherOf<"arrayOf", import("@endo/patterns").MatcherOf<"key", any>>, import("@endo/patterns").MatcherOf<"bagOf", any>]>;
45
+ }]>, import("@endo/patterns").MatcherOf<"remotable", any>], import("@endo/patterns").ArgGuard[], any, import("@endo/patterns").SyncValueGuard>;
6
46
  }>;
7
47
  export const ZcfI: import("@endo/patterns").InterfaceGuard<any>;
8
48
  //# sourceMappingURL=typeGuards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA,4DAAmD;AAEnD;;;;GAMG;AAEH,gEAWE"}
1
+ {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA,gFAAmD;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMG;AAEH,gEAWE"}