@agoric/zoe 0.26.3-dev-da3b8a8.0 → 0.26.3-dev-afcbcd7.0

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 (225) hide show
  1. package/bundles/bundle-contractFacet-js-meta.json +185 -195
  2. package/bundles/bundle-contractFacet.js +1 -1
  3. package/package.json +15 -12
  4. package/src/contractFacet/zcfZygote.js +3 -4
  5. package/src/contractSupport/ratio.js +1 -1
  6. package/src/contracts/callSpread/calculateShares.js +1 -1
  7. package/src/contracts/callSpread/fundedCallSpread.js +1 -1
  8. package/src/contracts/callSpread/payoffHandler.js +1 -1
  9. package/src/contracts/callSpread/pricedCallSpread.js +1 -1
  10. package/src/contracts/exported.js +1 -1
  11. package/src/contracts/loan/close.js +1 -1
  12. package/src/contracts/priceAggregator.js +1 -1
  13. package/src/zoeService/escrowStorage.js +1 -1
  14. package/src/zoeService/zoe.js +3 -4
  15. package/src/zoeService/zoeStorageManager.js +1 -1
  16. package/bundles/bundle-contractFacet.d.ts +0 -7
  17. package/bundles/bundle-contractFacet.d.ts.map +0 -1
  18. package/src/cleanProposal.d.ts +0 -9
  19. package/src/cleanProposal.d.ts.map +0 -1
  20. package/src/contractFacet/allocationMath.d.ts +0 -7
  21. package/src/contractFacet/allocationMath.d.ts.map +0 -1
  22. package/src/contractFacet/evalContractCode.d.ts +0 -2
  23. package/src/contractFacet/evalContractCode.d.ts.map +0 -1
  24. package/src/contractFacet/exit.d.ts +0 -2
  25. package/src/contractFacet/exit.d.ts.map +0 -1
  26. package/src/contractFacet/internal-types.d.ts +0 -8
  27. package/src/contractFacet/internal-types.d.ts.map +0 -1
  28. package/src/contractFacet/offerHandlerStorage.d.ts +0 -5
  29. package/src/contractFacet/offerHandlerStorage.d.ts.map +0 -1
  30. package/src/contractFacet/offerSafety.d.ts +0 -34
  31. package/src/contractFacet/offerSafety.d.ts.map +0 -1
  32. package/src/contractFacet/reallocate.d.ts +0 -3
  33. package/src/contractFacet/reallocate.d.ts.map +0 -1
  34. package/src/contractFacet/rightsConservation.d.ts +0 -12
  35. package/src/contractFacet/rightsConservation.d.ts.map +0 -1
  36. package/src/contractFacet/vatRoot.d.ts +0 -14
  37. package/src/contractFacet/vatRoot.d.ts.map +0 -1
  38. package/src/contractFacet/zcfMint.d.ts +0 -6
  39. package/src/contractFacet/zcfMint.d.ts.map +0 -1
  40. package/src/contractFacet/zcfSeat.d.ts +0 -3
  41. package/src/contractFacet/zcfSeat.d.ts.map +0 -1
  42. package/src/contractFacet/zcfZygote.d.ts +0 -3
  43. package/src/contractFacet/zcfZygote.d.ts.map +0 -1
  44. package/src/contractSupport/atomicTransfer.d.ts +0 -6
  45. package/src/contractSupport/atomicTransfer.d.ts.map +0 -1
  46. package/src/contractSupport/bondingCurves.d.ts +0 -6
  47. package/src/contractSupport/bondingCurves.d.ts.map +0 -1
  48. package/src/contractSupport/durability.d.ts +0 -5
  49. package/src/contractSupport/durability.d.ts.map +0 -1
  50. package/src/contractSupport/index.d.ts +0 -13
  51. package/src/contractSupport/index.d.ts.map +0 -1
  52. package/src/contractSupport/priceAuthority.d.ts +0 -37
  53. package/src/contractSupport/priceAuthority.d.ts.map +0 -1
  54. package/src/contractSupport/priceAuthorityInitial.d.ts +0 -3
  55. package/src/contractSupport/priceAuthorityInitial.d.ts.map +0 -1
  56. package/src/contractSupport/priceAuthorityQuoteMint.d.ts +0 -2
  57. package/src/contractSupport/priceAuthorityQuoteMint.d.ts.map +0 -1
  58. package/src/contractSupport/priceAuthorityTransform.d.ts +0 -15
  59. package/src/contractSupport/priceAuthorityTransform.d.ts.map +0 -1
  60. package/src/contractSupport/priceQuote.d.ts +0 -7
  61. package/src/contractSupport/priceQuote.d.ts.map +0 -1
  62. package/src/contractSupport/ratio.d.ts +0 -28
  63. package/src/contractSupport/ratio.d.ts.map +0 -1
  64. package/src/contractSupport/recorder.d.ts +0 -229
  65. package/src/contractSupport/recorder.d.ts.map +0 -1
  66. package/src/contractSupport/safeMath.d.ts +0 -11
  67. package/src/contractSupport/safeMath.d.ts.map +0 -1
  68. package/src/contractSupport/stateMachine.d.ts +0 -6
  69. package/src/contractSupport/stateMachine.d.ts.map +0 -1
  70. package/src/contractSupport/statistics.d.ts +0 -7
  71. package/src/contractSupport/statistics.d.ts.map +0 -1
  72. package/src/contractSupport/topics.d.ts +0 -22
  73. package/src/contractSupport/topics.d.ts.map +0 -1
  74. package/src/contractSupport/types.d.ts +0 -63
  75. package/src/contractSupport/types.d.ts.map +0 -1
  76. package/src/contractSupport/zoeHelpers.d.ts +0 -30
  77. package/src/contractSupport/zoeHelpers.d.ts.map +0 -1
  78. package/src/contracts/atomicSwap.d.ts +0 -16
  79. package/src/contracts/atomicSwap.d.ts.map +0 -1
  80. package/src/contracts/auction/assertBidSeat.d.ts +0 -2
  81. package/src/contracts/auction/assertBidSeat.d.ts.map +0 -1
  82. package/src/contracts/auction/firstPriceLogic.d.ts +0 -2
  83. package/src/contracts/auction/firstPriceLogic.d.ts.map +0 -1
  84. package/src/contracts/auction/index.d.ts +0 -56
  85. package/src/contracts/auction/index.d.ts.map +0 -1
  86. package/src/contracts/auction/secondPriceLogic.d.ts +0 -2
  87. package/src/contracts/auction/secondPriceLogic.d.ts.map +0 -1
  88. package/src/contracts/automaticRefund.d.ts +0 -25
  89. package/src/contracts/automaticRefund.d.ts.map +0 -1
  90. package/src/contracts/autoswap.d.ts +0 -43
  91. package/src/contracts/autoswap.d.ts.map +0 -1
  92. package/src/contracts/barterExchange.d.ts +0 -22
  93. package/src/contracts/barterExchange.d.ts.map +0 -1
  94. package/src/contracts/callSpread/calculateShares.d.ts +0 -2
  95. package/src/contracts/callSpread/calculateShares.d.ts.map +0 -1
  96. package/src/contracts/callSpread/fundedCallSpread.d.ts +0 -60
  97. package/src/contracts/callSpread/fundedCallSpread.d.ts.map +0 -1
  98. package/src/contracts/callSpread/payoffHandler.d.ts +0 -11
  99. package/src/contracts/callSpread/payoffHandler.d.ts.map +0 -1
  100. package/src/contracts/callSpread/percent.d.ts +0 -3
  101. package/src/contracts/callSpread/percent.d.ts.map +0 -1
  102. package/src/contracts/callSpread/position.d.ts +0 -10
  103. package/src/contracts/callSpread/position.d.ts.map +0 -1
  104. package/src/contracts/callSpread/pricedCallSpread.d.ts +0 -66
  105. package/src/contracts/callSpread/pricedCallSpread.d.ts.map +0 -1
  106. package/src/contracts/callSpread/types.d.ts +0 -30
  107. package/src/contracts/callSpread/types.d.ts.map +0 -1
  108. package/src/contracts/coveredCall-durable.d.ts +0 -23
  109. package/src/contracts/coveredCall-durable.d.ts.map +0 -1
  110. package/src/contracts/coveredCall.d.ts +0 -64
  111. package/src/contracts/coveredCall.d.ts.map +0 -1
  112. package/src/contracts/exported.d.ts +0 -2
  113. package/src/contracts/exported.d.ts.map +0 -1
  114. package/src/contracts/loan/addCollateral.d.ts +0 -3
  115. package/src/contracts/loan/addCollateral.d.ts.map +0 -1
  116. package/src/contracts/loan/borrow.d.ts +0 -3
  117. package/src/contracts/loan/borrow.d.ts.map +0 -1
  118. package/src/contracts/loan/close.d.ts +0 -3
  119. package/src/contracts/loan/close.d.ts.map +0 -1
  120. package/src/contracts/loan/index.d.ts +0 -64
  121. package/src/contracts/loan/index.d.ts.map +0 -1
  122. package/src/contracts/loan/lend.d.ts +0 -3
  123. package/src/contracts/loan/lend.d.ts.map +0 -1
  124. package/src/contracts/loan/liquidate.d.ts +0 -3
  125. package/src/contracts/loan/liquidate.d.ts.map +0 -1
  126. package/src/contracts/loan/scheduleLiquidation.d.ts +0 -3
  127. package/src/contracts/loan/scheduleLiquidation.d.ts.map +0 -1
  128. package/src/contracts/loan/types.d.ts +0 -161
  129. package/src/contracts/loan/types.d.ts.map +0 -1
  130. package/src/contracts/loan/updateDebt.d.ts +0 -11
  131. package/src/contracts/loan/updateDebt.d.ts.map +0 -1
  132. package/src/contracts/mintAndSellNFT.d.ts +0 -28
  133. package/src/contracts/mintAndSellNFT.d.ts.map +0 -1
  134. package/src/contracts/mintPayments.d.ts +0 -30
  135. package/src/contracts/mintPayments.d.ts.map +0 -1
  136. package/src/contracts/oracle.d.ts +0 -26
  137. package/src/contracts/oracle.d.ts.map +0 -1
  138. package/src/contracts/otcDesk.d.ts +0 -79
  139. package/src/contracts/otcDesk.d.ts.map +0 -1
  140. package/src/contracts/priceAggregator.d.ts +0 -91
  141. package/src/contracts/priceAggregator.d.ts.map +0 -1
  142. package/src/contracts/priceAggregatorTypes.d.ts +0 -77
  143. package/src/contracts/priceAggregatorTypes.d.ts.map +0 -1
  144. package/src/contracts/scaledPriceAuthority.d.ts +0 -23
  145. package/src/contracts/scaledPriceAuthority.d.ts.map +0 -1
  146. package/src/contracts/sellItems.d.ts +0 -30
  147. package/src/contracts/sellItems.d.ts.map +0 -1
  148. package/src/contracts/simpleExchange.d.ts +0 -37
  149. package/src/contracts/simpleExchange.d.ts.map +0 -1
  150. package/src/contracts/types.d.ts +0 -80
  151. package/src/contracts/types.d.ts.map +0 -1
  152. package/src/handleWarning.d.ts +0 -3
  153. package/src/handleWarning.d.ts.map +0 -1
  154. package/src/instanceRecordStorage.d.ts +0 -2
  155. package/src/instanceRecordStorage.d.ts.map +0 -1
  156. package/src/internal-types.d.ts +0 -177
  157. package/src/internal-types.d.ts.map +0 -1
  158. package/src/issuerRecord.d.ts +0 -3
  159. package/src/issuerRecord.d.ts.map +0 -1
  160. package/src/issuerStorage.d.ts +0 -14
  161. package/src/issuerStorage.d.ts.map +0 -1
  162. package/src/makeHandle.d.ts +0 -4
  163. package/src/makeHandle.d.ts.map +0 -1
  164. package/src/objArrayConversion.d.ts +0 -5
  165. package/src/objArrayConversion.d.ts.map +0 -1
  166. package/src/typeGuards.d.ts +0 -168
  167. package/src/typeGuards.d.ts.map +0 -1
  168. package/src/types.d.ts +0 -45
  169. package/src/types.d.ts.map +0 -1
  170. package/src/zoeService/createZCFVat.d.ts +0 -2
  171. package/src/zoeService/createZCFVat.d.ts.map +0 -1
  172. package/src/zoeService/escrowStorage.d.ts +0 -7
  173. package/src/zoeService/escrowStorage.d.ts.map +0 -1
  174. package/src/zoeService/feeMint.d.ts +0 -30
  175. package/src/zoeService/feeMint.d.ts.map +0 -1
  176. package/src/zoeService/installationStorage.d.ts +0 -35
  177. package/src/zoeService/installationStorage.d.ts.map +0 -1
  178. package/src/zoeService/instanceAdminStorage.d.ts +0 -123
  179. package/src/zoeService/instanceAdminStorage.d.ts.map +0 -1
  180. package/src/zoeService/internal-types.d.ts +0 -90
  181. package/src/zoeService/internal-types.d.ts.map +0 -1
  182. package/src/zoeService/invitationQueries.d.ts +0 -6
  183. package/src/zoeService/invitationQueries.d.ts.map +0 -1
  184. package/src/zoeService/makeInvitation.d.ts +0 -5
  185. package/src/zoeService/makeInvitation.d.ts.map +0 -1
  186. package/src/zoeService/offer/burnInvitation.d.ts +0 -5
  187. package/src/zoeService/offer/burnInvitation.d.ts.map +0 -1
  188. package/src/zoeService/offer/offer.d.ts +0 -2
  189. package/src/zoeService/offer/offer.d.ts.map +0 -1
  190. package/src/zoeService/startInstance.d.ts +0 -4
  191. package/src/zoeService/startInstance.d.ts.map +0 -1
  192. package/src/zoeService/types.d.ts +0 -226
  193. package/src/zoeService/types.d.ts.map +0 -1
  194. package/src/zoeService/zoe.d.ts +0 -61
  195. package/src/zoeService/zoe.d.ts.map +0 -1
  196. package/src/zoeService/zoeSeat.d.ts +0 -56
  197. package/src/zoeService/zoeSeat.d.ts.map +0 -1
  198. package/src/zoeService/zoeStorageManager.d.ts +0 -75
  199. package/src/zoeService/zoeStorageManager.d.ts.map +0 -1
  200. package/tools/fakePriceAuthority.d.ts +0 -30
  201. package/tools/fakePriceAuthority.d.ts.map +0 -1
  202. package/tools/fakeVatAdmin.d.ts +0 -103
  203. package/tools/fakeVatAdmin.d.ts.map +0 -1
  204. package/tools/internal-types.d.ts +0 -12
  205. package/tools/internal-types.d.ts.map +0 -1
  206. package/tools/manualPriceAuthority.d.ts +0 -20
  207. package/tools/manualPriceAuthority.d.ts.map +0 -1
  208. package/tools/manualTimer.d.ts +0 -44
  209. package/tools/manualTimer.d.ts.map +0 -1
  210. package/tools/prepare-test-env-ava.d.ts +0 -2
  211. package/tools/prepare-test-env-ava.d.ts.map +0 -1
  212. package/tools/prepare-test-env.d.ts +0 -2
  213. package/tools/prepare-test-env.d.ts.map +0 -1
  214. package/tools/priceAuthorityRegistry.d.ts +0 -20
  215. package/tools/priceAuthorityRegistry.d.ts.map +0 -1
  216. package/tools/scriptedOracle.d.ts +0 -27
  217. package/tools/scriptedOracle.d.ts.map +0 -1
  218. package/tools/scriptedPriceAuthority.d.ts +0 -2
  219. package/tools/scriptedPriceAuthority.d.ts.map +0 -1
  220. package/tools/setup-zoe.d.ts +0 -35
  221. package/tools/setup-zoe.d.ts.map +0 -1
  222. package/tools/types-ambient.d.ts +0 -142
  223. package/tools/types-ambient.d.ts.map +0 -1
  224. package/tools/types.d.ts +0 -142
  225. package/tools/types.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/zoe",
