@agoric/zoe 0.26.3-upgrade-18a-dev-4ee0508.0 → 0.26.3-upgrade-20-dev-086463b.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 (191) hide show
  1. package/bundles/bundle-contractFacet-js-meta.json +288 -288
  2. package/bundles/bundle-contractFacet.js +1 -1
  3. package/package.json +30 -30
  4. package/src/cleanProposal.d.ts +2 -0
  5. package/src/cleanProposal.d.ts.map +1 -1
  6. package/src/cleanProposal.js +4 -2
  7. package/src/contractFacet/exit.d.ts +1 -1
  8. package/src/contractFacet/exit.d.ts.map +1 -1
  9. package/src/contractFacet/offerHandlerStorage.d.ts +1 -1
  10. package/src/contractFacet/offerHandlerStorage.d.ts.map +1 -1
  11. package/src/contractFacet/offerHandlerStorage.js +5 -0
  12. package/src/contractFacet/reallocate.d.ts.map +1 -1
  13. package/src/contractFacet/reallocate.js +4 -0
  14. package/src/contractFacet/rightsConservation.d.ts.map +1 -1
  15. package/src/contractFacet/rightsConservation.js +0 -1
  16. package/src/contractFacet/types.d.ts +184 -0
  17. package/src/contractFacet/types.d.ts.map +1 -0
  18. package/src/contractFacet/{types-ambient.d.ts → types.ts} +66 -91
  19. package/src/contractFacet/vatRoot.d.ts +8 -2
  20. package/src/contractFacet/vatRoot.d.ts.map +1 -1
  21. package/src/contractFacet/vatRoot.js +5 -4
  22. package/src/contractFacet/zcfMint.d.ts +4 -3
  23. package/src/contractFacet/zcfMint.d.ts.map +1 -1
  24. package/src/contractFacet/zcfMint.js +9 -21
  25. package/src/contractFacet/zcfSeat.d.ts.map +1 -1
  26. package/src/contractFacet/zcfSeat.js +12 -188
  27. package/src/contractFacet/zcfZygote.d.ts +9 -1
  28. package/src/contractFacet/zcfZygote.d.ts.map +1 -1
  29. package/src/contractFacet/zcfZygote.js +27 -9
  30. package/src/contractSupport/atomicTransfer.d.ts +6 -0
  31. package/src/contractSupport/atomicTransfer.d.ts.map +1 -1
  32. package/src/contractSupport/atomicTransfer.js +4 -0
  33. package/src/contractSupport/bondingCurves.js +1 -1
  34. package/src/contractSupport/durability.d.ts +1 -0
  35. package/src/contractSupport/durability.d.ts.map +1 -1
  36. package/src/contractSupport/durability.js +4 -0
  37. package/src/contractSupport/index.d.ts +2 -2
  38. package/src/contractSupport/index.js +2 -19
  39. package/src/contractSupport/priceAuthorityInitial.d.ts +2 -0
  40. package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
  41. package/src/contractSupport/priceAuthorityInitial.js +3 -1
  42. package/src/contractSupport/priceQuote.d.ts +1 -0
  43. package/src/contractSupport/priceQuote.d.ts.map +1 -1
  44. package/src/contractSupport/priceQuote.js +6 -1
  45. package/src/contractSupport/recorder.d.ts +8 -24
  46. package/src/contractSupport/recorder.d.ts.map +1 -1
  47. package/src/contractSupport/recorder.js +6 -0
  48. package/src/contractSupport/types-ambient.d.ts.map +1 -1
  49. package/src/contractSupport/types-ambient.js +1 -0
  50. package/src/contractSupport/zoeHelpers.d.ts +11 -2
  51. package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
  52. package/src/contractSupport/zoeHelpers.js +7 -2
  53. package/src/contracts/atomicSwap.d.ts +1 -1
  54. package/src/contracts/auction/index.d.ts +3 -3
  55. package/src/contracts/automaticRefund.d.ts +3 -3
  56. package/src/contracts/autoswap.d.ts +4 -0
  57. package/src/contracts/autoswap.d.ts.map +1 -1
  58. package/src/contracts/autoswap.js +4 -0
  59. package/src/contracts/barterExchange.d.ts +2 -2
  60. package/src/contracts/callSpread/fundedCallSpread.d.ts +1 -1
  61. package/src/contracts/callSpread/pricedCallSpread.d.ts +4 -4
  62. package/src/contracts/coveredCall-durable.d.ts +1 -1
  63. package/src/contracts/coveredCall.d.ts +1 -1
  64. package/src/contracts/coveredCall.d.ts.map +1 -1
  65. package/src/contracts/coveredCall.js +1 -6
  66. package/src/contracts/loan/index.d.ts +1 -1
  67. package/src/contracts/loan/types-ambient.d.ts +13 -13
  68. package/src/contracts/loan/types-ambient.d.ts.map +1 -1
  69. package/src/contracts/loan/types-ambient.js +17 -17
  70. package/src/contracts/mintPayments.d.ts +2 -2
  71. package/src/contracts/oracle.d.ts +3 -0
  72. package/src/contracts/oracle.d.ts.map +1 -1
  73. package/src/contracts/oracle.js +1 -0
  74. package/src/contracts/priceAggregator.d.ts +2 -0
  75. package/src/contracts/priceAggregator.d.ts.map +1 -1
  76. package/src/contracts/priceAggregator.js +14 -11
  77. package/src/contracts/scaledPriceAuthority.d.ts +1 -0
  78. package/src/contracts/scaledPriceAuthority.d.ts.map +1 -1
  79. package/src/contracts/scaledPriceAuthority.js +1 -0
  80. package/src/contracts/sellItems.d.ts +1 -1
  81. package/src/contracts/simpleExchange.d.ts +5 -0
  82. package/src/contracts/simpleExchange.d.ts.map +1 -1
  83. package/src/contracts/simpleExchange.js +4 -0
  84. package/src/contracts/types-ambient.d.ts +7 -7
  85. package/src/contracts/types-ambient.d.ts.map +1 -1
  86. package/src/contracts/types-ambient.js +7 -7
  87. package/src/contracts/valueVow.contract.d.ts +5 -2
  88. package/src/contracts/valueVow.contract.d.ts.map +1 -1
  89. package/src/contracts/valueVow.contract.js +1 -0
  90. package/src/instanceRecordStorage.d.ts.map +1 -1
  91. package/src/instanceRecordStorage.js +3 -1
  92. package/src/internal-types.d.ts +15 -6
  93. package/src/internal-types.d.ts.map +1 -1
  94. package/src/internal-types.js +9 -5
  95. package/src/issuerRecord.d.ts +3 -2
  96. package/src/issuerRecord.d.ts.map +1 -1
  97. package/src/issuerRecord.js +6 -2
  98. package/src/issuerStorage.d.ts +3 -2
  99. package/src/issuerStorage.d.ts.map +1 -1
  100. package/src/issuerStorage.js +10 -5
  101. package/src/typeGuards.d.ts +10 -5
  102. package/src/typeGuards.d.ts.map +1 -1
  103. package/src/typeGuards.js +9 -6
  104. package/src/types-ambient.d.ts +0 -40
  105. package/src/types-ambient.d.ts.map +1 -1
  106. package/src/types-ambient.js +4 -42
  107. package/src/types-index.d.ts +4 -0
  108. package/src/types-index.js +2 -0
  109. package/src/types.d.ts +29 -0
  110. package/src/types.d.ts.map +1 -0
  111. package/src/types.ts +44 -0
  112. package/src/zoeService/escrowStorage.d.ts.map +1 -1
  113. package/src/zoeService/escrowStorage.js +4 -0
  114. package/src/zoeService/feeMint.d.ts +1 -0
  115. package/src/zoeService/feeMint.d.ts.map +1 -1
  116. package/src/zoeService/feeMint.js +4 -0
  117. package/src/zoeService/installationStorage.d.ts +4 -5
  118. package/src/zoeService/installationStorage.d.ts.map +1 -1
  119. package/src/zoeService/installationStorage.js +8 -8
  120. package/src/zoeService/instanceAdminStorage.d.ts +1 -0
  121. package/src/zoeService/instanceAdminStorage.d.ts.map +1 -1
  122. package/src/zoeService/instanceAdminStorage.js +4 -0
  123. package/src/zoeService/internal-types.d.ts +12 -5
  124. package/src/zoeService/internal-types.d.ts.map +1 -1
  125. package/src/zoeService/internal-types.js +10 -10
  126. package/src/zoeService/invitationQueries.d.ts +3 -3
  127. package/src/zoeService/invitationQueries.js +3 -3
  128. package/src/zoeService/makeInvitation.d.ts +1 -0
  129. package/src/zoeService/makeInvitation.d.ts.map +1 -1
  130. package/src/zoeService/makeInvitation.js +3 -1
  131. package/src/zoeService/offer/burnInvitation.d.ts +1 -1
  132. package/src/zoeService/offer/burnInvitation.d.ts.map +1 -1
  133. package/src/zoeService/offer/burnInvitation.js +3 -2
  134. package/src/zoeService/offer/offer.d.ts +1 -0
  135. package/src/zoeService/offer/offer.d.ts.map +1 -1
  136. package/src/zoeService/offer/offer.js +3 -1
  137. package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
  138. package/src/zoeService/originalZoeSeat.js +6 -4
  139. package/src/zoeService/startInstance.d.ts +1 -1
  140. package/src/zoeService/startInstance.d.ts.map +1 -1
  141. package/src/zoeService/startInstance.js +5 -4
  142. package/src/zoeService/types-ambient.d.ts +0 -220
  143. package/src/zoeService/types-ambient.d.ts.map +1 -1
  144. package/src/zoeService/types-ambient.js +4 -323
  145. package/src/zoeService/types.d.ts +238 -0
  146. package/src/zoeService/types.d.ts.map +1 -0
  147. package/src/zoeService/types.ts +307 -0
  148. package/src/zoeService/utils.d.ts +18 -10
  149. package/src/zoeService/utils.test-d.ts +1 -0
  150. package/src/zoeService/zoe.d.ts +11 -1
  151. package/src/zoeService/zoe.d.ts.map +1 -1
  152. package/src/zoeService/zoe.js +8 -1
  153. package/src/zoeService/zoeSeat.d.ts +1 -4
  154. package/src/zoeService/zoeSeat.d.ts.map +1 -1
  155. package/src/zoeService/zoeSeat.js +6 -4
  156. package/src/zoeService/zoeStorageManager.d.ts +5 -5
  157. package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
  158. package/src/zoeService/zoeStorageManager.js +4 -3
  159. package/tools/fakePriceAuthority.d.ts +3 -2
  160. package/tools/fakePriceAuthority.d.ts.map +1 -1
  161. package/tools/fakePriceAuthority.js +9 -6
  162. package/tools/fakeVatAdmin.d.ts +10 -4
  163. package/tools/fakeVatAdmin.d.ts.map +1 -1
  164. package/tools/fakeVatAdmin.js +21 -10
  165. package/tools/manualPriceAuthority.d.ts +6 -2
  166. package/tools/manualPriceAuthority.d.ts.map +1 -1
  167. package/tools/manualPriceAuthority.js +8 -6
  168. package/tools/scriptedOracle.d.ts +7 -3
  169. package/tools/scriptedOracle.d.ts.map +1 -1
  170. package/tools/scriptedOracle.js +4 -0
  171. package/tools/scriptedPriceAuthority.d.ts.map +1 -1
  172. package/tools/scriptedPriceAuthority.js +6 -5
  173. package/tools/setup-zoe.d.ts +12 -6
  174. package/tools/setup-zoe.d.ts.map +1 -1
  175. package/tools/setup-zoe.js +38 -5
  176. package/tools/test-utils.d.ts +10 -6
  177. package/tools/test-utils.d.ts.map +1 -1
  178. package/tools/test-utils.js +6 -2
  179. package/tools/types.d.ts +5 -0
  180. package/tools/types.d.ts.map +1 -1
  181. package/tools/types.js +5 -0
  182. package/src/contractFacet/internal-types.d.ts +0 -8
  183. package/src/contractFacet/internal-types.d.ts.map +0 -1
  184. package/src/contractFacet/internal-types.js +0 -15
  185. package/src/contractFacet/types-ambient.js +0 -1
  186. package/src/contractSupport/ratio.d.ts +0 -37
  187. package/src/contractSupport/ratio.d.ts.map +0 -1
  188. package/src/contractSupport/ratio.js +0 -419
  189. package/src/contractSupport/safeMath.d.ts +0 -11
  190. package/src/contractSupport/safeMath.d.ts.map +0 -1
  191. package/src/contractSupport/safeMath.js +0 -49
