@agoric/zoe 0.26.3-dev-fa844b5.0 → 0.26.3-dev-21fe8d9.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 (216) hide show
  1. package/bundles/bundle-contractFacet-js-meta.json +84 -84
  2. package/bundles/bundle-contractFacet.d.ts +7 -0
  3. package/bundles/bundle-contractFacet.d.ts.map +1 -0
  4. package/package.json +15 -15
  5. package/src/cleanProposal.d.ts +9 -0
  6. package/src/cleanProposal.d.ts.map +1 -0
  7. package/src/contractFacet/allocationMath.d.ts +7 -0
  8. package/src/contractFacet/allocationMath.d.ts.map +1 -0
  9. package/src/contractFacet/evalContractCode.d.ts +2 -0
  10. package/src/contractFacet/evalContractCode.d.ts.map +1 -0
  11. package/src/contractFacet/exit.d.ts +2 -0
  12. package/src/contractFacet/exit.d.ts.map +1 -0
  13. package/src/contractFacet/internal-types.d.ts +8 -0
  14. package/src/contractFacet/internal-types.d.ts.map +1 -0
  15. package/src/contractFacet/offerHandlerStorage.d.ts +5 -0
  16. package/src/contractFacet/offerHandlerStorage.d.ts.map +1 -0
  17. package/src/contractFacet/offerSafety.d.ts +34 -0
  18. package/src/contractFacet/offerSafety.d.ts.map +1 -0
  19. package/src/contractFacet/reallocate.d.ts +3 -0
  20. package/src/contractFacet/reallocate.d.ts.map +1 -0
  21. package/src/contractFacet/rightsConservation.d.ts +12 -0
  22. package/src/contractFacet/rightsConservation.d.ts.map +1 -0
  23. package/src/contractFacet/vatRoot.d.ts +14 -0
  24. package/src/contractFacet/vatRoot.d.ts.map +1 -0
  25. package/src/contractFacet/zcfMint.d.ts +8 -0
  26. package/src/contractFacet/zcfMint.d.ts.map +1 -0
  27. package/src/contractFacet/zcfSeat.d.ts +3 -0
  28. package/src/contractFacet/zcfSeat.d.ts.map +1 -0
  29. package/src/contractFacet/zcfZygote.d.ts +2 -0
  30. package/src/contractFacet/zcfZygote.d.ts.map +1 -0
  31. package/src/contractSupport/atomicTransfer.d.ts +6 -0
  32. package/src/contractSupport/atomicTransfer.d.ts.map +1 -0
  33. package/src/contractSupport/bondingCurves.d.ts +6 -0
  34. package/src/contractSupport/bondingCurves.d.ts.map +1 -0
  35. package/src/contractSupport/durability.d.ts +5 -0
  36. package/src/contractSupport/durability.d.ts.map +1 -0
  37. package/src/contractSupport/index.d.ts +14 -0
  38. package/src/contractSupport/index.d.ts.map +1 -0
  39. package/src/contractSupport/prepare-ownable.d.ts +11 -0
  40. package/src/contractSupport/prepare-ownable.d.ts.map +1 -0
  41. package/src/contractSupport/priceAuthority.d.ts +27 -0
  42. package/src/contractSupport/priceAuthority.d.ts.map +1 -0
  43. package/src/contractSupport/priceAuthorityInitial.d.ts +2 -0
  44. package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -0
  45. package/src/contractSupport/priceAuthorityQuoteMint.d.ts +2 -0
  46. package/src/contractSupport/priceAuthorityQuoteMint.d.ts.map +1 -0
  47. package/src/contractSupport/priceAuthorityTransform.d.ts +14 -0
  48. package/src/contractSupport/priceAuthorityTransform.d.ts.map +1 -0
  49. package/src/contractSupport/priceQuote.d.ts +7 -0
  50. package/src/contractSupport/priceQuote.d.ts.map +1 -0
  51. package/src/contractSupport/ratio.d.ts +28 -0
  52. package/src/contractSupport/ratio.d.ts.map +1 -0
  53. package/src/contractSupport/recorder.d.ts +143 -0
  54. package/src/contractSupport/recorder.d.ts.map +1 -0
  55. package/src/contractSupport/safeMath.d.ts +11 -0
  56. package/src/contractSupport/safeMath.d.ts.map +1 -0
  57. package/src/contractSupport/stateMachine.d.ts +6 -0
  58. package/src/contractSupport/stateMachine.d.ts.map +1 -0
  59. package/src/contractSupport/statistics.d.ts +7 -0
  60. package/src/contractSupport/statistics.d.ts.map +1 -0
  61. package/src/contractSupport/topics.d.ts +22 -0
  62. package/src/contractSupport/topics.d.ts.map +1 -0
  63. package/src/contractSupport/types.d.ts +63 -0
  64. package/src/contractSupport/types.d.ts.map +1 -0
  65. package/src/contractSupport/zoeHelpers.d.ts +30 -0
  66. package/src/contractSupport/zoeHelpers.d.ts.map +1 -0
  67. package/src/contracts/atomicSwap.d.ts +16 -0
  68. package/src/contracts/atomicSwap.d.ts.map +1 -0
  69. package/src/contracts/auction/assertBidSeat.d.ts +2 -0
  70. package/src/contracts/auction/assertBidSeat.d.ts.map +1 -0
  71. package/src/contracts/auction/firstPriceLogic.d.ts +2 -0
  72. package/src/contracts/auction/firstPriceLogic.d.ts.map +1 -0
  73. package/src/contracts/auction/index.d.ts +78 -0
  74. package/src/contracts/auction/index.d.ts.map +1 -0
  75. package/src/contracts/auction/secondPriceLogic.d.ts +2 -0
  76. package/src/contracts/auction/secondPriceLogic.d.ts.map +1 -0
  77. package/src/contracts/automaticRefund.d.ts +25 -0
  78. package/src/contracts/automaticRefund.d.ts.map +1 -0
  79. package/src/contracts/autoswap.d.ts +43 -0
  80. package/src/contracts/autoswap.d.ts.map +1 -0
  81. package/src/contracts/barterExchange.d.ts +22 -0
  82. package/src/contracts/barterExchange.d.ts.map +1 -0
  83. package/src/contracts/callSpread/calculateShares.d.ts +2 -0
  84. package/src/contracts/callSpread/calculateShares.d.ts.map +1 -0
  85. package/src/contracts/callSpread/fundedCallSpread.d.ts +60 -0
  86. package/src/contracts/callSpread/fundedCallSpread.d.ts.map +1 -0
  87. package/src/contracts/callSpread/payoffHandler.d.ts +11 -0
  88. package/src/contracts/callSpread/payoffHandler.d.ts.map +1 -0
  89. package/src/contracts/callSpread/percent.d.ts +3 -0
  90. package/src/contracts/callSpread/percent.d.ts.map +1 -0
  91. package/src/contracts/callSpread/position.d.ts +10 -0
  92. package/src/contracts/callSpread/position.d.ts.map +1 -0
  93. package/src/contracts/callSpread/pricedCallSpread.d.ts +66 -0
  94. package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -0
  95. package/src/contracts/callSpread/types.d.ts +30 -0
  96. package/src/contracts/callSpread/types.d.ts.map +1 -0
  97. package/src/contracts/coveredCall-durable.d.ts +21 -0
  98. package/src/contracts/coveredCall-durable.d.ts.map +1 -0
  99. package/src/contracts/coveredCall.d.ts +64 -0
  100. package/src/contracts/coveredCall.d.ts.map +1 -0
  101. package/src/contracts/exported.d.ts +2 -0
  102. package/src/contracts/exported.d.ts.map +1 -0
  103. package/src/contracts/loan/addCollateral.d.ts +3 -0
  104. package/src/contracts/loan/addCollateral.d.ts.map +1 -0
  105. package/src/contracts/loan/borrow.d.ts +3 -0
  106. package/src/contracts/loan/borrow.d.ts.map +1 -0
  107. package/src/contracts/loan/close.d.ts +3 -0
  108. package/src/contracts/loan/close.d.ts.map +1 -0
  109. package/src/contracts/loan/index.d.ts +64 -0
  110. package/src/contracts/loan/index.d.ts.map +1 -0
  111. package/src/contracts/loan/lend.d.ts +3 -0
  112. package/src/contracts/loan/lend.d.ts.map +1 -0
  113. package/src/contracts/loan/liquidate.d.ts +3 -0
  114. package/src/contracts/loan/liquidate.d.ts.map +1 -0
  115. package/src/contracts/loan/scheduleLiquidation.d.ts +3 -0
  116. package/src/contracts/loan/scheduleLiquidation.d.ts.map +1 -0
  117. package/src/contracts/loan/types.d.ts +161 -0
  118. package/src/contracts/loan/types.d.ts.map +1 -0
  119. package/src/contracts/loan/updateDebt.d.ts +11 -0
  120. package/src/contracts/loan/updateDebt.d.ts.map +1 -0
  121. package/src/contracts/mintAndSellNFT.d.ts +28 -0
  122. package/src/contracts/mintAndSellNFT.d.ts.map +1 -0
  123. package/src/contracts/mintPayments.d.ts +30 -0
  124. package/src/contracts/mintPayments.d.ts.map +1 -0
  125. package/src/contracts/oracle.d.ts +26 -0
  126. package/src/contracts/oracle.d.ts.map +1 -0
  127. package/src/contracts/otcDesk.d.ts +79 -0
  128. package/src/contracts/otcDesk.d.ts.map +1 -0
  129. package/src/contracts/priceAggregator.d.ts +107 -0
  130. package/src/contracts/priceAggregator.d.ts.map +1 -0
  131. package/src/contracts/priceAggregator.js +0 -1
  132. package/src/contracts/priceAggregatorTypes.d.ts +77 -0
  133. package/src/contracts/priceAggregatorTypes.d.ts.map +1 -0
  134. package/src/contracts/scaledPriceAuthority.d.ts +21 -0
  135. package/src/contracts/scaledPriceAuthority.d.ts.map +1 -0
  136. package/src/contracts/sellItems.d.ts +30 -0
  137. package/src/contracts/sellItems.d.ts.map +1 -0
  138. package/src/contracts/simpleExchange.d.ts +37 -0
  139. package/src/contracts/simpleExchange.d.ts.map +1 -0
  140. package/src/contracts/types.d.ts +80 -0
  141. package/src/contracts/types.d.ts.map +1 -0
  142. package/src/handleWarning.d.ts +3 -0
  143. package/src/handleWarning.d.ts.map +1 -0
  144. package/src/instanceRecordStorage.d.ts +2 -0
  145. package/src/instanceRecordStorage.d.ts.map +1 -0
  146. package/src/internal-types.d.ts +179 -0
  147. package/src/internal-types.d.ts.map +1 -0
  148. package/src/issuerRecord.d.ts +3 -0
  149. package/src/issuerRecord.d.ts.map +1 -0
  150. package/src/issuerStorage.d.ts +14 -0
  151. package/src/issuerStorage.d.ts.map +1 -0
  152. package/src/makeHandle.d.ts +4 -0
  153. package/src/makeHandle.d.ts.map +1 -0
  154. package/src/typeGuards.d.ts +169 -0
  155. package/src/typeGuards.d.ts.map +1 -0
  156. package/src/types.d.ts +46 -0
  157. package/src/types.d.ts.map +1 -0
  158. package/src/zoeService/createZCFVat.d.ts +2 -0
  159. package/src/zoeService/createZCFVat.d.ts.map +1 -0
  160. package/src/zoeService/escrowStorage.d.ts +7 -0
  161. package/src/zoeService/escrowStorage.d.ts.map +1 -0
  162. package/src/zoeService/feeMint.d.ts +23 -0
  163. package/src/zoeService/feeMint.d.ts.map +1 -0
  164. package/src/zoeService/installationStorage.d.ts +20 -0
  165. package/src/zoeService/installationStorage.d.ts.map +1 -0
  166. package/src/zoeService/instanceAdminStorage.d.ts +103 -0
  167. package/src/zoeService/instanceAdminStorage.d.ts.map +1 -0
  168. package/src/zoeService/internal-types.d.ts +90 -0
  169. package/src/zoeService/internal-types.d.ts.map +1 -0
  170. package/src/zoeService/invitationQueries.d.ts +6 -0
  171. package/src/zoeService/invitationQueries.d.ts.map +1 -0
  172. package/src/zoeService/makeInvitation.d.ts +5 -0
  173. package/src/zoeService/makeInvitation.d.ts.map +1 -0
  174. package/src/zoeService/offer/burnInvitation.d.ts +5 -0
  175. package/src/zoeService/offer/burnInvitation.d.ts.map +1 -0
  176. package/src/zoeService/offer/offer.d.ts +2 -0
  177. package/src/zoeService/offer/offer.d.ts.map +1 -0
  178. package/src/zoeService/originalZoeSeat.d.ts +34 -0
  179. package/src/zoeService/originalZoeSeat.d.ts.map +1 -0
  180. package/src/zoeService/startInstance.d.ts +4 -0
  181. package/src/zoeService/startInstance.d.ts.map +1 -0
  182. package/src/zoeService/types.d.ts +224 -0
  183. package/src/zoeService/types.d.ts.map +1 -0
  184. package/src/zoeService/utils.test-d.d.ts +2 -0
  185. package/src/zoeService/utils.test-d.d.ts.map +1 -0
  186. package/src/zoeService/zoe.d.ts +57 -0
  187. package/src/zoeService/zoe.d.ts.map +1 -0
  188. package/src/zoeService/zoe.js +0 -2
  189. package/src/zoeService/zoeSeat.d.ts +26 -0
  190. package/src/zoeService/zoeSeat.d.ts.map +1 -0
  191. package/src/zoeService/zoeStorageManager.d.ts +41 -0
  192. package/src/zoeService/zoeStorageManager.d.ts.map +1 -0
  193. package/tools/fakePriceAuthority.d.ts +30 -0
  194. package/tools/fakePriceAuthority.d.ts.map +1 -0
  195. package/tools/fakeVatAdmin.d.ts +103 -0
  196. package/tools/fakeVatAdmin.d.ts.map +1 -0
  197. package/tools/internal-types.d.ts +12 -0
  198. package/tools/internal-types.d.ts.map +1 -0
  199. package/tools/manualPriceAuthority.d.ts +21 -0
  200. package/tools/manualPriceAuthority.d.ts.map +1 -0
  201. package/tools/manualTimer.d.ts +44 -0
  202. package/tools/manualTimer.d.ts.map +1 -0
  203. package/tools/prepare-test-env-ava.d.ts +2 -0
  204. package/tools/prepare-test-env-ava.d.ts.map +1 -0
  205. package/tools/prepare-test-env.d.ts +2 -0
  206. package/tools/prepare-test-env.d.ts.map +1 -0
  207. package/tools/scriptedOracle.d.ts +27 -0
  208. package/tools/scriptedOracle.d.ts.map +1 -0
  209. package/tools/scriptedPriceAuthority.d.ts +2 -0
  210. package/tools/scriptedPriceAuthority.d.ts.map +1 -0
  211. package/tools/setup-zoe.d.ts +33 -0
  212. package/tools/setup-zoe.d.ts.map +1 -0
  213. package/tools/types-ambient.d.ts +142 -0
  214. package/tools/types-ambient.d.ts.map +1 -0
  215. package/tools/types.d.ts +142 -0
  216. package/tools/types.d.ts.map +1 -0