3
- "version": "0.26.3-dev-da3b8a8.0+da3b8a8",
3
+ "version": "0.26.3-dev-afcbcd7.0+afcbcd7",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
@@ -10,7 +10,7 @@
10
10
  "scripts": {
11
11
  "build": "yarn build:bundles",
12
12
  "build:bundles": "node scripts/build-bundles.js",
13
- "prepack": "echo \"export {}; \" | cat - tools/types-ambient.js > tools/types.js && tsc --build tsconfig.build.json",
13
+ "prepack": "echo \"export {}; \" | cat - tools/types-ambient.js > tools/types.js && tsc --build --clean tsconfig.build.json",
14
14
  "postpack": "git clean -f '*.d.ts*' tools/types.js",
15
15
  "test": "ava --verbose",
16
16
  "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
@@ -43,15 +43,15 @@
43
43
  },
44
44
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
45
45
  "dependencies": {
46
- "@agoric/assert": "0.6.1-dev-da3b8a8.0+da3b8a8",
47
- "@agoric/ertp": "0.16.3-dev-da3b8a8.0+da3b8a8",
48
- "@agoric/internal": "0.3.3-dev-da3b8a8.0+da3b8a8",
49
- "@agoric/notifier": "0.6.3-dev-da3b8a8.0+da3b8a8",
50
- "@agoric/store": "0.9.3-dev-da3b8a8.0+da3b8a8",
51
- "@agoric/swingset-liveslots": "0.10.3-dev-da3b8a8.0+da3b8a8",
52
- "@agoric/swingset-vat": "0.32.3-dev-da3b8a8.0+da3b8a8",
53
- "@agoric/time": "0.3.3-dev-da3b8a8.0+da3b8a8",
54
- "@agoric/vat-data": "0.5.3-dev-da3b8a8.0+da3b8a8",
46
+ "@agoric/assert": "0.6.1-dev-afcbcd7.0+afcbcd7",
47
+ "@agoric/ertp": "0.16.3-dev-afcbcd7.0+afcbcd7",
48
+ "@agoric/internal": "0.3.3-dev-afcbcd7.0+afcbcd7",
49
+ "@agoric/notifier": "0.6.3-dev-afcbcd7.0+afcbcd7",
50
+ "@agoric/store": "0.9.3-dev-afcbcd7.0+afcbcd7",
51
+ "@agoric/swingset-liveslots": "0.10.3-dev-afcbcd7.0+afcbcd7",
52
+ "@agoric/swingset-vat": "0.32.3-dev-afcbcd7.0+afcbcd7",
53
+ "@agoric/time": "0.3.3-dev-afcbcd7.0+afcbcd7",
54
+ "@agoric/vat-data": "0.5.3-dev-afcbcd7.0+afcbcd7",
55
55
  "@endo/bundle-source": "^2.7.0",
56
56
  "@endo/captp": "^3.1.4",
57
57
  "@endo/eventual-send": "^0.17.5",
@@ -133,5 +133,8 @@
133
133
  "publishConfig": {
134
134
  "access": "public"
135
135
  },
136
- "gitHead": "da3b8a80f4ae8ccf73bfd7cdeef376a67c673b7d"
136
+ "typeCoverage": {
137
+ "atLeast": 81.5
138
+ },
139
+ "gitHead": "afcbcd727d7c9a4c6330d619c7846c9963b1e25a"
137
140
  }