@@ -1,6 +1,7 @@
1
1
  export type OracleContract = ContractOf<typeof start>;
2
2
  export type OracleStart = typeof start;
3
3
  /**
4
+ * @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
4
5
  * @import {ContractOf} from '../zoeService/utils.js';
5
6
  */
6
7
  /**
@@ -27,4 +28,6 @@ export function start(zcf: ZCF): Promise<{
27
28
  }>;
28
29
  }>;
29
30
  import type { ContractOf } from '../zoeService/utils.js';
31
+ import type { ZCF } from '@agoric/zoe';
32
+ import type { Invitation } from '@agoric/zoe';
30
33
  //# sourceMappingURL=oracle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["oracle.js"],"names":[],"mappings":"6BA4Gc,WAAW,OAAO,KAAK,CAAC;0BACxB,OAAO,KAAK;AAtG1B;;GAEG;AAEH;;;;GAIG;AACH,2BAFW,GAAG;;;;;;;QAkDV,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;QAhBvB,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;GAwB1B;gCAhG4B,wBAAwB"}
1
+ {"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["oracle.js"],"names":[],"mappings":"6BA6Gc,WAAW,OAAO,KAAK,CAAC;0BACxB,OAAO,KAAK;AAvG1B;;;GAGG;AAEH;;;;GAIG;AACH,2BAFW,GAAG;;;;;;;QAkDV,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;QAhBvB,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;GAwB1B;gCAhG4B,wBAAwB;yBADkB,aAAa;gCAAb,aAAa"}
@@ -6,6 +6,7 @@ import { E } from '@endo/eventual-send';
6
6
  import { atomicTransfer } from '../contractSupport/index.js';
7
7
 
8
8
  /**
9
+ * @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
9
10
  * @import {ContractOf} from '../zoeService/utils.js';
10
11
  */