@@ -0,0 +1,77 @@
1
+ type OracleAdmin<R extends unknown> = {
2
+ /**
3
+ * Remove the oracle from the aggregator
4
+ */
5
+ delete: () => Promise<void>;
6
+ /**
7
+ * Rather than waiting for the polling query, push a result directly from this oracle
8
+ */
9
+ pushResult: (result: R) => Promise<void>;
10
+ };
11
+ type OracleKey = {} | string;
12
+ type PriceAggregatorKit = Pick<import("./priceAggregator").PriceAggregatorContract, 'creatorFacet' | 'publicFacet'>;
13
+ type OracleQuery = Record<string, unknown> & {
14
+ kind?: string;
15
+ increment?: bigint;
16
+ };
17
+ /**
18
+ * The public methods accessible from the contract instance
19
+ */
20
+ type OraclePublicFacet = {
21
+ /**
22
+ * Create an invitation for an oracle query
23
+ */
24
+ makeQueryInvitation: (query: OracleQuery) => ERef<Invitation<unknown, undefined>>;
25
+ /**
26
+ * Make an unpaid query
27
+ */
28
+ query: (query: OracleQuery) => unknown;
29
+ };
30
+ type OracleCreatorFacetMakeWithdrawInvitation = (total?: boolean | undefined) => ERef<Invitation<unknown, undefined>>;
31
+ /**
32
+ * The private methods accessible from the contract instance
33
+ */
34
+ type OracleCreatorFacet = {
35
+ /**
36
+ * Get the current fee amounts
37
+ */
38
+ getCurrentFees: () => AmountKeywordRecord;
39
+ /**
40
+ * Create an invitation to withdraw fees
41
+ */
42
+ makeWithdrawInvitation: OracleCreatorFacetMakeWithdrawInvitation;
43
+ /**
44
+ * Make an invitation to withdraw all fees and shutdown
45
+ */
46
+ makeShutdownInvitation: () => Promise<Invitation>;
47
+ };
48
+ type OraclePrivateParameters = {
49
+ oracleHandler: OracleHandler;
50
+ };
51
+ type OracleInitializationFacet = {
52
+ initialize: (privateParams: OraclePrivateParameters) => OracleCreatorFacet;
53
+ };
54
+ type OracleKit = {
55
+ creatorFacet: OracleCreatorFacet;
56
+ publicFacet: OraclePublicFacet;
57
+ instance: Instance;
58
+ };
59
+ type OracleReply = {
60
+ reply: unknown;
61
+ requiredFee?: globalThis.Amount | undefined;
62
+ };
63
+ type OracleHandler = {
64
+ /**
65
+ * Callback to reply to a query
66
+ */
67
+ onQuery: (query: OracleQuery, fee: Amount) => Promise<OracleReply>;
68
+ /**
69
+ * Notice an error
70
+ */
71
+ onError: (query: OracleQuery, reason: unknown) => void;
72
+ /**
73
+ * Notice a successful reply
74
+ */
75
+ onReply: (query: OracleQuery, reply: unknown, requiredFee: Amount | undefined) => void;
76
+ };
77
+ //# sourceMappingURL=priceAggregatorTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priceAggregatorTypes.d.ts","sourceRoot":"","sources":["priceAggregatorTypes.js"],"names":[],"mappings":";;;;YAGc,MAAM,QAAQ,IAAI,CAAC;;;;gBAEnB,CAAC,MAAM,EAAE,CAAC,KAAK,QAAQ,IAAI,CAAC;;iBAK7B,EAAE,GAAG,MAAM;0BAIX,KAAK,OAAO,mBAAmB,EAAE,uBAAuB,EAAE,cAAc,GAAG,aAAa,CAAC;mBAIzF,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG;IACtC,IAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAW,CAAC,EAAE,MAAM,CAAC;CAClB;;;;;;;;iCAMkB,WAAW;;;;mBAEX,WAAW;;;;;;;;;;oBAanB,MAAM,mBAAmB;;;;4BAEzB,wCAAwC;;;;4BAExC,MAAM,QAAQ,UAAU,CAAC;;;mBAMzB,aAAa;;;gBAKb,CAAC,aAAa,EAAE,uBAAuB,KAC7C,kBAAkB;;;kBAKZ,kBAAkB;iBAClB,iBAAiB;cACjB,QAAQ;;;WAKR,OAAO;;;;;;;aAMP,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,QAAQ,WAAW,CAAC;;;;aAEzD,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI;;;;aAE7C,CAAC,KAAK,EAAE,WAAW,EAChC,KAAmB,EAAE,OAAO,EAC5B,WAAyB,EAAE,MAAM,GAAG,SAAS,KACtC,IAAI"}
@@ -0,0 +1,21 @@
1
+ export function prepare(zcf: ZCF<ScaledPriceAuthorityOpts>, privateArgs: object, baggage: import('@agoric/vat-data').Baggage): Promise<{
2
+ publicFacet: import("@endo/exo").Guarded<{
3
+ getPriceAuthority: () => Promise<PriceAuthority>;
4
+ }>;
5
+ }>;
6
+ export type ScaledPriceAuthorityOpts = {
7
+ sourcePriceAuthority: ERef<PriceAuthority>;
8
+ /**
9
+ * - sourceAmountIn:targetAmountIn
10
+ */
11
+ scaleIn: Ratio;
12
+ /**
13
+ * - sourceAmountOut:targetAmountOut
14
+ */
15
+ scaleOut: Ratio;
16
+ /**
17
+ * - targetAmountIn:targetAmountOut
18
+ */
19
+ initialPrice?: Ratio | undefined;
20
+ };
21
+ //# sourceMappingURL=scaledPriceAuthority.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scaledPriceAuthority.d.ts","sourceRoot":"","sources":["scaledPriceAuthority.js"],"names":[],"mappings":"AAiCO,6BALI,IAAI,wBAAwB,CAAC,eAC7B,MAAM,WACN,OAAO,kBAAkB,EAAE,OAAO;;;;GAyD5C;;;;;;aAzEa,KAAK;;;;cACL,KAAK"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Sell items in exchange for money. Items may be fungible or
3
+ * non-fungible and multiple items may be bought at once. Money must
4
+ * be fungible.
5
+ *
6
+ * The `pricePerItem` is to be set in the terms. It is expected that all items
7
+ * are sold for the same uniform price.
8
+ *
9
+ * The initial offer should be { give: { Items: items } }, accompanied by
10
+ * terms as described above.
11
+ * Buyers use offers that match { want: { Items: items } give: { Money: m } }.
12
+ * The items provided should match particular items that the seller still has
13
+ * available to sell, and the money should be pricePerItem times the number of
14
+ * items requested.
15
+ *
16
+ * When all the items have been sold, the contract will terminate, triggering
17
+ * the creator's payout. If the creator has an onDemand exit clause, they can
18
+ * exit early to collect their winnings. The remaining items will still be
19
+ * available for sale, but the creator won't be able to collect later earnings.
20
+ *
21
+ * @param {ZCF<{pricePerItem: Amount<'nat'>}>} zcf
22
+ */
23
+ export function start(zcf: ZCF<{
24
+ pricePerItem: Amount<'nat'>;
25
+ }>): {
26
+ creatorFacet: SellItemsCreatorFacet;
27
+ creatorInvitation: Promise<Invitation<string, undefined>>;
28
+ publicFacet: SellItemsPublicFacet;
29
+ };
30
+ //# sourceMappingURL=sellItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sellItems.d.ts","sourceRoot":"","sources":["sellItems.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,2BAFW,IAAI;IAAC,YAAY,EAAE,OAAO,KAAK,CAAC,CAAA;CAAC,CAAC;;;;EAuH5C"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * SimpleExchange is an exchange with a simple matching algorithm, which allows
3
+ * an unlimited number of parties to create new orders or accept existing
4
+ * orders. The notifier allows callers to find the current list of orders.
5
+ * https://agoric.com/documentation/zoe/guide/contracts/simple-exchange.html
6
+ *
7
+ * The SimpleExchange uses Asset and Price as its keywords. The contract treats
8
+ * the two keywords symmetrically. New offers can be created and existing offers
9
+ * can be accepted in either direction.
10
+ *
11
+ * { give: { 'Asset', simoleans(5n) }, want: { 'Price', quatloos(3) } }
12
+ * { give: { 'Price', quatloos(8) }, want: { 'Asset', simoleans(3n) } }
13
+ *
14
+ * The Asset is treated as an exact amount to be exchanged, while the
15
+ * Price is a limit that may be improved on. This simple exchange does
16
+ * not partially fill orders.
17
+ *
18
+ * The publicFacet is returned from the contract.
19
+ *
20
+ * @param {ZCF} zcf
21
+ */
22
+ export function start(zcf: ZCF): {
23
+ publicFacet: {
24
+ makeInvitation: () => Promise<Invitation<unknown, never>>;
25
+ getNotifier: () => Notifier<{
26
+ buys: any;
27
+ sells: any;
28
+ }>;
29
+ } & import("@endo/eventual-send").RemotableBrand<{}, {
30
+ makeInvitation: () => Promise<Invitation<unknown, never>>;
31
+ getNotifier: () => Notifier<{
32
+ buys: any;
33
+ sells: any;
34
+ }>;
35
+ }>;
36
+ };
37
+ //# sourceMappingURL=simpleExchange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simpleExchange.d.ts","sourceRoot":"","sources":["simpleExchange.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BAFW,GAAG;;;;;;;;;;;;;;EAgHb"}
@@ -0,0 +1,80 @@
1
+ type SellItemsPublicFacet = {
2
+ getItemsIssuer: () => Issuer;
3
+ getAvailableItems: () => Amount;
4
+ };
5
+ type SellItemsCreatorOnly = {
6
+ makeBuyerInvitation: () => Promise<Invitation>;
7
+ };
8
+ type SellItemsCreatorFacet = SellItemsPublicFacet & SellItemsCreatorOnly;
9
+ type SellItemsParameters = {
10
+ customValueProperties: Record<string, any>;
11
+ count: number;
12
+ moneyIssuer: Issuer;
13
+ sellItemsInstallation: Installation;
14
+ pricePerItem: Amount;
15
+ };
16
+ type SellItemsResult = {
17
+ sellItemsCreatorSeat: UserSeat;
18
+ sellItemsCreatorFacet: SellItemsCreatorFacet;
19
+ sellItemsInstance: Instance;
20
+ sellItemsPublicFacet: SellItemsPublicFacet;
21
+ };
22
+ type MintAndSellNFTCreatorFacet = {
23
+ sellTokens: (sellParams: SellItemsParameters) => Promise<SellItemsResult>;
24
+ getIssuer: () => Issuer;
25
+ };
26
+ type AutomaticRefundPublicFacet = {
27
+ getOffersCount: () => bigint;
28
+ makeInvitation: () => Promise<Invitation>;
29
+ };
30
+ 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
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";oBAEc,MAAM,MAAM;uBACZ,MAAM,MAAM;;;yBAGZ,MAAM,QAAQ,UAAU,CAAC;;6BAE1B,oBAAoB,GAAG,oBAAoB;;2BAK1C,OAAO,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,QAAQ,eAAe,CAAC;eAC7D,MAAM,MAAM;;;oBAKZ,MAAM,MAAM;oBACZ,MAAM,QAAQ,UAAU,CAAC;;;;;;;wBAKzB,MAAM,QAAQ,UAAU,CAAC;;;;;;0BAEzB,MAAM,QAAQ,UAAU,CAAC;;;;;;2BAGzB,MAAM,QAAQ,UAAU,CAAC;;;;;gCAGzB,MAAM,QAAQ,UAAU,CAAC;;;;;mCAEzB,MAAM,QAAQ,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,OAAO,MAAM,EAAE,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ export function handlePWarning(promise: Promise<any>): void;
2
+ export function handlePKitWarning(promiseKit: PromiseRecord<any>): void;
3
+ //# sourceMappingURL=handleWarning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleWarning.d.ts","sourceRoot":"","sources":["handleWarning.js"],"names":[],"mappings":"AASO,wCAHI,QAAQ,GAAG,CAAC,GACV,IAAI,CAIhB;AASM,mEAFM,IAAI,CAIhB"}
@@ -0,0 +1,2 @@
1
+ export function makeInstanceRecordStorage(baggage: import('@agoric/vat-data').Baggage): (ir: InstanceRecord) => InstanceState;
2
+ //# sourceMappingURL=instanceRecordStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"AA8BO,mDAHI,OAAO,kBAAkB,EAAE,OAAO,GAChC,CAAC,EAAE,EAAE,cAAc,KAAK,aAAa,CAqFjD"}
@@ -0,0 +1,179 @@
1
+ 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
+ type WithdrawPayments = (allocation: Allocation) => PaymentPKeywordRecord;
11
+ type WithdrawFacet = {
12
+ withdrawPayments: (allocation: Allocation) => PaymentPKeywordRecord;
13
+ };
14
+ type InstanceAdminHelper = {
15
+ exitZoeSeatAdmin: (zoeSeatAdmin: ZoeSeatAdmin) => void;
16
+ hasExited: (zoeSeatAdmin: ZoeSeatAdmin) => boolean;
17
+ };
18
+ type ZoeSeatAdminKit = {
19
+ userSeat: UserSeat;
20
+ zoeSeatAdmin: ZoeSeatAdmin;
21
+ };
22
+ /**
23
+ * Make the Zoe seat admin, user seat and a notifier
24
+ */
25
+ type MakeZoeSeatAdminKit = (initialAllocation: Allocation, instanceAdminHelper: InstanceAdminHelper, proposal: ProposalRecord, withdrawFacet: WithdrawFacet, exitObj: ERef<ExitObj>, offerResult?: unknown, baggage: import('@agoric/vat-data').Baggage) => ZoeSeatAdminKit;
26
+ type ZoeSeatAdminExit = (completion?: Completion) => void;
27
+ type ZoeSeatAdmin = {
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: import('@agoric/swingset-vat').ShutdownWithFailure;
35
+ getExitSubscriber: () => Subscriber<AmountKeywordRecord>;
36
+ };
37
+ type HandleOfferResult = {
38
+ offerResultPromise: Promise<unknown>;
39
+ exitObj: ExitObj;
40
+ };
41
+ /**
42
+ * The seatHandle may be created in either the Zoe or ZCF vat,
43
+ * depending on whether the seat comes from a normal offer or a
44
+ * request by the contract for an "empty" seat.
45
+ */
46
+ type InstanceAdmin = {
47
+ assertAcceptingOffers: () => void;
48
+ makeUserSeat: (invitationHandle: InvitationHandle, initialAllocation: Allocation, proposal: ProposalRecord, offerArgs?: object) => UserSeat;
49
+ makeNoEscrowSeat: MakeNoEscrowSeat;
50
+ getInstance: () => Instance;
51
+ getPublicFacet: () => object;
52
+ getIssuers: () => IssuerKeywordRecord;
53
+ getBrands: () => BrandKeywordRecord;
54
+ getTerms: () => object;
55
+ getOfferFilter: () => string[];
56
+ getInstallation: () => Installation;
57
+ exitAllSeats: (completion: Completion) => void;
58
+ failAllSeats: import('@agoric/swingset-vat').ShutdownWithFailure;
59
+ stopAcceptingOffers: () => void;
60
+ isBlocked: (string: string) => boolean;
61
+ initDelayedState: (handleOfferObj: HandleOfferObj, publicFacet: unknown) => void;
62
+ setOfferFilter: (strings: string[]) => void;
63
+ };
64
+ /**
65
+ * The seatHandle may be created in either the Zoe or ZCF vat,
66
+ * depending on whether the seat comes from a normal offer or a
67
+ * request by the contract for an "empty" seat.
68
+ */
69
+ type HandleOfferObj = {
70
+ handleOffer: (invitationHandle: InvitationHandle, seatData: SeatData) => HandleOfferResult;
71
+ };
72
+ type ZoeInstanceAdminMakeInvitation = (invitationHandle: InvitationHandle, description: string, customDetails?: Record<string, any> | undefined, proposalShape?: Pattern) => Invitation;
73
+ type ZoeInstanceAdmin = {
74
+ makeInvitation: ZoeInstanceAdminMakeInvitation;
75
+ saveIssuer: (issuerP: ERef<globalThis.Issuer>, keyword: Keyword) => Promise<IssuerRecord>;
76
+ makeZoeMint: MakeZoeMint;
77
+ registerFeeMint: RegisterFeeMint;
78
+ makeNoEscrowSeat: MakeNoEscrowSeat;
79
+ replaceAllocations: ReplaceAllocations;
80
+ exitAllSeats: (completion: Completion) => void;
81
+ failAllSeats: import('@agoric/swingset-vat').ShutdownWithFailure;
82
+ exitSeat: (seatHandle: SeatHandle, completion: Completion) => void;
83
+ failSeat: (seatHandle: SeatHandle, reason: Error) => void;
84
+ stopAcceptingOffers: () => void;
85
+ setOfferFilter: (strings: Array<string>) => void;
86
+ getOfferFilter: () => Array<string>;
87
+ getExitSubscriber: (seatHandle: SeatHandle) => Subscriber<AmountKeywordRecord>;
88
+ repairContractCompletionWatcher: () => void;
89
+ };
90
+ type RegisterFeeMint = (keyword: Keyword, allegedFeeMintAccess: FeeMintAccess) => ZoeMint<'nat'>;
91
+ type WrapIssuerKitWithZoeMint = (keyword: Keyword, localIssuerKit: IssuerKit) => any;
92
+ type MakeZoeMint = (keyword: Keyword, assetKind?: globalThis.AssetKind | undefined, displayInfo?: globalThis.AdditionalDisplayInfo | undefined, options?: Partial<{
93
+ elementShape: any;
94
+ recoverySetsOption: import("@agoric/ertp/exported").RecoverySetsOption;
95
+ }> | undefined) => ZoeMint;
96
+ type MakeNoEscrowSeat = (initialAllocation: Allocation, proposal: ProposalRecord, exitObj: ExitObj, seatHandle: SeatHandle) => UserSeat;
97
+ type ReplaceAllocations = (seatHandleAllocations: SeatHandleAllocation[]) => any;
98
+ type SeatHandleAllocation = {
99
+ seatHandle: SeatHandle;
100
+ allocation: Allocation;
101
+ };
102
+ type ZoeMint<K extends globalThis.AssetKind = globalThis.AssetKind> = {
103
+ getIssuerRecord: () => IssuerRecord<K>;
104
+ mintAndEscrow: (totalToMint: Amount<K>) => void;
105
+ /**
106
+ * Note that the burning is asynchronous, and so may not have happened by
107
+ * the time withdrawAndBurn returns. We rely on our other bookkeeping so that
108
+ * these assets are assumed burned elsewhere, so no one will try to access
109
+ * them even before they are actually burned.
110
+ */
111
+ withdrawAndBurn: (totalToBurn: Amount<K>) => void;
112
+ };
113
+ type ZCFRoot = {
114
+ startZcf: StartZcf;
115
+ restartContract: RestartContract;
116
+ };
117
+ type ExecuteContractResult = {
118
+ creatorFacet: object;
119
+ creatorInvitation?: Promise<Invitation<unknown, undefined>> | undefined;
120
+ publicFacet: object;
121
+ handleOfferObj: HandleOfferObj;
122
+ };
123
+ type StartZcf = (zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, instanceRecordFromZoe: InstanceRecord, issuerStorageFromZoe: IssuerRecords, privateArgs?: object) => Promise<ExecuteContractResult>;
124
+ type RestartContract = (privateArgs?: object) => Promise<ExecuteUpgradeableContractResult>;
125
+ type MakeExitObj = (proposal: ProposalRecord, zoeSeatAdmin: ZCFSeat) => ExitObj;
126
+ type ExitObj = {
127
+ exit: () => void;
128
+ };
129
+ type SeatHandle = Handle<'Seat'>;
130
+ /**
131
+ * Get the assetKind for a brand known by Zoe
132
+ *
133
+ * To be deleted when brands have a property for assetKind
134
+ */
135
+ type GetAssetKindByBrand = (brand: Brand) => AssetKind;
136
+ type IssuerRecords = Array<IssuerRecord>;
137
+ type MakeZCFSeat = (seatData: SeatData) => ZCFSeat;
138
+ /**
139
+ * Drops all of the references in the seat-related weakStores by
140
+ * dropping the stores
141
+ */
142
+ type DropAllReferences = () => void;
143
+ type ZcfSeatManager = {
144
+ makeZCFSeat: MakeZCFSeat;
145
+ reallocate: Reallocate;
146
+ dropAllReferences: DropAllReferences;
147
+ };
148
+ type ZcfMintReallocator = {
149
+ reallocate: (zcfSeat: ZCFSeat, newAllocation: Allocation) => void;
150
+ };
151
+ /**
152
+ * The SeatManager holds the active zcfSeats and can reallocate and
153
+ * make new zcfSeats.
154
+ */
155
+ type CreateSeatManager = (zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, getAssetKindByBrand: GetAssetKindByBrand, shutdownWithFailure: import('@agoric/swingset-vat').ShutdownWithFailure, zcfBaggage: import('@agoric/vat-data').Baggage) => {
156
+ seatManager: ZcfSeatManager;
157
+ zcfMintReallocator: ZcfMintReallocator;
158
+ };
159
+ /**
160
+ * Add an issuer and its keyword to the instanceRecord for the
161
+ * contract instance
162
+ */
163
+ type InstanceStateAddIssuer = (keyword: Keyword, issuerRecord: IssuerRecord) => void;
164
+ type InstanceStateGetTerms = () => AnyTerms;
165
+ type InstanceStateGetInstallation = () => Installation;
166
+ type InstanceRecordGetIssuers = () => IssuerKeywordRecord;
167
+ type InstanceRecordGetBrands = () => BrandKeywordRecord;
168
+ type InstanceState = {
169
+ addIssuer: InstanceStateAddIssuer;
170
+ getInstanceRecord: GetInstanceRecord;
171
+ getTerms: InstanceStateGetTerms;
172
+ getInstallation: InstanceStateGetInstallation;
173
+ getIssuers: InstanceRecordGetIssuers;
174
+ getBrands: InstanceRecordGetBrands;
175
+ assertUniqueKeyword: (keyword: Keyword) => void;
176
+ };
177
+ type GetInstanceRecord = () => InstanceRecord;
178
+ type IssuerStorageGetIssuerRecords = (issuers: Issuer[]) => IssuerRecords;
179
+ //# 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,3 @@
1
+ export function makeIssuerRecord<K extends globalThis.AssetKind>(brand: globalThis.Brand<K>, issuer: globalThis.Issuer<K>, displayInfo: globalThis.DisplayInfo<K>): IssuerRecord<K>;
2
+ export function assertFullIssuerRecord(issuerRecord: IssuerRecord): asserts issuerRecord is Required<IssuerRecord<globalThis.AssetKind>>;
3
+ //# sourceMappingURL=issuerRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issuerRecord.d.ts","sourceRoot":"","sources":["issuerRecord.js"],"names":[],"mappings":"AAaO,oLAMH;AAMG,qDAHI,YAAY,wEAOtB"}
@@ -0,0 +1,14 @@
1
+ export function provideIssuerStorage(zcfBaggage: import('@agoric/vat-data').Baggage): {
2
+ storeIssuerKeywordRecord: (uncleanIssuerKeywordRecord: IssuerKeywordRecord) => Promise<{
3
+ issuers: IssuerKeywordRecord;
4
+ brands: BrandKeywordRecord;
5
+ }>;
6
+ storeIssuer: (issuerP: ERef<globalThis.Issuer>) => Promise<IssuerRecord>;
7
+ storeIssuerRecord: (issuerRecord: IssuerRecord) => IssuerRecord;
8
+ getAssetKindByBrand: GetAssetKindByBrand;
9
+ getBrandForIssuer: <K extends globalThis.AssetKind>(issuer: globalThis.Issuer<K>) => globalThis.Brand<K>;
10
+ getIssuerForBrand: <K_1 extends globalThis.AssetKind>(brand: globalThis.Brand<K_1>) => globalThis.Issuer<K_1>;
11
+ getIssuerRecords: IssuerStorageGetIssuerRecords;
12
+ instantiate: (issuerRecords?: any[]) => void;
13
+ };
14
+ //# sourceMappingURL=issuerStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"AAgBO,iDAFI,OAAO,kBAAkB,EAAE,OAAO;2DAwHhC,mBAAmB,KACjB,QAAQ;QAAE,OAAO,EAAE,mBAAmB,CAAC;QACnD,MAA4B,EAAE,kBAAkB,CAAA;KAAE,CAAC;uDAlDvC,QAAQ,YAAY,CAAC;sCAzBvB,YAAY,KACV,YAAY;;;;;;EAsI1B"}
@@ -0,0 +1,4 @@
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
+ //# sourceMappingURL=makeHandle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"makeHandle.d.ts","sourceRoot":"","sources":["makeHandle.js"],"names":[],"mappings":"AAkBO,qHAFmC,QAAQ,mBAajD;AAUM,yGAKN;6BAlC0B,kBAAkB"}