@@ -24,13 +24,12 @@ import { makeMakeExiter } from './exit.js';
24
24
  import { makeOfferHandlerStorage } from './offerHandlerStorage.js';
25
25
  import { createSeatManager } from './zcfSeat.js';
26
26
 
27
- import '../internal-types.js';
28
- import './internal-types.js';
29
-
30
- import '@agoric/swingset-vat/src/types-ambient.js';
31
27
  import { HandleOfferI, InvitationHandleShape } from '../typeGuards.js';
32
28
  import { prepareZcMint } from './zcfMint.js';
33
29
 
30
+ /// <reference path="../internal-types.js" />
31
+ /// <reference path="./internal-types.js" />
32
+
34
33
  /** @typedef {import('@agoric/ertp').IssuerOptionsRecord} IssuerOptionsRecord */
35
34
 
36
35
  const { Fail } = assert;
@@ -1,4 +1,4 @@
1
- import './types.js';
1
+ /// <reference path="./types.js" />
2
2
  import { q, Fail } from '@agoric/assert';
3
3
  import { AmountMath } from '@agoric/ertp';
4
4
  import { assertRecord } from '@endo/marshal';
@@ -1,4 +1,4 @@
1
- import './types.js';
1
+ /// <reference path="./types.js" />
2
2
 