11
12
 
@@ -105,5 +105,7 @@ export function start(zcf: ZCF<{
105
105
  }>;
106
106
  }>;
107
107
  import type { ContractOf } from '../zoeService/utils.js';
108
+ import type { ZCF } from '@agoric/zoe';
108
109
  import type { PriceDescription } from '@agoric/zoe/tools/types.js';
110
+ import type { Invitation } from '@agoric/zoe';
109
111
  //# sourceMappingURL=priceAggregator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"priceAggregator.d.ts","sourceRoot":"","sources":["priceAggregator.js"],"names":[],"mappings":"6BAoCc,MAAM,GAAG,MAAM,GAAG,MAAM;oCAEzB,QAAQ,CAAC,cAAc,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;oBAGlD,cAAc,GAAG,KAAK;sCAklBtB,WAAW,OAAO,KAAK,CAAC;AA7kBtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,2BAbW,GAAG,CAAC;IACZ,KAAK,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC3B,CAAC,eACM;IACR,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAChD,WAAW,EAAE,IAAI,CAAC,WAAW,CAA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AK,CAAC,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC3B,CAAC,eACM;IACR,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAChD,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;CAC9B;;QA+WA;;;;;;;;;WASG;2CADQ,QAAQ,GAAG,MAAM;mBAaG,WAAW,CAAC,KAAK,CAAC;8BAAoB;gBAAC,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,WAAW,IAAI,CAAC,CAAC,CAAA;aAAC;;;;;QA0CtI,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;sCAHQ,QAAQ,GAAG,MAAM,UACjB,WAAW,KACT,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;QA/ExC;;;;;;;;;WASG;2CADQ,QAAQ,GAAG,MAAM;mBAaG,WAAW,CAAC,KAAK,CAAC;8BAAoB;gBAAC,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,WAAW,IAAI,CAAC,CAAC,CAAA;aAAC;;;;;QA0CtI,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;sCAHQ,QAAQ,GAAG,MAAM,UACjB,WAAW,KACT,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;;;;QAqHxC,sBAAsB;;;;;QAAtB,sBAAsB;;;GAOzB;gCA3lB4B,wBAAwB;yBAEV,aAAa;sCADqB,4BAA4B;gCAC9D,aAAa"}
@@ -1,6 +1,6 @@
1
- import { Fail, q } from '@endo/errors';
2
- import { AmountMath, AssetKind, makeIssuerKit } from '@agoric/ertp';
1
+ import { AmountMath } from '@agoric/ertp';
3
2
  import { assertAllDefined } from '@agoric/internal';
3
+ import { notForProductionUse } from '@agoric/internal/src/magic-cookie-test-only.js';
4
4
  import {
5
5
  makeNotifierKit,
6
6
  makeStoredPublishKit,
@@ -8,32 +8,33 @@ import {
8
8
  } from '@agoric/notifier';
9
9
  import { makeLegacyMap } from '@agoric/store';
10
10
  import { TimeMath } from '@agoric/time';
11
+ import { Fail, q } from '@endo/errors';
11
12
  import { E } from '@endo/eventual-send';
12
13
  import { Far } from '@endo/marshal';
13
- import { notForProductionUse } from '@agoric/internal/src/magic-cookie-test-only.js';
14
14
 
15
- import {
16
- calculateMedian,
17
- makeOnewayPriceAuthorityKit,
18
- } from '../contractSupport/index.js';
19
15
  import {
20
16
  addRatios,
21
17
  assertParsableNumber,
18
+ calculateMedian,
22
19
  ceilDivideBy,
23
20
  floorMultiplyBy,
21
+ makeOnewayPriceAuthorityKit,
22
+ makePriceQuoteIssuer,
24
23
  makeRatio,
25
24
  makeRatioFromAmounts,
26
25
  multiplyRatios,
27
26
  parseRatio,
28
27
  ratioGTE,
29
28
  ratiosSame,
30
- } from '../contractSupport/ratio.js';
29
+ } from '../contractSupport/index.js';
31
30
 
32
31
  /**
33
32
  * @import {LegacyMap} from '@agoric/store'
34
33
  * @import {ContractOf} from '../zoeService/utils.js';
35
34
  * @import {PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
35
+ * @import {Invitation, ZCF, ZCFSeat} from '@agoric/zoe';
36
36
  */
37
+
37
38
  /** @typedef {bigint | number | string} ParsableNumber */
38
39
  /**
39
40
  * @typedef {Readonly<ParsableNumber | { data: ParsableNumber }>} OraclePriceSubmission
@@ -82,7 +83,7 @@ const start = async (zcf, privateArgs) => {
82
83
  const quoteMint =
83
84
  privateArgs.quoteMint ||
84
85
  // makeIssuerKit fails upgrade, this contract is for demo only
85
- makeIssuerKit('quote', AssetKind.SET).mint;
86
+ makePriceQuoteIssuer().mint;
86
87
  const quoteIssuerRecord = await zcf.saveIssuer(
87
88
  E(quoteMint).getIssuer(),
88
89
  'Quote',
@@ -587,8 +588,10 @@ const start = async (zcf, privateArgs) => {
587
588
 
588
589
  // Obtain the oracle's publicFacet.
589
590
  assert(oracleInstance);
590
- /** @type {import('./oracle.js').OracleContract['publicFacet']} */
591
- const oracle = await E(zoe).getPublicFacet(oracleInstance);
591
+ const oracle =
592
+ /** @type {import('./oracle.js').OracleContract['publicFacet']} */ (
593
+ await E(zoe).getPublicFacet(oracleInstance)
594
+ );
592
595
  assert(records.has(record), 'Oracle record is already deleted');
593
596
 
594
597
  /** @type {import('@agoric/time').Timestamp} */
@@ -18,5 +18,6 @@ export type ScaledPriceAuthorityOpts = {
18
18
  */
19
19
  initialPrice?: Ratio | undefined;
20
20
  };
21
+ import type { ZCF } from '@agoric/zoe';
21
22
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
22
23
  //# sourceMappingURL=scaledPriceAuthority.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scaledPriceAuthority.d.ts","sourceRoot":"","sources":["scaledPriceAuthority.js"],"names":[],"mappings":"AAqCO,6BALI,GAAG,CAAC,wBAAwB,CAAC,eAC7B,MAAM,WACN,OAAO,kBAAkB,EAAE,OAAO;;;;GA2D5C;;0BA5Ea,IAAI,CAAC,cAAc,CAAC;;;;aACpB,KAAK;;;;cACL,KAAK;;;;;;oCAP0E,4BAA4B"}
1
+ {"version":3,"file":"scaledPriceAuthority.d.ts","sourceRoot":"","sources":["scaledPriceAuthority.js"],"names":[],"mappings":"AAsCO,6BALI,IAAI,wBAAwB,CAAC,eAC7B,MAAM,WACN,OAAO,kBAAkB,EAAE,OAAO;;;;GA2D5C;;0BA5Ea,IAAI,CAAC,cAAc,CAAC;;;;aACpB,KAAK;;;;cACL,KAAK;;;;;;yBAPG,aAAa;oCAD0D,4BAA4B"}
@@ -11,6 +11,7 @@ import { provideQuoteMint } from '../contractSupport/priceAuthorityQuoteMint.js'
11
11
 
