@agoric/zoe 0.26.3-upgrade-16-dev-0df76a7.0 → 0.26.3-upgrade-17-dev-e67cd91.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 (132) hide show
  1. package/README.md +2 -3
  2. package/bundles/bundle-contractFacet-js-meta.json +536 -507
  3. package/bundles/bundle-contractFacet.js +1 -1
  4. package/package.json +30 -28
  5. package/src/cleanProposal.d.ts.map +1 -1
  6. package/src/cleanProposal.js +4 -2
  7. package/src/contractFacet/allocationMath.d.ts.map +1 -1
  8. package/src/contractFacet/allocationMath.js +1 -2
  9. package/src/contractFacet/exit.d.ts.map +1 -1
  10. package/src/contractFacet/exit.js +1 -2
  11. package/src/contractFacet/offerHandlerStorage.d.ts +4 -0
  12. package/src/contractFacet/offerHandlerStorage.d.ts.map +1 -1
  13. package/src/contractFacet/offerHandlerStorage.js +12 -0
  14. package/src/contractFacet/reallocate.d.ts.map +1 -1
  15. package/src/contractFacet/reallocate.js +1 -2
  16. package/src/contractFacet/rightsConservation.js +5 -5
  17. package/src/contractFacet/typeGuards.d.ts +8 -0
  18. package/src/contractFacet/typeGuards.d.ts.map +1 -0
  19. package/src/contractFacet/typeGuards.js +25 -0
  20. package/src/contractFacet/types-ambient.d.ts +4 -1
  21. package/src/contractFacet/vatRoot.d.ts.map +1 -1
  22. package/src/contractFacet/vatRoot.js +1 -2
  23. package/src/contractFacet/zcfMint.d.ts.map +1 -1
  24. package/src/contractFacet/zcfMint.js +3 -5
  25. package/src/contractFacet/zcfSeat.d.ts.map +1 -1
  26. package/src/contractFacet/zcfSeat.js +10 -9
  27. package/src/contractFacet/zcfZygote.d.ts.map +1 -1
  28. package/src/contractFacet/zcfZygote.js +8 -12
  29. package/src/contractSupport/bondingCurves.js +1 -1
  30. package/src/contractSupport/priceAuthority.d.ts.map +1 -1
  31. package/src/contractSupport/priceAuthority.js +2 -3
  32. package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
  33. package/src/contractSupport/priceAuthorityInitial.js +0 -1
  34. package/src/contractSupport/priceAuthorityTransform.js +1 -1
  35. package/src/contractSupport/priceQuote.d.ts.map +1 -1
  36. package/src/contractSupport/priceQuote.js +2 -3
  37. package/src/contractSupport/ratio.d.ts +12 -3
  38. package/src/contractSupport/ratio.d.ts.map +1 -1
  39. package/src/contractSupport/ratio.js +19 -5
  40. package/src/contractSupport/recorder.d.ts +11 -21
  41. package/src/contractSupport/recorder.d.ts.map +1 -1
  42. package/src/contractSupport/recorder.js +9 -21
  43. package/src/contractSupport/stateMachine.js +1 -1
  44. package/src/contractSupport/topics.d.ts +26 -0
  45. package/src/contractSupport/topics.d.ts.map +1 -1
  46. package/src/contractSupport/topics.js +24 -1
  47. package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
  48. package/src/contractSupport/zoeHelpers.js +6 -9
  49. package/src/contracts/auction/assertBidSeat.js +1 -1
  50. package/src/contracts/auction/index.d.ts.map +1 -1
  51. package/src/contracts/auction/index.js +1 -3
  52. package/src/contracts/auction/secondPriceLogic.js +4 -4
  53. package/src/contracts/autoswap.d.ts.map +1 -1
  54. package/src/contracts/autoswap.js +4 -2
  55. package/src/contracts/callSpread/calculateShares.js +1 -1
  56. package/src/contracts/callSpread/payoffHandler.d.ts.map +1 -1
  57. package/src/contracts/callSpread/payoffHandler.js +0 -1
  58. package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -1
  59. package/src/contracts/callSpread/pricedCallSpread.js +1 -3
  60. package/src/contracts/coveredCall-durable.d.ts.map +1 -1
  61. package/src/contracts/coveredCall-durable.js +1 -2
  62. package/src/contracts/coveredCall.d.ts.map +1 -1
  63. package/src/contracts/coveredCall.js +1 -2
  64. package/src/contracts/loan/borrow.js +1 -1
  65. package/src/contracts/loan/close.js +1 -1
  66. package/src/contracts/loan/scheduleLiquidation.d.ts.map +1 -1
  67. package/src/contracts/loan/scheduleLiquidation.js +0 -1
  68. package/src/contracts/loan/updateDebt.js +3 -3
  69. package/src/contracts/mintAndSellNFT.js +1 -1
  70. package/src/contracts/oracle.d.ts.map +1 -1
  71. package/src/contracts/oracle.js +1 -2
  72. package/src/contracts/otcDesk.js +1 -1
  73. package/src/contracts/priceAggregator.d.ts.map +1 -1
  74. package/src/contracts/priceAggregator.js +3 -4
  75. package/src/contracts/sellItems.d.ts.map +1 -1
  76. package/src/contracts/sellItems.js +1 -3
  77. package/src/contracts/valueVow.contract.d.ts +17 -0
  78. package/src/contracts/valueVow.contract.d.ts.map +1 -0
  79. package/src/contracts/valueVow.contract.js +63 -0
  80. package/src/instanceRecordStorage.d.ts.map +1 -1
  81. package/src/instanceRecordStorage.js +2 -5
  82. package/src/issuerRecord.js +1 -1
  83. package/src/issuerStorage.d.ts.map +1 -1
  84. package/src/issuerStorage.js +5 -4
  85. package/src/makeHandle.d.ts.map +1 -1
  86. package/src/makeHandle.js +1 -3
  87. package/src/typeGuards.d.ts +10 -8
  88. package/src/typeGuards.d.ts.map +1 -1
  89. package/src/typeGuards.js +7 -12
  90. package/src/zoeService/createZCFVat.js +1 -1
  91. package/src/zoeService/escrowStorage.js +3 -3
  92. package/src/zoeService/feeMint.d.ts.map +1 -1
  93. package/src/zoeService/feeMint.js +1 -2
  94. package/src/zoeService/installationStorage.d.ts.map +1 -1
  95. package/src/zoeService/installationStorage.js +1 -3
  96. package/src/zoeService/instanceAdminStorage.d.ts.map +1 -1
  97. package/src/zoeService/instanceAdminStorage.js +7 -9
  98. package/src/zoeService/internal-types.d.ts +1 -1
  99. package/src/zoeService/internal-types.d.ts.map +1 -1
  100. package/src/zoeService/internal-types.js +0 -1
  101. package/src/zoeService/invitationQueries.js +3 -3
  102. package/src/zoeService/makeInvitation.js +1 -1
  103. package/src/zoeService/offer/burnInvitation.d.ts.map +1 -1
  104. package/src/zoeService/offer/burnInvitation.js +3 -5
  105. package/src/zoeService/offer/offer.d.ts.map +1 -1
  106. package/src/zoeService/offer/offer.js +1 -2
  107. package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
  108. package/src/zoeService/originalZoeSeat.js +1 -3
  109. package/src/zoeService/startInstance.d.ts.map +1 -1
  110. package/src/zoeService/startInstance.js +1 -9
  111. package/src/zoeService/utils.d.ts +3 -2
  112. package/src/zoeService/utils.test-d.ts +6 -5
  113. package/src/zoeService/zoe.d.ts +3 -2
  114. package/src/zoeService/zoe.d.ts.map +1 -1
  115. package/src/zoeService/zoe.js +54 -52
  116. package/src/zoeService/zoeSeat.d.ts.map +1 -1
  117. package/src/zoeService/zoeSeat.js +1 -3
  118. package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
  119. package/src/zoeService/zoeStorageManager.js +0 -1
  120. package/tools/fakePriceAuthority.d.ts.map +1 -1
  121. package/tools/fakePriceAuthority.js +5 -4
  122. package/tools/fakeVatAdmin.d.ts.map +1 -1
  123. package/tools/fakeVatAdmin.js +10 -9
  124. package/tools/manualPriceAuthority.d.ts.map +1 -1
  125. package/tools/manualPriceAuthority.js +0 -1
  126. package/tools/manualTimer.d.ts.map +1 -1
  127. package/tools/manualTimer.js +1 -2
  128. package/tools/scriptedPriceAuthority.d.ts.map +1 -1
  129. package/tools/scriptedPriceAuthority.js +0 -1
  130. package/tools/setup-zoe.d.ts +3 -3
  131. package/tools/setup-zoe.d.ts.map +1 -1
  132. package/tools/setup-zoe.js +1 -0