3
3
  import { AmountMath, isNatValue } from '@agoric/ertp';
4
4
  import { assert } from '@agoric/assert';
@@ -1,4 +1,4 @@
1
- import './types.js';
1
+ /// <reference path="./types.js" />
2
2
 
3
3
  import { makePromiseKit } from '@endo/promise-kit';
4
4
  import { E } from '@endo/eventual-send';
@@ -1,5 +1,5 @@
1
1
  /* eslint @typescript-eslint/no-floating-promises: "warn" */
2
- import './types.js';
2
+ /// <reference path="./types.js" />
3
3
 
4
4
  import { E } from '@endo/eventual-send';
5
5
  import { AmountMath } from '@agoric/ertp';
@@ -1,5 +1,5 @@
1
1
  /* eslint @typescript-eslint/no-floating-promises: "warn" */
2
- import './types.js';
2
+ /// <reference path="./types.js" />
3
3
 
4
4
  import { makePromiseKit } from '@endo/promise-kit';
5
5
  import { E } from '@endo/eventual-send';
@@ -1,4 +1,4 @@
1
- import './types.js';
1
+ /// <reference path="./types.js" />
2
2
  // eslint-disable-next-line no-restricted-syntax
3
3
  import './loan/types.js';
4
4
  import './callSpread/types.js';
@@ -1,4 +1,4 @@
1
- import './types.js';
1
+ /// <reference path="./types.js" />
2
2
 
3
3
  import { Fail } from '@agoric/assert';
4
4
  import { AmountMath } from '@agoric/ertp';
@@ -33,7 +33,7 @@ import {
33
33
  ratiosSame,
34
34
  } from '../contractSupport/ratio.js';
35
35
 
36
- import '@agoric/ertp/src/types-ambient.js';
36
+ /// <reference path="../../../ERTP/exported.js" />
37
37
 
38
38
  /** @typedef {bigint | number | string} ParsableNumber */
39
39
  /**
@@ -4,7 +4,7 @@ import { q, Fail } from '@agoric/assert';
4
4
  import { objectMap } from '@agoric/internal';
5
5
  import { provideDurableWeakMapStore } from '@agoric/vat-data';
6
6
 
7
- import './types.js';
7
+ /// <reference path="./types.js" />
8
8
  import './internal-types.js';
9
9
 
10
10
  import { cleanKeywords } from '../cleanProposal.js';
@@ -10,11 +10,10 @@
10
10
  * currently. When the brand has an assetKind itself, AmountMath will
11
11
  * validate that.
12
12
  */
13
- // Ambient types. https://github.com/Agoric/agoric-sdk/issues/6512
14
- import '@agoric/ertp/exported.js';
15
- import '@agoric/store/exported.js';
16
13
 
17
- import '../internal-types.js';
14
+ /// <reference path="../../../ERTP/exported.js" />
15
+ /// <reference path="../../../store/exported.js" />
16
+ /// <reference path="../internal-types.js" />
18
17
 
19
18
  import { E } from '@endo/eventual-send';
20
19
  import { Far } from '@endo/marshal';
@@ -21,7 +21,7 @@ import { prepareInvitationKit } from './makeInvitation.js';
21
21
  import { makeInstanceAdminStorage } from './instanceAdminStorage.js';
22
22
  import { makeInstallationStorage } from './installationStorage.js';
23
23
 
24
- import './types.js';
24
+ /// <reference path="./types.js" />
25
25
  import './internal-types.js';