12
12
  /**
13
13
  * @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
14
+ * @import {ZCF} from '@agoric/zoe';
14
15
  */
15
16
 
16
17
  /**
@@ -24,7 +24,7 @@ export function start(zcf: ZCF<{
24
24
  pricePerItem: Amount<"nat">;
25
25
  }>): {
26
26
  creatorFacet: SellItemsCreatorFacet;
27
- creatorInvitation: Promise<Invitation<string, undefined>>;
27
+ creatorInvitation: Promise<globalThis.Invitation<string, undefined>>;
28
28
  publicFacet: SellItemsPublicFacet;
29
29
  };
30
30
  //# sourceMappingURL=sellItems.d.ts.map
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
3
+ */
1
4
  /**
2
5
  * SimpleExchange is an exchange with a simple matching algorithm, which allows
3
6
  * an unlimited number of parties to create new orders or accept existing
@@ -34,4 +37,6 @@ export function start(zcf: ZCF): {
34
37
  }>;
35
38
  }>;
36
39
  };
40
+ import type { ZCF } from '@agoric/zoe';
41
+ import type { Invitation } from '@agoric/zoe';
37
42
  //# sourceMappingURL=simpleExchange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"simpleExchange.d.ts","sourceRoot":"","sources":["simpleExchange.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BAFW,GAAG;;;;;;;;;;;;;;EA+Gb"}
1
+ {"version":3,"file":"simpleExchange.d.ts","sourceRoot":"","sources":["simpleExchange.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BAFW,GAAG;;;;;;;;;;;;;;EA+Gb;yBArIsE,aAAa;gCAAb,aAAa"}
@@ -8,6 +8,10 @@ import {
8
8
  assertIssuerKeywords,
9
9
  } from '../contractSupport/zoeHelpers.js';
10
10
 
11
+ /**
12
+ * @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
13
+ */
14
+
11
15
  /**
12
16
  * SimpleExchange is an exchange with a simple matching algorithm, which allows
13
17
  * an unlimited number of parties to create new orders or accept existing
@@ -3,7 +3,7 @@ type SellItemsPublicFacet = {
3
3
  getAvailableItems: () => Amount;
4
4
  };
5
5
  type SellItemsCreatorOnly = {
6
- makeBuyerInvitation: () => Promise<Invitation>;
6
+ makeBuyerInvitation: () => Promise<import("../types-index").Invitation>;
7
7
  };
8
8
  type SellItemsCreatorFacet = SellItemsPublicFacet & SellItemsCreatorOnly;
9
9
  type SellItemsParameters = {
@@ -25,36 +25,36 @@ type MintAndSellNFTCreatorFacet = {
25
25
  };
26
26
  type AutomaticRefundPublicFacet = {
27
27
  getOffersCount: () => bigint;
28
- makeInvitation: () => Promise<Invitation>;
28
+ makeInvitation: () => Promise<import("../types-index").Invitation>;
29
29
  };
30
30
  type AutoswapPublicFacet = {
31
31
  /**
32
32
  * synonym for
33
33
  * makeSwapInInvitation
34
34
  */
35
- makeSwapInvitation: () => Promise<Invitation>;
35
+ makeSwapInvitation: () => Promise<import("../types-index").Invitation>;
36
36
  /**
37
37
  * make an invitation
38
38
  * that allows one to do a swap in which the In amount is specified and the Out
39
39
  * amount is calculated
40
40
  */
41
- makeSwapInInvitation: () => Promise<Invitation>;
41
+ makeSwapInInvitation: () => Promise<import("../types-index").Invitation>;
42
42
  /**
43
43
  * make an invitation
44
44
  * that allows one to do a swap in which the Out amount is specified and the In
45
45
  * amount is calculated
46
46
  */
47
- makeSwapOutInvitation: () => Promise<Invitation>;
47
+ makeSwapOutInvitation: () => Promise<import("../types-index").Invitation>;
48
48
  /**
49
49
  * make an
50
50
  * invitation that allows one to add liquidity to the pool.
51
51
  */
52
- makeAddLiquidityInvitation: () => Promise<Invitation>;
52
+ makeAddLiquidityInvitation: () => Promise<import("../types-index").Invitation>;
53
53
  /**
54
54
  * make an
55
55
  * invitation that allows one to remove liquidity from the pool.
56
56
  */
57
- makeRemoveLiquidityInvitation: () => Promise<Invitation>;
57
+ makeRemoveLiquidityInvitation: () => Promise<import("../types-index").Invitation>;
58
58
  getLiquidityIssuer: () => Issuer;
59
59
  /**
60
60
  * get the current value of
@@ -1 +1 @@
1
- {"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";oBAEc,MAAM,MAAM;uBACZ,MAAM,MAAM;;;yBAGZ,MAAM,OAAO,CAAC,UAAU,CAAC;;6BAE1B,oBAAoB,GAAG,oBAAoB;;2BAK1C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WACnB,MAAM;iBACN,MAAM;2BACN,YAAY;kBACZ,MAAM;;;0BAGN,QAAQ;2BACR,qBAAqB;uBACrB,QAAQ;0BACR,oBAAoB;;;gBAGpB,CAAC,UAAU,EAAE,mBAAmB,KAAK,OAAO,CAAC,eAAe,CAAC;eAC7D,MAAM,MAAM;;;oBAKZ,MAAM,MAAM;oBACZ,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;;wBAKzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;0BAEzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;2BAGzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;gCAGzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;mCAEzB,MAAM,OAAO,CAAC,UAAU,CAAC;wBAEzB,MAAM,MAAM;;;;;wBACZ,MAAM,MAAM;;;;;mBAEZ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,KAAK,MAAM;;;;;oBAG7C,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM;;;;;uBAG7C,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC"}
1
+ {"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";oBAEc,MAAM,MAAM;uBACZ,MAAM,MAAM;;;yBAGZ,MAAM,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC;;6BAEnD,oBAAoB,GAAG,oBAAoB;;2BAK1C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WACnB,MAAM;iBACN,MAAM;2BACN,YAAY;kBACZ,MAAM;;;0BAGN,QAAQ;2BACR,qBAAqB;uBACrB,QAAQ;0BACR,oBAAoB;;;gBAGpB,CAAC,UAAU,EAAE,mBAAmB,KAAK,OAAO,CAAC,eAAe,CAAC;eAC7D,MAAM,MAAM;;;oBAKZ,MAAM,MAAM;oBACZ,MAAM,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC;;;;;;;wBAKlD,MAAM,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC;;;;;;0BAElD,MAAM,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC;;;;;;2BAGlD,MAAM,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC;;;;;gCAGlD,MAAM,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC;;;;;mCAElD,MAAM,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC;wBAElD,MAAM,MAAM;;;;;wBACZ,MAAM,MAAM;;;;;mBAEZ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,KAAK,MAAM;;;;;oBAG7C,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM;;;;;uBAG7C,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * @property {() => Amount} getAvailableItems
5
5
  *
6
6
  * @typedef {object} SellItemsCreatorOnly
7
- * @property {() => Promise<Invitation>} makeBuyerInvitation
7
+ * @property {() => Promise<import('../types-index').Invitation>} makeBuyerInvitation
8
8
  *
9
9
  * @typedef {SellItemsPublicFacet & SellItemsCreatorOnly} SellItemsCreatorFacet
10
10
  */