@@ -1,3 +1,4 @@
1
+ import { E } from '@endo/far';
1
2
  import type { StartedInstanceKit } from './utils';
2
3
 
3
4
  const someContractStartFn = (
@@ -10,24 +11,24 @@ type PsmInstanceKit = StartedInstanceKit<typeof someContractStartFn>;
10
11
  const psmInstanceKit: PsmInstanceKit = null as any;
11
12
 
12
13
  // @ts-expect-error missing privateArgs argument
13
- void psmInstanceKit.adminFacet.restartContract();
14
+ void E(psmInstanceKit.adminFacet).restartContract();
14
15
 
15
16
  const partial = {
16
17
  someNumber: 1,
17
18
  };
18
19
  // @ts-expect-error missing member of privateArgs argument
19
- void psmInstanceKit.adminFacet.restartContract(partial);
20
+ void E(psmInstanceKit.adminFacet).restartContract(partial);
20
21
 
21
22
  // valid privateArgs now with 'marshaller'
22
- void psmInstanceKit.adminFacet.restartContract({
23
+ void E(psmInstanceKit.adminFacet).restartContract({
23
24
  ...partial,
24
25
  someString: 'str',
25
26
  });
26
27
 
27
28
  // @ts-expect-error missing member of privateArgs argument
28
- void psmInstanceKit.adminFacet.upgradeContract('whatever', partial);
29
+ void E(psmInstanceKit.adminFacet).upgradeContract('whatever', partial);
29
30
  // valid privateArgs now with 'marshaller'
30
- void psmInstanceKit.adminFacet.upgradeContract('whatever', {
31
+ void E(psmInstanceKit.adminFacet).upgradeContract('whatever', {
31
32
  ...partial,
32
33
  someString: 'str',
33
34
  });
@@ -1,4 +1,5 @@
1
1
  export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
2
+ /** @import {Baggage} from '@agoric/vat-data' */
2
3
  /**
3
4
  * Create a durable instance of Zoe.
4
5
  *
@@ -20,7 +21,7 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
20
21
  feeIssuerConfig?: FeeIssuerConfig | undefined;
21
22
  zcfSpec?: ZCFSpec | undefined;
22
23
  }): {
23
- zoeService: ZoeService;
24
+ zoeService: import("@endo/exo").Guarded<ZoeService>;
24
25
  zoeConfigFacet: import("@endo/exo").Guarded<{
25
26
  updateZcfBundleId(bundleId: any): void;
26
27
  }>;
@@ -45,7 +46,7 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
45
46
  * @param {ZCFSpec} [zcfSpec] - Pointer to the contract facet bundle.
46
47
  */
47
48
  export function makeZoeKit(vatAdminSvc?: VatAdminSvc | Promise<VatAdminSvc> | undefined, shutdownZoeVat?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined, feeIssuerConfig?: FeeIssuerConfig | undefined, zcfSpec?: ZCFSpec | undefined): {
48
- zoeService: ZoeService;
49
+ zoeService: import("@endo/exo").Guarded<ZoeService>;
49
50
  zoeConfigFacet: import("@endo/exo").Guarded<{
50
51
  updateZcfBundleId(bundleId: any): void;
51
52
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":"qBAiSa,UAAU,CAAC,OAAO,iBAAiB,CAAC;AA/PjD;;;;;;;;;;;;;GAaG;AACH,0GAVG;IAAyB,UAAU,EAA3B,OAAO;IACsC,WAAW;IAGK,cAAc;IAGjD,eAAe;IACvB,OAAO;CACnC;;;;;IA8MG,4BAA4B;mBAAjB,aAAa;;EAK3B;AAED;;;;;;;;;;;;;;;GAeG;AACH;;;;;IAvBI,4BAA4B;mBAAjB,aAAa;;EA8BxB;6BA7PuB,kBAAkB"}
1
+ {"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":"qBAmSa,UAAU,CAAC,OAAO,iBAAiB,CAAC;AArQjD,gDAAgD;AAEhD;;;;;;;;;;;;;GAaG;AACH,0GAVG;IAAyB,UAAU,EAA3B,OAAO;IACsC,WAAW;IAGK,cAAc;IAGjD,eAAe;IACvB,OAAO;CACnC;;;;;IAkNG,4BAA4B;mBAAjB,aAAa;;EAK3B;AAED;;;;;;;;;;;;;;;GAeG;AACH;;;;;IAvBI,4BAA4B;mBAAjB,aAAa;;EA8BxB;6BA/PuB,kBAAkB"}
@@ -1,5 +1,4 @@
1
1
  // @jessie-check
2
- /* eslint @typescript-eslint/no-floating-promises: "warn" */
3
2
 
4
3
  /**
5
4
  * Zoe uses ERTP, the Electronic Rights Transfer Protocol
@@ -20,6 +19,7 @@ import { Far } from '@endo/marshal';
20
19
  import { makeScalarBigMapStore, prepareExo } from '@agoric/vat-data';
21
20
  import { M } from '@agoric/store';
22
21
 
22
+ import { Fail } from '@endo/errors';
23
23
  import { makeZoeStorageManager } from './zoeStorageManager.js';
24
24
  import { makeStartInstance } from './startInstance.js';
25
25
  import { makeOfferMethod } from './offer/offer.js';
@@ -30,8 +30,6 @@ import { ZoeServiceI } from '../typeGuards.js';
30
30
 
31
31
  /** @import {Baggage} from '@agoric/vat-data' */
32
32
 
33
- const { Fail } = assert;
34
-
35
33
  /**
36
34
  * Create a durable instance of Zoe.
37
35
  *
@@ -195,58 +193,62 @@ const makeDurableZoeKit = ({
195
193
  },
196
194
  });
197
195
 
198
- /** @type {ZoeService} */
199
- const zoeService = prepareExo(zoeBaggage, 'ZoeService', ZoeServiceI, {
200
- install(bundleId, bundleLabel) {
201
- return dataAccess.installBundle(bundleId, bundleLabel);
202
- },
203
- installBundleID(bundleId, bundleLabel) {
204
- return dataAccess.installBundleID(bundleId, bundleLabel);
205
- },
206
- startInstance,
207
- offer,
196
+ const zoeService = prepareExo(
197
+ zoeBaggage,
198
+ 'ZoeService',
199
+ ZoeServiceI,
200
+ /** @type {ZoeService} */ ({
201
+ install(bundleId, bundleLabel) {
202
+ return dataAccess.installBundle(bundleId, bundleLabel);
203
+ },
204
+ installBundleID(bundleId, bundleLabel) {
205
+ return dataAccess.installBundleID(bundleId, bundleLabel);
206
+ },
207
+ startInstance,
208
+ offer,
208
209
 
209
- // The functions below are getters only and have no impact on
210
- // state within Zoe
211
- getOfferFilter(instance) {
212
- return dataAccess.getOfferFilter(instance);
213
- },
214
- async getInvitationIssuer() {
215
- return dataAccess.getInvitationIssuer();
216
- },
217
- async getFeeIssuer() {
218
- return feeMintKit.feeMint.getFeeIssuer();
219
- },
210
+ // The functions below are getters only and have no impact on
211
+ // state within Zoe
212
+ getOfferFilter(instance) {
213
+ return dataAccess.getOfferFilter(instance);
214
+ },
215
+ async getInvitationIssuer() {
216
+ return dataAccess.getInvitationIssuer();
217
+ },
218
+ async getFeeIssuer() {
219
+ return feeMintKit.feeMint.getFeeIssuer();
220
+ },
220
221
 
221
- getBrands(instance) {
222
- return dataAccess.getBrands(instance);
223
- },
224
- getIssuers(instance) {
225
- return dataAccess.getIssuers(instance);
226
- },
227
- getPublicFacet(instance) {
228
- return dataAccess.getPublicFacet(instance);
229
- },
230
- getTerms(instance) {
231
- return dataAccess.getTerms(instance);
232
- },
233
- getInstallationForInstance(instance) {
234
- return dataAccess.getInstallation(instance);
235
- },
236
- getBundleIDFromInstallation(installation) {
237
- return dataAccess.getBundleIDFromInstallation(installation);
238
- },
239
- getInstallation,
222
+ getBrands(instance) {
223
+ return dataAccess.getBrands(instance);
224
+ },
225
+ getIssuers(instance) {
226
+ return dataAccess.getIssuers(instance);
227
+ },
228
+ getPublicFacet(instance) {
229
+ return dataAccess.getPublicFacet(instance);
230
+ },
231
+ getTerms(instance) {
232
+ return dataAccess.getTerms(instance);
233
+ },
234
+ getInstallationForInstance(instance) {
235
+ return dataAccess.getInstallation(instance);
236
+ },
237
+ getBundleIDFromInstallation(installation) {
238
+ return dataAccess.getBundleIDFromInstallation(installation);
239
+ },
240
+ getInstallation,
240
241
 
241
- getInstance(invitation) {
242
- return getInstance(invitation);
243
- },
244
- getConfiguration,
245
- getInvitationDetails,
246
- getProposalShapeForInvitation(invitation) {
247
- return dataAccess.getProposalShapeForInvitation(invitation);
248
- },
249
- });
242
+ getInstance(invitation) {
243
+ return getInstance(invitation);
244
+ },
245
+ getConfiguration,
246
+ getInvitationDetails,
247
+ getProposalShapeForInvitation(invitation) {
248
+ return dataAccess.getProposalShapeForInvitation(invitation);
249
+ },
250
+ }),
251
+ );
250
252
 
251
253
  return harden({
252
254
  zoeService,
@@ -1 +1 @@
1
- {"version":3,"file":"zoeSeat.d.ts","sourceRoot":"","sources":["zoeSeat.js"],"names":[],"mappings":"AAoDO,iDAFI,OAAO,kBAAkB,EAAE,OAAO,uBAwWhC,UAAU,YACV,cAAc,uBACd,mBAAmB,iBACnB,aAAa;;;;;;;;;;;;;;;;QAzIlB,wCAAwC;8DAA5B,iBAAiB;;;;;;;EAoKpC"}
1
+ {"version":3,"file":"zoeSeat.d.ts","sourceRoot":"","sources":["zoeSeat.js"],"names":[],"mappings":"AAkDO,iDAFI,OAAO,kBAAkB,EAAE,OAAO,uBAwWhC,UAAU,YACV,cAAc,uBACd,mBAAmB,iBACnB,aAAa;;;;;;;;;;;;;;;;QAzIlB,wCAAwC;8DAA5B,iBAAiB;;;;;;;EAoKpC"}
@@ -1,4 +1,4 @@
1
- /* eslint @typescript-eslint/no-floating-promises: "warn" */
1
+ import { Fail } from '@endo/errors';
2
2
  import { prepareDurablePublishKit } from '@agoric/notifier';
3
3
  import { E } from '@endo/eventual-send';
4
4
  import { M, prepareExoClassKit } from '@agoric/vat-data';
@@ -15,8 +15,6 @@ import {
15
15
  coreUserSeatMethods,
16
16
  } from './originalZoeSeat.js';
17
17
 
18
- const { Fail } = assert;
19
-
20
18
  // ZoeSeatAdmin has the implementation of coreUserSeatMethods, but ZoeUserSeat
21
19
  // is the facet shared with users. The latter transparently forwards to the
22
20
  // former.
@@ -1 +1 @@
1
- {"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"AAwDO,oDAXI,YAAY,qBAEZ,iBAAiB,kBACjB,OAAO,sBAAsB,EAAE,mBAAmB,WAClD;IACV,eAAoB,EAAE,eAAe,CAAC;IACtC,YAAiB,EAAE,MAAM,MAAM,CAAC;IAChC,WAAgB,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;QAgaV,iCAAiC;;kBA5aW,CAAC;qBAC3B,CAAC;oBAA0B,CAAC;;;;;;;GAubrD;6BAnc0B,kBAAkB"}
1
+ {"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"AAwDO,oDAXI,YAAY,qBAEZ,iBAAiB,kBACjB,OAAO,sBAAsB,EAAE,mBAAmB,WAClD;IACV,eAAoB,EAAE,eAAe,CAAC;IACtC,YAAiB,EAAE,MAAM,MAAM,CAAC;IAChC,WAAgB,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;QA+ZV,iCAAiC;;kBA3aW,CAAC;qBAC3B,CAAC;oBAA0B,CAAC;;;;;;;GAsbrD;6BAlc0B,kBAAkB"}
@@ -352,7 +352,6 @@ export const makeZoeStorageManager = (
352
352
 
353
353
  /** @type {MakeZoeInstanceStorageManager} */
354
354
  const makeZoeInstanceStorageManager = async (
355
- instanceBaggage,
356
355
  installation,
357
356
  customTerms,
358
357
  uncleanIssuerKeywordRecord,
@@ -1 +1 @@
1
- {"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,gDAHW,yBAAyB,GACvB,OAAO,CAAC,cAAc,CAAC,CAwSnC;;mBAvTa,KAAK,CAAC,KAAK,CAAC;oBACZ,KAAK,CAAC,KAAK,CAAC;;;WAGZ,OAAO,cAAc,EAAE,YAAY;;;;;oCAjB4C,4BAA4B"}
1
+ {"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,gDAHW,yBAAyB,GACvB,OAAO,CAAC,cAAc,CAAC,CAwSnC;;mBAvTa,KAAK,CAAC,KAAK,CAAC;oBACZ,KAAK,CAAC,KAAK,CAAC;;;WAGZ,OAAO,cAAc,EAAE,YAAY;;;;;oCAhB4C,4BAA4B"}
@@ -1,11 +1,13 @@
1
- import { makeIssuerKit, AssetKind, AmountMath } from '@agoric/ertp';
1
+ import { Fail } from '@endo/errors';
2
2
  import { makePromiseKit } from '@endo/promise-kit';
3
+ import { E } from '@endo/eventual-send';
4
+ import { Far } from '@endo/marshal';
5
+
6
+ import { makeIssuerKit, AssetKind, AmountMath } from '@agoric/ertp';
3
7
  import {
4
8
  makeNotifierKit,
5
9
  makeNotifierFromAsyncIterable,
6
10
  } from '@agoric/notifier';
7
- import { E } from '@endo/eventual-send';
8
- import { Far } from '@endo/marshal';
9
11
  import { TimeMath } from '@agoric/time';
10
12
 
11
13
  import { natSafeMath } from '../src/contractSupport/index.js';
@@ -14,7 +16,6 @@ import { natSafeMath } from '../src/contractSupport/index.js';
14
16
  * @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
15
17
  */
16
18
 
17
- const { Fail } = assert;
18
19
  const { coerceRelativeTimeRecord } = TimeMath;
19
20
 
20
21
  // 'if (a >= b)' becomes 'if (timestampGTE(a,b))'
@@ -1 +1 @@
1
- {"version":3,"file":"fakeVatAdmin.d.ts","sourceRoot":"","sources":["fakeVatAdmin.js"],"names":[],"mappings":"AAsBA,+BAA4C;;uBAR7B,OAAO,sBAAsB,EAAE,QAAQ;kCACvC,OAAO,sBAAsB,EAAE,mBAAmB;wBAGlD,OAAO,sBAAsB,EAAE,SAAS;AAmJvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA8C;AA7I9C;;;GAGG;AACH,0EAHwB,OAAO,iCAChB,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoIjC"}
1
+ {"version":3,"file":"fakeVatAdmin.d.ts","sourceRoot":"","sources":["fakeVatAdmin.js"],"names":[],"mappings":"AAsBA,+BAA4C;;uBAR7B,OAAO,sBAAsB,EAAE,QAAQ;kCACvC,OAAO,sBAAsB,EAAE,mBAAmB;wBAGlD,OAAO,sBAAsB,EAAE,SAAS;AAoJvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA8C;AA9I9C;;;GAGG;AACH,0EAHwB,OAAO,iCAChB,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqIjC"}
@@ -1,6 +1,6 @@
1
1
  // @jessie-check
2
2
 
3
- import { Fail } from '@agoric/assert';
3
+ import { Fail } from '@endo/errors';
4
4
  import { E } from '@endo/eventual-send';
5
5
  import { makePromiseKit } from '@endo/promise-kit';
6
6
  import { Far } from '@endo/marshal';
@@ -103,15 +103,16 @@ function makeFakeVatAdmin(testContextSetter = undefined, makeRemote = x => x) {
103
103
  // buildRootObject: vp => ns.buildRootObject(vpow, vp, vatBaggage),
104
104
  // }),
105
105
  // );
106
- return Promise.resolve(
106
+ const rootP = makeRemote(
107
+ E(evalContractBundle(zcfBundle)).buildRootObject(
108
+ vpow,
109
+ vatParameters,
110
+ vatBaggage,
111
+ ),
112
+ );
113
+ return E.when(rootP, root =>
107
114
  harden({
108
- root: makeRemote(
109
- E(evalContractBundle(zcfBundle)).buildRootObject(
110
- vpow,
111
- vatParameters,
112
- vatBaggage,
113
- ),
114
- ),
115
+ root,
115
116
  adminNode: Far('adminNode', {
116
117
  done: () => {
117
118
  return exitKit.promise;
@@ -1 +1 @@
1
- {"version":3,"file":"manualPriceAuthority.d.ts","sourceRoot":"","sources":["manualPriceAuthority.js"],"names":[],"mappings":"AAaA;;GAEG;AAEH;;;;;;;;GAQG;AACH,kDAPG;IAA8B,aAAa,EAAnC,KAAK,CAAC,KAAK,CAAC;IACU,cAAc,EAApC,KAAK,CAAC,KAAK,CAAC;IACG,YAAY,EAA3B,KAAK;IACwC,KAAK,EAAlD,OAAO,cAAc,EAAE,YAAY;IACR,cAAc;CACjD,GAAU,cAAc,GAAG;IAAE,QAAQ,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CA8E/E;mCACa,UAAU,CAAC,OAAO,wBAAwB,CAAC;oCAzFoC,4BAA4B"}
1
+ {"version":3,"file":"manualPriceAuthority.d.ts","sourceRoot":"","sources":["manualPriceAuthority.js"],"names":[],"mappings":"AAYA;;GAEG;AAEH;;;;;;;;GAQG;AACH,kDAPG;IAA8B,aAAa,EAAnC,KAAK,CAAC,KAAK,CAAC;IACU,cAAc,EAApC,KAAK,CAAC,KAAK,CAAC;IACG,YAAY,EAA3B,KAAK;IACwC,KAAK,EAAlD,OAAO,cAAc,EAAE,YAAY;IACR,cAAc;CACjD,GAAU,cAAc,GAAG;IAAE,QAAQ,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CA8E/E;mCACa,UAAU,CAAC,OAAO,wBAAwB,CAAC;oCAzFoC,4BAA4B"}
@@ -1,5 +1,4 @@
1
1
  // @jessie-check
2
- /* eslint @typescript-eslint/no-floating-promises: "warn" */
3
2
 
4
3
  import { AmountMath, makeIssuerKit, AssetKind } from '@agoric/ertp';
5
4
  import { E } from '@endo/eventual-send';
@@ -1 +1 @@
1
- {"version":3,"file":"manualTimer.d.ts","sourceRoot":"","sources":["manualTimer.js"],"names":[],"mappings":"AA0EO,qDANc,GAAG,EAAE,KAAK,IAAI,wHAGtB,cAAc,CAsD1B;;oCA5GY;IACZ,QAAW,CAAC,EAAE,OAAO,cAAc,EAAE,YAAY,GAAG,MAAM,CAAC;IAC3D,kBAAqB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;;;;;;;;UAOU,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;WAItC,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;;6BAG/C,UAAU,CAAC,OAAO,gBAAgB,CAAC,GAAG,eAAe,gBAAgB,EAAE,aAAa,GAAG,gBAAgB,CAAC,GAAG,gBAAgB;iCAhCxG,4CAA4C;mCAI7C,cAAc;oCAEb,qBAAqB"}
1
+ {"version":3,"file":"manualTimer.d.ts","sourceRoot":"","sources":["manualTimer.js"],"names":[],"mappings":"AAyEO,qDANc,GAAG,EAAE,KAAK,IAAI,wHAGtB,cAAc,CAsD1B;;oCA5GY;IACZ,QAAW,CAAC,EAAE,OAAO,cAAc,EAAE,YAAY,GAAG,MAAM,CAAC;IAC3D,kBAAqB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;;;;;;;;UAOU,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;WAItC,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;;6BAG/C,UAAU,CAAC,OAAO,gBAAgB,CAAC,GAAG,eAAe,gBAAgB,EAAE,aAAa,GAAG,gBAAgB,CAAC,GAAG,gBAAgB;iCA9BxG,4CAA4C;mCAI7C,cAAc;oCAEb,qBAAqB"}
@@ -1,3 +1,4 @@
1
+ import { Fail } from '@endo/errors';
1
2
  import { Far } from '@endo/marshal';
2
3
  import { bindAllMethods } from '@agoric/internal';
3
4
  import { buildManualTimer } from '@agoric/swingset-vat/tools/manual-timer.js';
@@ -9,8 +10,6 @@ import { TimeMath } from '@agoric/time';
9
10
  * @import {RemotableBrand} from '@endo/eventual-send';
10
11
  */
11
12
 
12
- const { Fail } = assert;
13
-
14
13
  // we wrap SwingSet's buildManualTimer to accomodate the needs of
15
14
  // zoe's tests
16
15
 
@@ -1 +1 @@
1
- {"version":3,"file":"scriptedPriceAuthority.d.ts","sourceRoot":"","sources":["scriptedPriceAuthority.js"],"names":[],"mappings":"AAWA;;GAEG;AAEH,yEAoFC;oCAvF4F,4BAA4B"}
1
+ {"version":3,"file":"scriptedPriceAuthority.d.ts","sourceRoot":"","sources":["scriptedPriceAuthority.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH,yEAoFC;oCAvF4F,4BAA4B"}
@@ -1,4 +1,3 @@
1
- /* eslint @typescript-eslint/no-floating-promises: "warn" */
2
1
  import { AmountMath, makeIssuerKit, AssetKind } from '@agoric/ertp';
3
2
  import { E } from '@endo/eventual-send';
4
3
  import { Far } from '@endo/marshal';
@@ -1,19 +1,19 @@
1
1
  export function makeZoeKitForTest(vatAdminSvc?: VatAdminSvc | undefined): {
2
- zoeService: ZoeService;
2
+ zoeService: import("@endo/exo").Guarded<ZoeService>;
3
3
  zoeConfigFacet: import("@endo/exo").Guarded<{
4
4
  updateZcfBundleId(bundleId: any): void;
5
5
  }>;
6
6
  feeMintAccess: FeeMintAccess;
7
7
  setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/captp").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
8
8
  };
9
- export function makeZoeForTest(vatAdminSvc?: VatAdminSvc | undefined): ZoeService;
9
+ export function makeZoeForTest(vatAdminSvc?: VatAdminSvc | undefined): import("@endo/exo").Guarded<ZoeService>;
10
10
  export function setUpZoeForTest<T extends unknown = unknown>({ setJig, feeIssuerConfig, vatAdminSvc, useNearRemote, }?: {
11
11
  setJig?: ((jig: T) => void) | undefined;
12
12
  feeIssuerConfig?: FeeIssuerConfig | undefined;
13
13
  vatAdminSvc?: VatAdminSvc | undefined;
14
14
  useNearRemote?: boolean | undefined;
15
15
  }): Promise<{
16
- zoe: ZoeService;
16
+ zoe: import("@endo/exo").Guarded<ZoeService>;
17
17
  feeMintAccessP: FeeMintAccess;
18
18
  bundleAndInstall: (path: string) => Promise<Installation>;
19
19
  vatAdminSvc: VatAdminSvc;
@@ -1 +1 @@
1
- {"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAUO;;;;;;;EAKN;AAKM,kFACoC;AAYpC,gCAPgB,CAAC,uFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;6BA2B9B,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;GAiBnC"}
1
+ {"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAUO;;;;;;;EAKN;AAKM,+GACoC;AAapC,gCAPgB,CAAC,uFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;6BA2B9B,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;GAiBnC"}
@@ -23,6 +23,7 @@ export const makeZoeForTest = vatAdminSvc =>
23
23
 
24
24
  /**
25
25
  * Returns promises for `zoe` and the `feeMintAccess`.
26
+ * Provide testing versions of capabilities for Zoe contracts.
26
27
  *
27
28
  * @template {object} [T=unknown]
28
29
  * @param {object} options