26
26
  import {
27
27
  InstanceStorageManagerIKit,
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- let moduleFormat: string;
3
- let endoZipBase64: string;
4
- let endoZipBase64Sha512: string;
5
- }
6
- export default _default;
7
- //# sourceMappingURL=bundle-contractFacet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundle-contractFacet.d.ts","sourceRoot":"","sources":["bundle-contractFacet.js"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
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, any>;
7
- export function coerceAmountKeywordRecord(allegedAmountKeywordRecord: any, getAssetKindByBrand: any): Record<string, any>;
8
- export function cleanProposal(proposal: Proposal, getAssetKindByBrand: GetAssetKindByBrand): ProposalRecord;
9
- //# sourceMappingURL=cleanProposal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cleanProposal.d.ts","sourceRoot":"","sources":["cleanProposal.js"],"names":[],"mappings":"AAWA,qCAAsC;AAa/B,sDAYN;AAMM;;IAFM,MAAM,EAAE,CAYpB;AAEM,iIA0BN;AAEM,0HAUN;AA4CM,wCAJI,QAAQ,uBACR,mBAAmB,GACjB,cAAc,CA6B1B"}
@@ -1,7 +0,0 @@
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
- //# sourceMappingURL=allocationMath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"allocationMath.d.ts","sourceRoot":"","sources":["allocationMath.js"],"names":[],"mappings":"AAkFO,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,2 +0,0 @@
1
- export function evalContractBundle(bundle: any, additionalEndowments?: {}): Promise<any>;
2
- //# sourceMappingURL=evalContractCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evalContractCode.d.ts","sourceRoot":"","sources":["evalContractCode.js"],"names":[],"mappings":"AASA,yFA0BC"}
@@ -1,2 +0,0 @@
1
- export function makeMakeExiter(baggage: any): (proposal: ProposalRecord, zcfSeat: ZCFSeat) => ExitObj;
2
- //# sourceMappingURL=exit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["exit.js"],"names":[],"mappings":"AAyBO,sGAuGN"}
@@ -1,8 +0,0 @@
1
- type TestJigSetter = ({ zcf }: {
2
- zcf: ZCF;
3
- }) => void;
4
- type ZCFZygote = {
5
- startContract: (instanceAdminFromZoe: ERef<ZoeInstanceAdmin>, instanceRecordFromZoe: InstanceRecord, issuerStorageFromZoe: IssuerRecords, privateArgs?: object) => Promise<ExecuteContractResult>;
6
- restartContract: (privateArgs?: object) => void;
7
- };
8
- //# sourceMappingURL=internal-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":";SAG4B,GAAG;MAAO,IAAI;;0CAKL,KAAK,gBAAgB,CAAC,yBAC7B,cAAc,qDAEvB,MAAM,KACnB,QAAQ,qBAAqB,CAAC;oCACT,MAAM,KAAK,IAAI"}
@@ -1,5 +0,0 @@
1
- export function makeOfferHandlerStorage(zcfBaggage: any): {
2
- storeOfferHandler: (offerHandler: OfferHandler) => InvitationHandle;
3
- takeOfferHandler: (invitationHandle: InvitationHandle, details?: Details) => OfferHandler;
4
- };
5
- //# sourceMappingURL=offerHandlerStorage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"offerHandlerStorage.d.ts","sourceRoot":"","sources":["offerHandlerStorage.js"],"names":[],"mappings":"AAQO;sCAkBqB,YAAY,KAAK,gBAAgB;yCAe9B,gBAAgB,YAAY,OAAO,KAAK,YAAY;EAsBlF"}
@@ -1,34 +0,0 @@
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
- //# sourceMappingURL=offerSafety.d.ts.map
@@ -1 +0,0 @@
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,3 +0,0 @@
1
- export function makeAllocationMap(transfers: Array<TransferPart>): [ZCFSeat, AmountKeywordRecord][];
2
- export type TransactionList = Array<AmountKeywordRecord>;
3
- //# sourceMappingURL=reallocate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reallocate.d.ts","sourceRoot":"","sources":["reallocate.js"],"names":[],"mappings":"AAiBO,6CAHI,mBAAmB,GACjB,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE,CA8E5C;8BAtFa,MAAM,mBAAmB,CAAC"}
@@ -1,12 +0,0 @@
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
- //# sourceMappingURL=rightsConservation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rightsConservation.d.ts","sourceRoot":"","sources":["rightsConservation.js"],"names":[],"mappings":"AAkFA;;;;;;;;;GASG;AACH,uDANW,MAAM,EAAE,cAER,MAAM,EAAE,GAEN,IAAI,CAMhB"}
@@ -1,14 +0,0 @@
1
- /**
2
- * @param {VatPowers & { testJigSetter: TestJigSetter }} powers
3
- * @param {{contractBundleCap: BundleCap, zoeService: ZoeService, invitationIssuer: Issuer<'set'>, privateArgs?: any}} vatParameters
4
- * @param {import('@agoric/vat-data').Baggage} baggage
5
- */
6
- export function buildRootObject(powers: import("@agoric/swingset-vat").TerminationVatPowers & {
7
- testJigSetter: TestJigSetter;
8
- }, vatParameters: {
9
- contractBundleCap: BundleCap;
10
- zoeService: ZoeService;
11
- invitationIssuer: Issuer<'set'>;
12
- privateArgs?: any;
13
- }, baggage: MapStore<string, any>): Promise<import("@endo/eventual-send").RemotableBrand<{}, {}>>;
14
- //# sourceMappingURL=vatRoot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vatRoot.d.ts","sourceRoot":"","sources":["vatRoot.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH;mBAJwC,aAAa;;uBACtB,SAAS;gBAAc,UAAU;sBAAoB,OAAO,KAAK,CAAC;kBAAgB,GAAG;kGAgEnH"}
@@ -1,6 +0,0 @@
1
- export function sumAmountKeywordRecord<K extends AssetKind>(amr: AmountKeywordRecord, issuerRecord: IssuerRecord<K>): Amount<K>;
2
- export function prepareZcMint(zcfBaggage: MapStore<string, any>, recordIssuer: (keyword: string, issuerRecord: IssuerRecord) => void, getAssetKindByBrand: GetAssetKindByBrand, makeEmptySeatKit: (exit?: undefined) => {
3
- zcfSeat: any;
4
- userSeat: Promise<UserSeat>;
5
- }, reallocator: ZcfMintReallocator): <K extends AssetKind>(keyword: string, zoeMintP: ERef<ZoeMint<K>>) => Promise<ZCFMint<K>>;
6
- //# sourceMappingURL=zcfMint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"AAsBO,iEAJI,mBAAmB,4CAc7B;AASM,yFALgB,MAAM,gBAAgB,YAAY,KAAG,IAAI,uBACrD,mBAAmB,4BACX,SAAS,KAAK;IAAE,OAAO,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,QAAQ,QAAQ,CAAC,CAAA;CAAE,eACnE,kBAAkB,kCAkHhB,MAAM,qDAalB"}
@@ -1,3 +0,0 @@
1
- /** @type {CreateSeatManager} */
2
- export const createSeatManager: CreateSeatManager;
3
- //# sourceMappingURL=zcfSeat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zcfSeat.d.ts","sourceRoot":"","sources":["zcfSeat.js"],"names":[],"mappings":"AA2BA,gCAAgC;AAChC,gCADW,iBAAiB,CAyd1B"}
@@ -1,3 +0,0 @@
1
- export function makeZCFZygote(powers: VatPowers, zoeService: ERef<ZoeService>, invitationIssuer: Issuer<'set'>, testJigSetter: TestJigSetter, contractBundleCap: BundleCap, zcfBaggage?: MapStore<string, any>): Promise<ZCFZygote>;
2
- export type IssuerOptionsRecord = import('@agoric/ertp').IssuerOptionsRecord;
3
- //# sourceMappingURL=zcfZygote.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zcfZygote.d.ts","sourceRoot":"","sources":["zcfZygote.js"],"names":[],"mappings":"AAkDO,sCARI,SAAS,cACT,KAAK,UAAU,CAAC,oBAChB,OAAO,KAAK,CAAC,iBACb,aAAa,qBACb,SAAS,uCAEP,QAAQ,SAAS,CAAC,CAqc9B;kCApda,OAAO,cAAc,EAAE,mBAAmB"}
@@ -1,6 +0,0 @@
1
- export const TransferPartShape: import("@endo/patterns").Matcher;
2
- export function atomicRearrange(zcf: ZCF, transfers: TransferPart[]): void;
3
- export function fromOnly(fromSeat: ZCFSeat, fromAmounts: AmountKeywordRecord): TransferPart;
4
- export function toOnly(toSeat: ZCFSeat, toAmounts: AmountKeywordRecord): TransferPart;
5
- export function atomicTransfer(zcf: ZCF, fromSeat?: ZCFSeat | undefined, toSeat?: ZCFSeat | undefined, fromAmounts?: AmountKeywordRecord | undefined, toAmounts?: AmountKeywordRecord | undefined): void;
6
- //# sourceMappingURL=atomicTransfer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atomicTransfer.d.ts","sourceRoot":"","sources":["atomicTransfer.js"],"names":[],"mappings":"AAGA,iEAGE;AAyCK,qCAHI,GAAG,aACH,cAAc,QAIxB;AAcM,mCAJI,OAAO,eACP,mBAAmB,gBAIc;AAcrC,+BAJI,OAAO,aACP,mBAAmB,gBAIqB;AAW5C,oCANI,GAAG,kKAYgE"}
@@ -1,6 +0,0 @@
1
- export function getInputPrice(inputValue: any, inputReserve: any, outputReserve: any, feeBasisPoints?: bigint | undefined): NatValue;
2
- export function getOutputPrice(outputValue: any, inputReserve: any, outputReserve: any, feeBasisPoints?: bigint | undefined): 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
- //# sourceMappingURL=bondingCurves.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bondingCurves.d.ts","sourceRoot":"","sources":["bondingCurves.js"],"names":[],"mappings":"AAkCO,0CAXI,GAAG,gBAEH,GAAG,iBAEH,GAAG,wCAKD,QAAQ,CAoBpB;AAqBM,4CAXI,GAAG,gBAEH,GAAG,iBAEH,GAAG,wCAKD,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"}
@@ -1,5 +0,0 @@
1
- export function makeEphemeraProvider<E extends {}, K extends {} = any>(init: (key: K) => E): (key: K) => E;
2
- export function provideEmptySeat(zcf: ZCF, baggage: MapStore<string, any>, 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: MapStore<string, any>, key: string, makeValue: T, withValue?: ((value: Awaited<ReturnType<T>>) => void) | undefined): Promise<Awaited<ReturnType<T>>>;
5
- //# sourceMappingURL=durability.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"durability.d.ts","sourceRoot":"","sources":["durability.js"],"names":[],"mappings":"AAaO,2GAkBN;AAWM,sCALI,GAAG,wCAEH,MAAM,GACJ,OAAO,CAInB;AAiCM,0DAL4B,KAAK,GAAG,CAAC,YACjC,SAAS,MAAM,EAAE,GAAG,CAAC,sEAyB/B;AAgBM,iDAPa,KAAK,GAAG,CAAC,wCAElB,MAAM,gEAE6B,IAAI,gDAejD"}
@@ -1,13 +0,0 @@
1
- export { natSafeMath } from "./safeMath.js";
2
- export { makeStateMachine } from "./stateMachine.js";
3
- export * from "./durability.js";
4
- export * from "./priceAuthority.js";
5
- export * from "./priceQuote.js";
6
- export * from "./statistics.js";
7
- export * from "./recorder.js";
8
- export * from "./topics.js";
9
- export { getInputPrice, getOutputPrice, calcLiqValueToMint, calcValueToRemove, calcSecondaryRequired } from "./bondingCurves.js";
10
- export { atomicRearrange, atomicTransfer, fromOnly, toOnly } from "./atomicTransfer.js";
11
- export { defaultAcceptanceMsg, swap, fitProposalShape, assertProposalShape, assertIssuerKeywords, satisfies, assertNatAssetKind, swapExact, depositToSeat, withdrawFromSeat, saveAllIssuers, offerTo } from "./zoeHelpers.js";
12
- export { makeRatio, makeRatioFromAmounts, floorMultiplyBy, floorDivideBy, ceilMultiplyBy, ceilDivideBy, assertIsRatio, invertRatio, oneMinus, addRatios, multiplyRatios, ratiosSame, quantize, ratioGTE, subtractRatios, ratioToNumber } from "./ratio.js";
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
@@ -1,37 +0,0 @@
1
- /**
2
- * @param {object} opts
3
- * @param {Issuer<'set'>} opts.quoteIssuer
4
- * @param {ERef<Notifier<unknown>>} opts.notifier
5
- * @param {ERef<import('@agoric/time/src/types').TimerService>} opts.timer
6
- * @param {PriceQuoteCreate} opts.createQuote
7
- * @param {Brand<'nat'>} opts.actualBrandIn
8
- * @param {Brand<'nat'>} opts.actualBrandOut
9
- * @returns {PriceAuthorityKit}
10
- */
11
- export function makeOnewayPriceAuthorityKit(opts: {
12
- quoteIssuer: Issuer<'set'>;
13
- notifier: ERef<Notifier<unknown>>;
14
- timer: ERef<import('@agoric/time/src/types').TimerService>;
15
- createQuote: PriceQuoteCreate;
16
- actualBrandIn: Brand<'nat'>;
17
- actualBrandOut: Brand<'nat'>;
18
- }): PriceAuthorityKit;
19
- export const PriceAuthorityI: import("@endo/patterns").InterfaceGuard<{
20
- getQuoteIssuer: import("@endo/patterns").MethodGuard;
21
- getTimerService: import("@endo/patterns").MethodGuard;
22
- quoteGiven: import("@endo/patterns").MethodGuard;
23
- quoteWanted: import("@endo/patterns").MethodGuard;
24
- makeQuoteNotifier: import("@endo/patterns").MethodGuard;
25
- quoteAtTime: import("@endo/patterns").MethodGuard;
26
- quoteWhenLT: import("@endo/patterns").MethodGuard;
27
- quoteWhenLTE: import("@endo/patterns").MethodGuard;
28
- quoteWhenGTE: import("@endo/patterns").MethodGuard;
29
- quoteWhenGT: import("@endo/patterns").MethodGuard;
30
- mutableQuoteWhenLT: import("@endo/patterns").MethodGuard;
31
- mutableQuoteWhenLTE: import("@endo/patterns").MethodGuard;
32
- mutableQuoteWhenGTE: import("@endo/patterns").MethodGuard;
33
- mutableQuoteWhenGT: import("@endo/patterns").MethodGuard;
34
- }>;
35
- export type CompareAmount = (amount: Amount, amountLimit: Amount) => boolean;
36
- export type Trigger = (createInstantQuote: PriceQuoteCreate) => Promise<void>;
37
- //# sourceMappingURL=priceAuthority.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"priceAuthority.d.ts","sourceRoot":"","sources":["priceAuthority.js"],"names":[],"mappings":"AA8DA;;;;;;;;;GASG;AACH;IAR+B,WAAW,EAA/B,OAAO,KAAK,CAAC;IACiB,QAAQ,EAAtC,KAAK,SAAS,OAAO,CAAC,CAAC;IACmC,KAAK,EAA/D,KAAK,OAAO,wBAAwB,EAAE,YAAY,CAAC;IAC5B,WAAW,EAAlC,gBAAgB;IACG,aAAa,EAAhC,MAAM,KAAK,CAAC;IACO,cAAc,EAAjC,MAAM,KAAK,CAAC;IACV,iBAAiB,CA8S7B;AAzUD;;;;;;;;;;;;;;;GAiBG;qCA3CQ,MAAM,eACN,MAAM,KACJ,OAAO;2CAiBT,gBAAgB,KACd,QAAQ,IAAI,CAAC"}
@@ -1,3 +0,0 @@
1
- export function makeInitialTransform(priceOutPerIn: Ratio, priceAuthority: PriceAuthority, quoteMint: ERef<Mint<'set'>>, brandIn: Brand<'nat'>, brandOut: Brand<'nat'>): PriceAuthority;
2
- export type EOnly<T> = import('@endo/eventual-send').EOnly<T>;
3
- //# sourceMappingURL=priceAuthorityInitial.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"priceAuthorityInitial.d.ts","sourceRoot":"","sources":["priceAuthorityInitial.js"],"names":[],"mappings":"AA4BO,oDAPI,KAAK,kBACL,cAAc,aACd,KAAK,KAAK,KAAK,CAAC,CAAC,WACjB,MAAM,KAAK,CAAC,YACZ,MAAM,KAAK,CAAC,GACV,cAAc,CAyF1B;uBAtGyB,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export function provideQuoteMint(baggage: MapStore<string, any>): Mint<"set">;
2
- //# sourceMappingURL=priceAuthorityQuoteMint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"priceAuthorityQuoteMint.d.ts","sourceRoot":"","sources":["priceAuthorityQuoteMint.js"],"names":[],"mappings":"AAWO,8EAsBN"}
@@ -1,15 +0,0 @@
1
- export function mintQuote(quoteBrand: Brand<'set'>, amountIn: Amount<'nat'>, amountOut: Amount<'nat'>, timer: ERef<import('@agoric/time/src/types').TimerService>, timestamp: import('@agoric/time').Timestamp, quoteMint: ERef<Mint<'set'>>): Promise<PriceQuote>;
2
- export function makePriceAuthorityTransform({ quoteMint, sourcePriceAuthority, sourceBrandIn, sourceBrandOut, actualBrandIn, actualBrandOut, makeSourceAmountIn, makeSourceAmountOut, transformSourceAmountIn, transformSourceAmountOut, }: {
3
- quoteMint: ERef<Mint<'set'>>;
4
- sourcePriceAuthority: ERef<PriceAuthority>;
5
- sourceBrandIn: Brand<'nat'>;
6
- sourceBrandOut: Brand<'nat'>;
7
- actualBrandIn?: Brand<"nat"> | undefined;
8
- actualBrandOut?: Brand<"nat"> | undefined;
9
- makeSourceAmountIn?: ((amountIn: Amount<'nat'>) => Amount<'nat'>) | undefined;
10
- makeSourceAmountOut?: ((amountOut: Amount<'nat'>) => Amount<'nat'>) | undefined;
11
- transformSourceAmountIn?: ((sourceAmountIn: Amount<'nat'>) => Amount<'nat'>) | undefined;
12
- transformSourceAmountOut?: ((sourceAmountOut: Amount<'nat'>) => Amount<'nat'>) | undefined;
13
- }): Promise<PriceAuthority>;
14
- export type EOnly<T> = import('@endo/eventual-send').EOnly<T>;
15
- //# sourceMappingURL=priceAuthorityTransform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"priceAuthorityTransform.d.ts","sourceRoot":"","sources":["priceAuthorityTransform.js"],"names":[],"mappings":"AAiBO,sCARI,MAAM,KAAK,CAAC,YACZ,OAAO,KAAK,CAAC,aACb,OAAO,KAAK,CAAC,SACb,KAAK,OAAO,wBAAwB,EAAE,YAAY,CAAC,aACnD,OAAO,cAAc,EAAE,SAAS,aAChC,KAAK,KAAK,KAAK,CAAC,CAAC,GACf,QAAQ,UAAU,CAAC,CAmB/B;AAeM;IAX4B,SAAS,EAAjC,KAAK,KAAK,KAAK,CAAC,CAAC;IACU,oBAAoB,EAA/C,KAAK,cAAc,CAAC;IACD,aAAa,EAAhC,MAAM,KAAK,CAAC;IACO,cAAc,EAAjC,MAAM,KAAK,CAAC;IACQ,aAAa;IACb,cAAc;IACgB,kBAAkB,eAAzD,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACS,mBAAmB,gBAA1D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACa,uBAAuB,qBAA9D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACS,wBAAwB,sBAA/D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;4BA4N3D;uBArQyB,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export function getPriceDescription(quote: PriceQuote): PriceDescription;
2
- export function getAmountIn(quote: PriceQuote): Amount<"nat">;
3
- export function getAmountOut(quote: PriceQuote): Amount<"nat">;
4
- /** @type {(quote: PriceQuote) => import('@agoric/time/src/types').Timestamp} */
5
- export const getTimestamp: (quote: PriceQuote) => import('@agoric/time/src/types').Timestamp;
6
- export function unitAmount(brand: Brand<'nat'>): Promise<Amount<"nat">>;
7
- //# sourceMappingURL=priceQuote.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"AAiBO,2CAHI,UAAU,GACR,gBAAgB,CAM5B;AAGM,mCADK,UAAU,iBACiD;AAEhE,oCADK,UAAU,iBACmD;AACzE,gFAAgF;AAChF,mCADmB,UAAU,KAAK,OAAO,wBAAwB,EAAE,SAAS,CACF;AAGnE,kCADK,MAAM,KAAK,CAAC,0BAMvB"}
@@ -1,28 +0,0 @@
1
- export function assertIsRatio(ratio: any): void;
2
- export function makeRatio(numerator: bigint, numeratorBrand: Brand, denominator?: bigint | undefined, denominatorBrand?: Brand<AssetKind> | undefined): Ratio;
3
- export function makeRatioFromAmounts(numeratorAmount: Amount, denominatorAmount: Amount): Ratio;
4
- /** @type {ScaleAmount} */
5
- export const floorMultiplyBy: ScaleAmount;
6
- /** @type {ScaleAmount} */
7
- export const ceilMultiplyBy: ScaleAmount;
8
- /** @type {ScaleAmount} */
9
- export const multiplyBy: ScaleAmount;
10
- /** @type {ScaleAmount} */
11
- export const floorDivideBy: ScaleAmount;
12
- /** @type {ScaleAmount} */
13
- export const ceilDivideBy: ScaleAmount;
14
- /** @type {ScaleAmount} */
15
- export const divideBy: ScaleAmount;
16
- export function invertRatio(ratio: Ratio): Ratio;
17
- export function addRatios(left: Ratio, right: Ratio): Ratio;
18
- export function subtractRatios(left: Ratio, right: Ratio): Ratio;
19
- export function multiplyRatios(left: Ratio, right: Ratio): Ratio;
20
- export function oneMinus(ratio: Ratio): Ratio;
21
- export function ratioGTE(left: Ratio, right: Ratio): boolean;
22
- export function ratiosSame(left: Ratio, right: Ratio): boolean;
23
- export function quantize(ratio: Ratio, newDen: bigint): Ratio;
24
- export function parseRatio(numeric: ParsableNumber, numeratorBrand: Brand, denominatorBrand?: Brand<AssetKind> | undefined): Ratio;
25
- export function assertParsableNumber(specimen: unknown): asserts specimen is ParsableNumber;
26
- export function ratioToNumber(ratio: Ratio): number;
27
- export type ParsableNumber = bigint | number | string;
28
- //# sourceMappingURL=ratio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ratio.d.ts","sourceRoot":"","sources":["ratio.js"],"names":[],"mappings":"AAwCO,gDAcN;AASM,qCANI,MAAM,kBACN,KAAK,sFAGH,KAAK,CAgBjB;AAOM,sDAJI,MAAM,qBACN,MAAM,GACJ,KAAK,CAYjB;AAwBD,0BAA0B;AAC1B,8BADW,WAAW,CAGpB;AAEF,0BAA0B;AAC1B,6BADW,WAAW,CAGpB;AAEF,0BAA0B;AAC1B,yBADW,WAAW,CAGpB;AAwBF,0BAA0B;AAC1B,4BADW,WAAW,CAGpB;AAEF,0BAA0B;AAC1B,2BADW,WAAW,CAGpB;AAEF,0BAA0B;AAC1B,uBADW,WAAW,CAGpB;AAMK,mCAHI,KAAK,GACH,KAAK,CAWjB;AAOM,gCAJI,KAAK,SACL,KAAK,GACH,KAAK,CAwBjB;AAOM,qCAJI,KAAK,SACL,KAAK,GACH,KAAK,CAmBjB;AAOM,qCAJI,KAAK,SACL,KAAK,GACH,KAAK,CA8BjB;AAQM,gCAHI,KAAK,GACH,KAAK,CAcjB;AAOM,+BAJI,KAAK,SACL,KAAK,GACH,OAAO,CAkBnB;AASM,iCAJI,KAAK,SACL,KAAK,GACH,OAAO,CAOnB;AASM,gCAJI,KAAK,UACL,MAAM,GACJ,KAAK,CAajB;AAaM,oCALI,cAAc,kBACd,KAAK,oDAEH,KAAK,CAmBjB;AAOM,+CAHI,OAAO,sCAMjB;AAQM,qCAHI,KAAK,GACH,MAAM,CAMlB;6BAjDa,MAAM,GAAG,MAAM,GAAG,MAAM"}