@@ -31,22 +31,22 @@
31
31
  /**
32
32
  * @typedef {object} AutomaticRefundPublicFacet
33
33
  * @property {() => bigint} getOffersCount
34
- * @property {() => Promise<Invitation>} makeInvitation
34
+ * @property {() => Promise<import('../types-index').Invitation>} makeInvitation
35
35
  */
36
36
 
37
37
  /**
38
38
  * @typedef {object} AutoswapPublicFacet
39
- * @property {() => Promise<Invitation>} makeSwapInvitation synonym for
39
+ * @property {() => Promise<import('../types-index').Invitation>} makeSwapInvitation synonym for
40
40
  * makeSwapInInvitation
41
- * @property {() => Promise<Invitation>} makeSwapInInvitation make an invitation
41
+ * @property {() => Promise<import('../types-index').Invitation>} makeSwapInInvitation make an invitation
42
42
  * that allows one to do a swap in which the In amount is specified and the Out
43
43
  * amount is calculated
44
- * @property {() => Promise<Invitation>} makeSwapOutInvitation make an invitation
44
+ * @property {() => Promise<import('../types-index').Invitation>} makeSwapOutInvitation make an invitation
45
45
  * that allows one to do a swap in which the Out amount is specified and the In
46
46
  * amount is calculated
47
- * @property {() => Promise<Invitation>} makeAddLiquidityInvitation make an
47
+ * @property {() => Promise<import('../types-index').Invitation>} makeAddLiquidityInvitation make an
48
48
  * invitation that allows one to add liquidity to the pool.
49
- * @property {() => Promise<Invitation>} makeRemoveLiquidityInvitation make an
49
+ * @property {() => Promise<import('../types-index').Invitation>} makeRemoveLiquidityInvitation make an
50
50
  * invitation that allows one to remove liquidity from the pool.
51
51
  * @property {() => Issuer} getLiquidityIssuer
52
52
  * @property {() => bigint} getLiquiditySupply get the current value of
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * @import {ContractMeta, HandleOffer, ZCF} from '@agoric/zoe';
2
3
  * @import { Baggage } from '@agoric/vat-data';
3
4
  */
4
5
  /** @type {ContractMeta<typeof start>} */
@@ -7,11 +8,13 @@ export function start(zcf: ZCF<{}>, _privateArgs: undefined, baggage: Baggage):
7
8
  publicFacet: import("@endo/exo").Guarded<{
8
9
  getValue(): import("@agoric/vow").Vow<any>;
9
10
  setValue(value: any): void;
10
- makeGetterInvitation(): Promise<Invitation<import("@agoric/vow").Vow<any>, undefined>>;
11
- makeSetterInvitation(): Promise<Invitation<void, {
11
+ makeGetterInvitation(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<any>, undefined>>;
12
+ makeSetterInvitation(): Promise<globalThis.Invitation<void, {
12
13
  value: unknown;
13
14
  }>>;
14
15
  }>;
15
16
  };
17
+ import type { ContractMeta } from '@agoric/zoe';
18
+ import type { ZCF } from '@agoric/zoe';
16
19
  import type { Baggage } from '@agoric/vat-data';
17
20
  //# sourceMappingURL=valueVow.contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"valueVow.contract.d.ts","sourceRoot":"","sources":["valueVow.contract.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAGnC;AAYK,2BAJI,GAAG,CAAC,EAAE,CAAC,gBACP,SAAS,WACT,OAAO;;;;;;mBA8B4B,OAAO;;;EAWpD;6BAzD2B,kBAAkB"}
1
+ {"version":3,"file":"valueVow.contract.d.ts","sourceRoot":"","sources":["valueVow.contract.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAGnC;AAYK,2BAJI,IAAI,EAAE,CAAC,gBACP,SAAS,WACT,OAAO;;;;;;mBA8B4B,OAAO;;;EAWpD;kCA1DgD,aAAa;yBAAb,aAAa;6BAClC,kBAAkB"}
@@ -2,6 +2,7 @@ import { prepareVowTools } from '@agoric/vow';
2
2
  import { makeDurableZone } from '@agoric/zone/durable.js';
3
3
 
4
4
  /**
5
+ * @import {ContractMeta, HandleOffer, ZCF} from '@agoric/zoe';
5
6
  * @import { Baggage } from '@agoric/vat-data';
6
7
  */
7
8
 
@@ -1 +1 @@
1
- {"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"AA6BO,mDAHI,OAAO,kBAAkB,EAAE,OAAO,GAChC,CAAC,EAAE,EAAE,cAAc,KAAK,aAAa,CAmFjD"}
1
+ {"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"AA6BO,mDAHI,OAAO,kBAAkB,EAAE,OAAO,GAChC,CAAC,EAAE,EAAE,cAAc,KAAK,aAAa,CAqFjD"}
@@ -47,8 +47,10 @@ export const makeInstanceRecordStorage = baggage => {
47
47
  baggage,
48
48
  'InstanceRecord',
49
49
  InstanceRecordI,
50
- record => harden({ instanceRecord: record }),
50
+ /** @type {(ir: InstanceRecord) => {instanceRecord: InstanceRecord}} */
51
+ ir => harden({ instanceRecord: ir }),
51
52
  {
53
+ /** @type {(keyword: Keyword, issuerRecord: ZoeIssuerRecord) => void} */
52
54
  addIssuer(keyword, issuerRecord) {
53
55
  const { state } = this;
54
56
  !ownKeys(issuerRecord).includes(keyword) ||
@@ -73,7 +73,7 @@ type HandleOfferObj = {
73
73
  type ZoeInstanceAdminMakeInvitation = (invitationHandle: InvitationHandle, description: string, customDetails?: Record<string, any> | undefined, proposalShape?: Pattern) => Invitation;
74
74
  type ZoeInstanceAdmin = {
75
75
  makeInvitation: ZoeInstanceAdminMakeInvitation;
76
- saveIssuer: <I extends Issuer>(issuerP: ERef<I>, keyword: Keyword) => Promise<I extends Issuer<infer K, infer M> ? IssuerRecord<K, M> : never>;
76
+ saveIssuer: <I extends Issuer>(issuerP: ERef<I>, keyword: Keyword) => Promise<I extends Issuer<infer K, infer M> ? ZoeIssuerRecord<K, M> : never>;
77
77
  makeZoeMint: MakeZoeMint;
78
78
  registerFeeMint: RegisterFeeMint;
79
79
  makeNoEscrowSeat: MakeNoEscrowSeat;
@@ -101,7 +101,7 @@ type SeatHandleAllocation = {
101
101
  allocation: Allocation;
102
102
  };
103
103
  type ZoeMint<K extends AssetKind = globalThis.AssetKind> = {
104
- getIssuerRecord: () => IssuerRecord<K>;
104
+ getIssuerRecord: () => import("@agoric/ertp").IssuerRecord<K>;
105
105
  mintAndEscrow: (totalToMint: Amount<K>) => void;
106
106
  /**
107
107
  * Note that the burning is asynchronous, and so may not have happened by
@@ -117,7 +117,7 @@ type ZCFRoot = {
117
117
  };
118
118
  type ExecuteContractResult = {
119
119
  creatorFacet: object;
120
- creatorInvitation?: Promise<Invitation<unknown, undefined>> | undefined;
120
+ creatorInvitation?: Promise<globalThis.Invitation> | undefined;
121
121
  publicFacet: object;
122
122
  handleOfferObj: HandleOfferObj;
123
123
  };
@@ -134,7 +134,7 @@ type SeatHandle = Handle<"Seat">;
134
134
  * To be deleted when brands have a property for assetKind
135
135
  */
136
136
  type GetAssetKindByBrand = (brand: Brand) => AssetKind;
137
- type IssuerRecords = Array<IssuerRecord>;
137
+ type IssuerRecords = Array<ZoeIssuerRecord>;
138
138
  type MakeZCFSeat = (seatData: SeatData) => ZCFSeat;
139
139
  /**
140
140
  * Drops all of the references in the seat-related weakStores by
@@ -143,7 +143,6 @@ type MakeZCFSeat = (seatData: SeatData) => ZCFSeat;
143
143
  type DropAllReferences = () => void;
144
144
  type ZcfSeatManager = {
145
145
  makeZCFSeat: MakeZCFSeat;
146
- reallocate: Reallocate;
147
146
  dropAllReferences: DropAllReferences;
148
147
  };
149
148
  type ZcfMintReallocator = {
@@ -153,7 +152,7 @@ type ZcfMintReallocator = {
153
152
  * Add an issuer and its keyword to the instanceRecord for the
154
153
  * contract instance
155
154
  */
156
- type InstanceStateAddIssuer = (keyword: Keyword, issuerRecord: IssuerRecord) => void;
155
+ type InstanceStateAddIssuer = (keyword: Keyword, issuerRecord: ZoeIssuerRecord) => void;
157
156
  type InstanceState = {
158
157
  addIssuer: InstanceStateAddIssuer;
159
158
  getInstanceRecord: () => InstanceRecord;
@@ -163,4 +162,14 @@ type InstanceState = {
163
162
  getBrands: () => BrandKeywordRecord;
164
163
  assertUniqueKeyword: (keyword: Keyword) => void;
165
164
  };
165
+ import type { Allocation } from '@agoric/zoe';
166
+ import type { AnyTerms } from '@agoric/zoe';
167
+ import type { BrandKeywordRecord } from '@agoric/zoe';
168
+ import type { Completion } from '@agoric/zoe';
169
+ import type { ContractStartFn } from '@agoric/zoe';
170
+ import type { InvitationHandle } from '@agoric/zoe';
171
+ import type { PaymentPKeywordRecord } from '@agoric/zoe';
172
+ import type { UserSeat } from '@agoric/zoe';
173
+ import type { ZoeIssuerRecord } from '@agoric/zoe';
174
+ import type { Pattern } from '@endo/patterns';
166
175
  //# sourceMappingURL=internal-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":";cAKc,cAAc;uBACd,UAAU;gBACV,UAAU;gBACV,MAAM;;;;;qCAOT,UAAU,KACR,qBAAqB;;sBAKpB,CAAC,UAAU,EAAC,UAAU,KAAK,qBAAqB;;;sBAKhD,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI;eACpC,CAAC,YAAY,EAAE,YAAY,KAAK,OAAO;;;cAKvC,QAAQ;kBACR,YAAY;;;;;+CAMf,UAAU,uBACV,mBAAmB,YACnB,cAAc,iBACd,aAAa,WACb,IAAI,CAAC,OAAO,CAAC,gBACb,IAAI,CAAC,OAAO,CAAC,WACb,OAAO,kBAAkB,EAAE,OAAO,KAChC,eAAe;sCAKjB,UAAU,KACR,IAAI;;uBAKH,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI;UAChC,gBAAgB;;;;;UAChB,OAAO,sBAAsB,EAAE,mBAAmB;uBAElD,MAAM,UAAU,CAAC,mBAAmB,CAAC;;oBAGtC,OAAO,eAAe,EAAE,eAAe,GAAG,mBAAmB;;wBAS5D,OAAO,CAAC,OAAO,eAAe,EAAE,QAAQ,CAAC;aACzC,OAAO;;;;;;;;2BASP,MAAM,IAAI;kBACV,CAAC,gBAAgB,EAAE,gBAAgB,EAC1C,iBAAiB,EAAE,UAAU,EAC7B,QAAQ,EAAE,cAAc,EACxB,SAAS,CAAC,EAAE,MAAM,KACjB,QAAQ;sBACF,gBAAgB;iBAChB,MAAM,QAAQ;oBACd,MAAM,MAAM;gBACZ,MAAM,mBAAmB;eACzB,MAAM,kBAAkB;cACxB,MAAM,MAAM;oBACZ,MAAM,MAAM,EAAE;qBACd,MAAM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;iBAEN,MAAM;oBACN,cAAc;;mCAKjB,IAAI,CAAC,gBAAgB,CAAC,yBACtB,cAAc,wBACd,aAAa,gBACb,MAAM,KACJ,OAAO,CAAC,qBAAqB,CAAC;sCAKhC,MAAM,KACJ,OAAO,CAAC,gCAAgC,CAAC;8BAK3C,cAAc,gBACd,OAAO,KACL,OAAO;;UAKN,MAAM,IAAI;;kBAIX,MAAM,CAAC,MAAM,CAAC;;;;;;mCAShB,KAAK,KACH,SAAS;qBAIT,KAAK,CAAC,eAAe,CAAC;8BAKxB,QAAQ,KACN,OAAO;;;;;+BAQP,IAAI;;iBAKH,WAAW;uBACX,iBAAiB;;;gBAKjB,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,KAAK,IAAI;;;;;;wCASxD,OAAO,gBACP,eAAe,KACb,IAAI;;eAKH,sBAAsB;uBACtB,MAAM,cAAc;cACpB,MAAM,QAAQ;qBACd,MAAM,YAAY;gBAClB,MAAM,mBAAmB;eACzB,MAAM,kBAAkB;yBACxB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;;gCAlToH,aAAa;8BAAb,aAAa;wCAAb,aAAa;gCAAb,aAAa;qCAAb,aAAa;sCAAb,aAAa;2CAAb,aAAa;8BAAb,aAAa;qCAAb,aAAa;6BAC/I,gBAAgB"}
@@ -1,6 +1,11 @@
1
1
  // @jessie-check
2
2
  /// <reference types="@agoric/ertp/exported" />
3
3
 
4
+ /**
5
+ * @import {Allocation, AnyTerms, BrandKeywordRecord, Completion, ContractStartFn, InvitationHandle, PaymentPKeywordRecord, UserSeat, ZoeIssuerRecord} from '@agoric/zoe';
6
+ * @import {Pattern} from '@endo/patterns';
7
+ */
8
+
4
9
  /**
5
10
  * @typedef {object} SeatData
6
11
  * @property {ProposalRecord} proposal
@@ -128,7 +133,7 @@
128
133
  * @property {ZoeInstanceAdminMakeInvitation} makeInvitation
129
134
  * @property {<I extends Issuer>(issuerP: ERef<I>,
130
135
  * keyword: Keyword
131
- * ) => Promise<I extends Issuer<infer K, infer M> ? IssuerRecord<K, M> : never>} saveIssuer
136
+ * ) => Promise<I extends Issuer<infer K, infer M> ? ZoeIssuerRecord<K, M> : never>} saveIssuer
132
137
  * @property {MakeZoeMint} makeZoeMint
133
138
  * @property {RegisterFeeMint} registerFeeMint
134
139
  * @property {MakeNoEscrowSeat} makeNoEscrowSeat
@@ -191,7 +196,7 @@
191
196
  /**
192
197
  * @template {AssetKind} [K=AssetKind]
193
198
  * @typedef {object} ZoeMint
194
- * @property {() => IssuerRecord<K>} getIssuerRecord
199
+ * @property {() => import('@agoric/ertp').IssuerRecord<K>} getIssuerRecord
195
200
  * @property {(totalToMint: Amount<K>) => void} mintAndEscrow
196
201
  * @property {(totalToBurn: Amount<K>) => void} withdrawAndBurn
197
202
  * Note that the burning is asynchronous, and so may not have happened by
@@ -256,7 +261,7 @@
256
261
  */
257
262
 
258
263
  /**
259
- * @typedef {Array<IssuerRecord>} IssuerRecords
264
+ * @typedef {Array<ZoeIssuerRecord>} IssuerRecords
260
265
  */
261
266
 
262
267
  /**
@@ -276,7 +281,6 @@
276
281
  /**
277
282
  * @typedef {object} ZcfSeatManager
278
283
  * @property {MakeZCFSeat} makeZCFSeat
279
- * @property {Reallocate} reallocate
280
284
  * @property {DropAllReferences} dropAllReferences
281
285
  */
282
286
 
@@ -292,7 +296,7 @@
292
296
  * contract instance
293
297
  *
294
298
  * @param {Keyword} keyword
295
- * @param {IssuerRecord} issuerRecord
299
+ * @param {ZoeIssuerRecord} issuerRecord
296
300
  * @returns {void}
297
301
  */
298
302
 
@@ -1,3 +1,4 @@
1
- export function makeIssuerRecord<K extends AssetKind>(brand: Brand<K>, issuer: Issuer<K>, displayInfo: DisplayInfo<K>): IssuerRecord<K>;
2
- export function assertFullIssuerRecord(issuerRecord: IssuerRecord): asserts issuerRecord is Required<IssuerRecord>;
1
+ export function makeIssuerRecord<K extends AssetKind>(brand: Brand<K>, issuer: Issuer<K>, displayInfo: DisplayInfo<K>): ZoeIssuerRecord<K>;
2
+ export function assertFullIssuerRecord(issuerRecord: IssuerRecord<any>): asserts issuerRecord is Required<IssuerRecord>;
3
+ import type { IssuerRecord } from '@agoric/ertp';
3
4
  //# sourceMappingURL=issuerRecord.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"issuerRecord.d.ts","sourceRoot":"","sources":["issuerRecord.js"],"names":[],"mappings":"AAaO,iCANkB,CAAC,SAAZ,SAAU,SACb,KAAK,CAAC,CAAC,CAAC,UACR,MAAM,CAAC,CAAC,CAAC,eACT,WAAW,CAAC,CAAC,CAAC,GACZ,YAAY,CAAC,CAAC,CAAC,CAQxB;AAMG,qDAHI,YAAY,GACV,QAAQ,YAAY,IAAI,QAAQ,CAAC,YAAY,CAAC,CAM1D"}
1
+ {"version":3,"file":"issuerRecord.d.ts","sourceRoot":"","sources":["issuerRecord.js"],"names":[],"mappings":"AAiBO,iCANkB,CAAC,SAAZ,SAAU,SACb,KAAK,CAAC,CAAC,CAAC,UACR,MAAM,CAAC,CAAC,CAAC,eACT,WAAW,CAAC,CAAC,CAAC,GACZ,gBAAgB,CAAC,CAAC,CAQ3B;AAMG,qDAHI,aAAa,GAAG,CAAC,GACf,QAAQ,YAAY,IAAI,QAAQ,CAAC,YAAY,CAAC,CAM1D;kCA7B8B,cAAc"}
@@ -1,6 +1,10 @@
1
1
  // @jessie-check
2
2
  import { Fail } from '@endo/errors';
3
3
 
4
+ /**
5
+ * @import {IssuerRecord} from '@agoric/ertp';
6
+ */
7
+
4
8
  /**
5
9
  * Put together information about the issuer in a standard format that
6
10
  * is synchronously accessible.
@@ -9,7 +13,7 @@ import { Fail } from '@endo/errors';
9
13
  * @param {Brand<K>} brand
10
14
  * @param {Issuer<K>} issuer
11
15
  * @param {DisplayInfo<K>} displayInfo
12
- * @returns {IssuerRecord<K>}
16
+ * @returns {ZoeIssuerRecord<K>}
13
17
  */
14
18
  export const makeIssuerRecord = (brand, issuer, displayInfo) =>
15
19
  harden({
@@ -20,7 +24,7 @@ export const makeIssuerRecord = (brand, issuer, displayInfo) =>
20
24
  });
21
25
 
22
26
  /**
23
- * @param {IssuerRecord} issuerRecord
27
+ * @param {IssuerRecord<any>} issuerRecord
24
28
  * @returns {asserts issuerRecord is Required<IssuerRecord>}
25
29
  */
26
30
  export const assertFullIssuerRecord = issuerRecord => {
@@ -3,12 +3,13 @@ export function provideIssuerStorage(zcfBaggage: import("@agoric/vat-data").Bagg
3
3
  issuers: IssuerKeywordRecord;
4
4
  brands: BrandKeywordRecord;
5
5
  }>;
6
- storeIssuer: (issuerP: ERef<Issuer>) => Promise<IssuerRecord>;
7
- storeIssuerRecord: (issuerRecord: IssuerRecord) => IssuerRecord;
6
+ storeIssuer: (issuerP: ERef<Issuer>) => Promise<ZoeIssuerRecord>;
7
+ storeIssuerRecord: (issuerRecord: ZoeIssuerRecord) => ZoeIssuerRecord;
8
8
  getAssetKindByBrand: GetAssetKindByBrand;
9
9
  getBrandForIssuer: <K extends AssetKind>(issuer: Issuer<K>) => Brand<K>;
10
10
  getIssuerForBrand: <K extends AssetKind>(brand: Brand<K>) => Issuer<K>;
11
11
  getIssuerRecords: (issuers: Issuer[]) => IssuerRecords;
12
12
  instantiate: (issuerRecords?: any[]) => void;
13
13
  };
14
+ import type { ZoeIssuerRecord } from '@agoric/zoe';
14
15
  //# sourceMappingURL=issuerStorage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"AAeO,iDAFI,OAAO,kBAAkB,EAAE,OAAO;2DAwHhC,mBAAmB,KACjB,OAAO,CAAC;QAAE,OAAO,EAAE,mBAAmB,CAAC;QAC7B,MAAM,EAAE,kBAAkB,CAAA;KAAE,CAAC;2BAnDzC,IAAI,CAAC,MAAM,CAAC,KACV,OAAO,CAAC,YAAY,CAAC;sCAzBvB,YAAY,KACV,YAAY;;wBAyFA,CAAC,SAAZ,SAAU,UACb,MAAM,CAAC,CAAC,CAAC,KACP,KAAK,CAAC,CAAC,CAAC;wBASI,CAAC,SAAZ,SAAU,SACb,KAAK,CAAC,CAAC,CAAC,KACN,MAAM,CAAC,CAAC,CAAC;gCASX,MAAM,EAAE,KACN,aAAa;;EA2B3B"}
1
+ {"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"AAoBO,iDAFI,OAAO,kBAAkB,EAAE,OAAO;2DAwHhC,mBAAmB,KACjB,OAAO,CAAC;QAAE,OAAO,EAAE,mBAAmB,CAAC;QAC7B,MAAM,EAAE,kBAAkB,CAAA;KAAE,CAAC;2BAnDzC,IAAI,CAAC,MAAM,CAAC,KACV,OAAO,CAAE,eAAe,CAAC;sCAzB3B,eAAe,KACb,eAAe;;wBAyFH,CAAC,SAAZ,SAAU,UACb,MAAM,CAAC,CAAC,CAAC,KACP,KAAK,CAAC,CAAC,CAAC;wBASI,CAAC,SAAZ,SAAU,SACb,KAAK,CAAC,CAAC,CAAC,KACN,MAAM,CAAC,CAAC,CAAC;gCASX,MAAM,EAAE,KACN,aAAa;;EA2B3B;qCAjMiC,aAAa"}
@@ -8,18 +8,23 @@ import { makeIssuerRecord } from './issuerRecord.js';
8
8
 
9
9
  const STORAGE_INSTANTIATED_KEY = 'IssuerStorageInstantiated';
10
10
 
11
+ /**
12
+ * @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
13
+ * @import {ZoeIssuerRecord} from '@agoric/zoe';
14
+ */
15
+
11
16
  /**
12
17
  * Make the Issuer Storage.
13
18
  *
14
19
  * @param {import('@agoric/vat-data').Baggage} zcfBaggage
15
20
  */
16
21
  export const provideIssuerStorage = zcfBaggage => {
17
- /** @type {WeakMapStore<Brand,IssuerRecord>} */
22
+ /** @type {WeakMapStore<Brand, ZoeIssuerRecord>} */
18
23
  const brandToIssuerRecord = provideDurableWeakMapStore(
19
24
  zcfBaggage,
20
25
  'brandToIssuerRecord',
21
26
  );
22
- /** @type {WeakMapStore<Issuer,IssuerRecord>} */
27
+ /** @type {WeakMapStore<Issuer, ZoeIssuerRecord>} */
23
28
  const issuerToIssuerRecord = provideDurableWeakMapStore(
24
29
  zcfBaggage,
25
30
  'issuerToIssuerRecord',
@@ -58,8 +63,8 @@ export const provideIssuerStorage = zcfBaggage => {
58
63
  * to add the issuer again in ZCF.
59
64
  *
60
65
  *
61
- * @param {IssuerRecord} issuerRecord
62
- * @returns {IssuerRecord}
66
+ * @param {ZoeIssuerRecord} issuerRecord
67
+ * @returns {ZoeIssuerRecord}
63
68
  */
64
69
  const storeIssuerRecord = issuerRecord => {
65
70
  assertInstantiated();
@@ -83,7 +88,7 @@ export const provideIssuerStorage = zcfBaggage => {
83
88
  * Otherwise, make and save the issuerRecord.
84
89
  *
85
90
  * @param {ERef<Issuer>} issuerP
86
- * @returns {Promise<IssuerRecord>}
91
+ * @returns {Promise< ZoeIssuerRecord>}
87
92
  */
88
93
  const storeIssuer = async issuerP => {
89
94
  assertInstantiated();
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @import {TypedPattern} from '@agoric/internal';
3
+ * @import {AfterDeadlineExitRule, ZoeIssuerRecord} from '@agoric/zoe';
3
4
  */
4
5
  export const KeywordShape: import("@endo/patterns").Matcher;
5
6
  /** @type {TypedPattern<InvitationHandle>} */
@@ -16,7 +17,8 @@ export const PaymentPKeywordRecordShape: import("@endo/patterns").Matcher;
16
17
  export const IssuerKeywordRecordShape: import("@endo/patterns").Matcher;
17
18
  export const IssuerPKeywordRecordShape: import("@endo/patterns").Matcher;
18
19
  export const BrandKeywordRecordShape: import("@endo/patterns").Matcher;
19
- export const IssuerRecordShape: import("@endo/patterns").Matcher;
20
+ /** @type {TypedPattern<ZoeIssuerRecord>} */
21
+ export const IssuerRecordShape: TypedPattern<ZoeIssuerRecord>;
20
22
  export namespace TermsShape {
21
23
  export { IssuerKeywordRecordShape as issuers };
22
24
  export { BrandKeywordRecordShape as brands };
@@ -38,9 +40,10 @@ export namespace FullProposalShape {
38
40
  export const ProposalShape: import("@endo/patterns").Matcher;
39
41
  export const EmptyProposalShape: import("@endo/patterns").Matcher;
40
42
  export function isOnDemandExitRule(exit: any): boolean;
41
- export function isWaivedExitRule(exit: ExitRule): exit is WaivedExitRule;
42
- export function isAfterDeadlineExitRule(exit: ExitRule): exit is AfterDeadlineExitRule;
43
- export const InvitationElementShape: import("@endo/patterns").Matcher;
43
+ export function isWaivedExitRule(exit: import("./types-index").ExitRule): exit is WaivedExitRule;
44
+ export function isAfterDeadlineExitRule(exit: import("./types-index").ExitRule): exit is AfterDeadlineExitRule;
45
+ /** @type {TypedPattern<import('./types-index').InvitationDetails>} */
46
+ export const InvitationElementShape: TypedPattern<import("./types-index").InvitationDetails>;
44
47
  export const OfferHandlerI: import("@endo/patterns").InterfaceGuard<{
45
48
  handle: import("@endo/patterns").MethodGuard;
46
49
  }>;
@@ -165,8 +168,10 @@ export const HandleOfferI: import("@endo/patterns").InterfaceGuard<{
165
168
  }>;
166
169
  export namespace PriceQuoteShape {
167
170
  export { AmountShape as quoteAmount };
168
- export let quotePayment: globalThis.Pattern;
171
+ export let quotePayment: Pattern;
169
172
  }
170
173
  import type { TypedPattern } from '@agoric/internal';
174
+ import type { ZoeIssuerRecord } from '@agoric/zoe';
175
+ import type { AfterDeadlineExitRule } from '@agoric/zoe';
171
176
  import { AmountShape } from '@agoric/ertp';
172
177
  //# sourceMappingURL=typeGuards.d.ts.map