@agoric/zoe 0.27.0-upgrade-20-dev-ef71cfd.0 → 0.27.0-upgrade-21-dev-16519b2.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 (57) hide show
  1. package/bundles/bundle-contractFacet-js-meta.json +257 -252
  2. package/bundles/bundle-contractFacet.js +1 -1
  3. package/package.json +22 -21
  4. package/src/contractFacet/vatRoot.d.ts +1 -1
  5. package/src/contractFacet/vatRoot.d.ts.map +1 -1
  6. package/src/contractFacet/zcfSeat.d.ts +3 -1
  7. package/src/contractFacet/zcfSeat.d.ts.map +1 -1
  8. package/src/contractFacet/zcfSeat.js +5 -3
  9. package/src/contractFacet/zcfZygote.d.ts +2 -3
  10. package/src/contractFacet/zcfZygote.d.ts.map +1 -1
  11. package/src/contractFacet/zcfZygote.js +5 -5
  12. package/src/contractSupport/prepare-ownable.d.ts +1 -1
  13. package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
  14. package/src/contractSupport/prepare-ownable.js +5 -1
  15. package/src/contracts/auction/index.d.ts +2 -2
  16. package/src/contracts/automaticRefund.d.ts +1 -1
  17. package/src/contracts/barterExchange.d.ts +1 -1
  18. package/src/contracts/callSpread/pricedCallSpread.d.ts +1 -1
  19. package/src/contracts/loan/liquidate.d.ts.map +1 -1
  20. package/src/contracts/loan/liquidate.js +5 -1
  21. package/src/contracts/mintPayments.d.ts +2 -2
  22. package/src/contracts/oracle.d.ts +2 -2
  23. package/src/contracts/otcDesk.d.ts +1 -1
  24. package/src/contracts/priceAggregator.d.ts +2 -2
  25. package/src/contracts/simpleExchange.d.ts +1 -1
  26. package/src/instanceRecordStorage.d.ts +3 -1
  27. package/src/instanceRecordStorage.d.ts.map +1 -1
  28. package/src/instanceRecordStorage.js +6 -1
  29. package/src/internal-types.d.ts +21 -16
  30. package/src/internal-types.d.ts.map +1 -1
  31. package/src/internal-types.js +15 -10
  32. package/src/types.d.ts +1 -1
  33. package/src/types.d.ts.map +1 -1
  34. package/src/types.ts +1 -8
  35. package/src/zoeService/escrowStorage.d.ts.map +1 -1
  36. package/src/zoeService/escrowStorage.js +1 -2
  37. package/src/zoeService/feeMint.d.ts +6 -4
  38. package/src/zoeService/feeMint.d.ts.map +1 -1
  39. package/src/zoeService/feeMint.js +5 -3
  40. package/src/zoeService/installationStorage.d.ts.map +1 -1
  41. package/src/zoeService/installationStorage.js +1 -2
  42. package/src/zoeService/makeInvitation.d.ts +4 -2
  43. package/src/zoeService/makeInvitation.d.ts.map +1 -1
  44. package/src/zoeService/makeInvitation.js +6 -3
  45. package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
  46. package/src/zoeService/originalZoeSeat.js +0 -1
  47. package/src/zoeService/startInstance.d.ts.map +1 -1
  48. package/src/zoeService/startInstance.js +2 -2
  49. package/src/zoeService/zoe.d.ts +8 -7
  50. package/src/zoeService/zoe.d.ts.map +1 -1
  51. package/src/zoeService/zoe.js +5 -5
  52. package/src/zoeService/zoeStorageManager.d.ts +1 -1
  53. package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
  54. package/src/zoeService/zoeStorageManager.js +9 -1
  55. package/tools/fakeVatAdmin.d.ts +6 -6
  56. package/tools/scriptedOracle.d.ts +1 -1
  57. package/tools/setup-zoe.d.ts +1 -1
package/src/types.ts CHANGED
@@ -1,12 +1,5 @@
1
- import type {
2
- Issuer,
3
- Brand,
4
- AssetKind,
5
- DisplayInfo,
6
- AnyAmount,
7
- } from '@agoric/ertp';
1
+ import type { Brand, Issuer } from '@agoric/ertp';
8
2
  import type { RemotableObject } from '@endo/pass-style';
9
- import type { Key } from '@endo/patterns';
10
3
 
11
4
  /**
12
5
  * Alias for RemotableObject
@@ -1 +1 @@
1
- {"version":3,"file":"escrowStorage.d.ts","sourceRoot":"","sources":["escrowStorage.js"],"names":[],"mappings":"AAqBO,8CAFI,OAAO,kBAAkB,EAAE,OAAO;;;;;EA8G5C"}
1
+ {"version":3,"file":"escrowStorage.d.ts","sourceRoot":"","sources":["escrowStorage.js"],"names":[],"mappings":"AAoBO,8CAFI,OAAO,kBAAkB,EAAE,OAAO;;;;;EA8G5C"}
@@ -5,12 +5,11 @@ import { deeplyFulfilledObject, objectMap } from '@agoric/internal';
5
5
  import { provideDurableWeakMapStore } from '@agoric/vat-data';
6
6
 
7
7
  /// <reference path="./types.js" />
8
- import './internal-types.js';
9
8
 
10
9
  import { cleanKeywords } from '../cleanProposal.js';
11
10
 
12
11
  /**
13
- * @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
12
+ * @import {WeakMapStore} from '@agoric/store';
14
13
  */
15
14
 
16
15
  /**
@@ -8,11 +8,11 @@ export namespace defaultFeeIssuerConfig {
8
8
  }
9
9
  }
10
10
  /**
11
- * @param {import('@agoric/vat-data').Baggage} zoeBaggage
11
+ * @param {Baggage} zoeBaggage
12
12
  * @param {FeeIssuerConfig} feeIssuerConfig
13
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure} shutdownZoeVat
13
+ * @param {ShutdownWithFailure} shutdownZoeVat
14
14
  */
15
- export function prepareFeeMint(zoeBaggage: import("@agoric/vat-data").Baggage, feeIssuerConfig: FeeIssuerConfig, shutdownZoeVat: import("@agoric/swingset-vat").ShutdownWithFailure): import("@endo/exo").GuardedKit<{
15
+ export function prepareFeeMint(zoeBaggage: Baggage, feeIssuerConfig: FeeIssuerConfig, shutdownZoeVat: ShutdownWithFailure): import("@endo/exo").GuardedKit<{
16
16
  feeMint: {
17
17
  getFeeIssuerKit(allegedFeeMintAccess: any): globalThis.IssuerKit<"nat">;
18
18
  getFeeIssuer(): globalThis.Issuer<"nat", import("@endo/patterns").Key>;
@@ -20,5 +20,7 @@ export function prepareFeeMint(zoeBaggage: import("@agoric/vat-data").Baggage, f
20
20
  };
21
21
  feeMintAccess: {};
22
22
  }>;
23
- import type { FeeIssuerConfig } from '@agoric/zoe';
23
+ import type { Baggage } from '@agoric/vat-data';
24
+ import type { FeeIssuerConfig } from './types.js';
25
+ import type { ShutdownWithFailure } from '@agoric/swingset-vat';
24
26
  //# sourceMappingURL=feeMint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feeMint.d.ts","sourceRoot":"","sources":["feeMint.js"],"names":[],"mappings":";;;;;;;;;AA+BA;;;;GAIG;AACH,2CAJW,OAAO,kBAAkB,EAAE,OAAO,mBAClC,eAAe,kBACf,OAAO,sBAAsB,EAAE,mBAAmB;;;;;;;GA2D5D;qCA5E6C,aAAa"}
1
+ {"version":3,"file":"feeMint.d.ts","sourceRoot":"","sources":["feeMint.js"],"names":[],"mappings":";;;;;;;;;AAiCA;;;;GAIG;AACH,2CAJW,OAAO,mBACP,eAAe,kBACf,mBAAmB;;;;;;;GA2D7B;6BA9EyB,kBAAkB;qCAEV,YAAY;yCADR,sBAAsB"}
@@ -15,7 +15,9 @@ import { Fail, q } from '@endo/errors';
15
15
  import { FeeMintAccessShape } from '../typeGuards.js';
16
16
 
17
17
  /**
18
- * @import {FeeIssuerConfig, ZoeService} from '@agoric/zoe';
18
+ * @import {Baggage} from '@agoric/vat-data';
19
+ * @import {ShutdownWithFailure} from '@agoric/swingset-vat';
20
+ * @import {FeeIssuerConfig} from './types.js';
19
21
  */
20
22
 
21
23
  /** @deprecated Redundant. Just omit it. */
@@ -30,9 +32,9 @@ export const defaultFeeIssuerConfig = harden(
30
32
  );
31
33
 
32
34
  /**
33
- * @param {import('@agoric/vat-data').Baggage} zoeBaggage
35
+ * @param {Baggage} zoeBaggage
34
36
  * @param {FeeIssuerConfig} feeIssuerConfig
35
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure} shutdownZoeVat
37
+ * @param {ShutdownWithFailure} shutdownZoeVat
36
38
  */
37
39
  const prepareFeeMint = (zoeBaggage, feeIssuerConfig, shutdownZoeVat) => {
38
40
  const mintBaggage = provideDurableMapStore(zoeBaggage, 'mintBaggage');
@@ -1 +1 @@
1
- {"version":3,"file":"installationStorage.d.ts","sourceRoot":"","sources":["installationStorage.js"],"names":[],"mappings":"AAwBO,2DAHI,iBAAiB,cACjB,OAAO;;;;;;;;;;;;;;;GA0IjB;6BAnJyB,4BAA4B;kCAIvB,aAAa"}
1
+ {"version":3,"file":"installationStorage.d.ts","sourceRoot":"","sources":["installationStorage.js"],"names":[],"mappings":"AAuBO,2DAHI,iBAAiB,cACjB,OAAO;;;;;;;;;;;;;;;GA0IjB;6BAlJyB,4BAA4B;kCAGvB,aAAa"}
@@ -12,8 +12,7 @@ import {
12
12
 
13
13
  /**
14
14
  * @import {Baggage} from '@agoric/swingset-liveslots';
15
- * @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
16
- * @import {MapStore} from '@agoric/swingset-liveslots';
15
+ * @import {WeakMapStore} from '@agoric/store';
17
16
  * @import {BundleID, BundleCap} from '@agoric/swingset-vat';
18
17
  * @import {SourceBundle} from '@agoric/zoe';
19
18
  */
@@ -1,6 +1,8 @@
1
- export function prepareInvitationKit(baggage: import("@agoric/vat-data").Baggage, shutdownZoeVat?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined): {
1
+ export function prepareInvitationKit(baggage: Baggage, shutdownZoeVat?: ShutdownWithFailure | undefined): {
2
2
  invitationIssuer: globalThis.Issuer<"set", InvitationDetails>;
3
3
  invitationKit: globalThis.IssuerKit<"set", InvitationDetails>;
4
4
  };
5
- import type { InvitationDetails } from '@agoric/zoe';
5
+ import type { Baggage } from '@agoric/vat-data';
6
+ import type { ShutdownWithFailure } from '@agoric/swingset-vat';
7
+ import type { InvitationDetails } from '../types-index.js';
6
8
  //# sourceMappingURL=makeInvitation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"makeInvitation.d.ts","sourceRoot":"","sources":["makeInvitation.js"],"names":[],"mappings":"AAmBO,8CAHI,OAAO,kBAAkB,EAAE,OAAO,mBAClC,OAAO,sBAAsB,EAAE,mBAAmB,GAAG,SAAS;;;EA+BxE;uCAzCoD,aAAa"}
1
+ {"version":3,"file":"makeInvitation.d.ts","sourceRoot":"","sources":["makeInvitation.js"],"names":[],"mappings":"AAsBO,8CAHI,OAAO,mBACP,mBAAmB,GAAG,SAAS;;;EA+BzC;6BA3CyB,kBAAkB;yCACN,sBAAsB;uCACxB,mBAAmB"}
@@ -4,8 +4,11 @@ import { Fail, q } from '@endo/errors';
4
4
  import { provideDurableMapStore } from '@agoric/vat-data';
5
5
  import { AssetKind, hasIssuer, prepareIssuerKit } from '@agoric/ertp';
6
6
  import { InvitationElementShape } from '../typeGuards.js';
7
+
7
8
  /**
8
- * @import {FeeIssuerConfig, InvitationDetails} from '@agoric/zoe';
9
+ * @import {Baggage} from '@agoric/vat-data';
10
+ * @import {ShutdownWithFailure} from '@agoric/swingset-vat';
11
+ * @import {InvitationDetails} from '../types-index.js';
9
12
  */
10
13
 
11
14
  /**
@@ -14,8 +17,8 @@ import { InvitationElementShape } from '../typeGuards.js';
14
17
  const ZOE_INVITATION_KIT = 'ZoeInvitationKit';
15
18
 
16
19
  /**
17
- * @param {import('@agoric/vat-data').Baggage} baggage
18
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure | undefined} shutdownZoeVat
20
+ * @param {Baggage} baggage
21
+ * @param {ShutdownWithFailure | undefined} shutdownZoeVat
19
22
  */
20
23
  export const prepareInvitationKit = (baggage, shutdownZoeVat = undefined) => {
21
24
  const invitationKitBaggage = provideDurableMapStore(
@@ -1 +1 @@
1
- {"version":3,"file":"originalZoeSeat.d.ts","sourceRoot":"","sources":["originalZoeSeat.js"],"names":[],"mappings":";;;;;;;;;;AA4BA;;;;;;;;;;GAGG;;;;;;;;;;;;AA+CI,oDAHI,OAAO,kBAAkB,EAAE,OAAO,yBAClC,MAAM,UAAU,CAAC,GAAG,CAAC,QAoR/B"}
1
+ {"version":3,"file":"originalZoeSeat.d.ts","sourceRoot":"","sources":["originalZoeSeat.js"],"names":[],"mappings":";;;;;;;;;;AA2BA;;;;;;;;;;GAGG;;;;;;;;;;;;AA+CI,oDAHI,OAAO,kBAAkB,EAAE,OAAO,yBAClC,MAAM,UAAU,CAAC,GAAG,CAAC,QAoR/B"}
@@ -7,7 +7,6 @@ import { makePromiseKit } from '@endo/promise-kit';
7
7
  import { NonNullish } from '@agoric/internal';
8
8
 
9
9
  import { satisfiesWant } from '../contractFacet/offerSafety.js';
10
- import '../internal-types.js';
11
10
  import {
12
11
  AmountKeywordRecordShape,
13
12
  ExitObjectShape,
@@ -1 +1 @@
1
- {"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AAkCO,uDANI,IAAI,CAAC,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,IAAI,CAAC,SAAS,CAAC,uBACrB,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,cACzB,OAAO,GACL,OAAO,YAAY,EAAE,aAAa,CAqW9C;+BA7WgD,sBAAsB;6BAF7C,kBAAkB"}
1
+ {"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AAkCO,uDANI,IAAI,CAAC,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,IAAI,CAAC,SAAS,CAAC,uBACrB,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,cACzB,OAAO,GACL,OAAO,YAAY,EAAE,aAAa,CAqW9C;+BA7W2B,sBAAsB;6BAFxB,kBAAkB"}
@@ -21,8 +21,8 @@ import {
21
21
 
22
22
  /**
23
23
  * @import {Baggage} from '@agoric/vat-data';
24
- * @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
25
- * @import {BundleCap, EndoZipBase64Bundle} from '@agoric/swingset-vat';
24
+ * @import {WeakMapStore} from '@agoric/store';
25
+ * @import {BundleCap} from '@agoric/swingset-vat';
26
26
  */
27
27
 
28
28
  /**
@@ -1,7 +1,7 @@
1
1
  export * from "../types-index.js";
2
2
  export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
3
3
  /**
4
- * @import {VatAdminSvc} from '@agoric/swingset-vat';
4
+ * @import {VatAdminSvc, ShutdownWithFailure} from '@agoric/swingset-vat';
5
5
  * @import {Baggage} from '@agoric/vat-data';
6
6
  * @import {FeeIssuerConfig, FeeMintAccess, ZCFSpec, ZoeService} from './types.js';
7
7
  */
@@ -13,7 +13,7 @@ export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
13
13
  * @param {Promise<VatAdminSvc> | VatAdminSvc} [options.vatAdminSvc] - The vatAdmin Service, which carries the
14
14
  * power to create a new vat. If it's not available when makeZoe() is called, it
15
15
  * must be provided later using setVatAdminService().
16
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure} [options.shutdownZoeVat] - a function to
16
+ * @param {ShutdownWithFailure} [options.shutdownZoeVat] - a function to
17
17
  * shutdown the Zoe Vat. This function needs to use the vatPowers
18
18
  * available to a vat.
19
19
  * @param {FeeIssuerConfig} [options.feeIssuerConfig]
@@ -22,7 +22,7 @@ export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
22
22
  export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, feeIssuerConfig, zcfSpec, }: {
23
23
  zoeBaggage: Baggage;
24
24
  vatAdminSvc?: VatAdminSvc | Promise<VatAdminSvc> | undefined;
25
- shutdownZoeVat?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined;
25
+ shutdownZoeVat?: ShutdownWithFailure | undefined;
26
26
  feeIssuerConfig?: FeeIssuerConfig | undefined;
27
27
  zcfSpec?: ZCFSpec | undefined;
28
28
  }): {
@@ -32,7 +32,7 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
32
32
  }>;
33
33
  /** @type {FeeMintAccess} */
34
34
  feeMintAccess: FeeMintAccess;
35
- setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
35
+ setVatAdminService: ((lateVatAdminSvc: any) => void) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
36
36
  };
37
37
  /**
38
38
  * @deprecated
@@ -44,23 +44,24 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
44
44
  * @param {Promise<VatAdminSvc> | VatAdminSvc} [vatAdminSvc] - The vatAdmin Service, which carries the
45
45
  * power to create a new vat. If it's not available when makeZoe() is called, it
46
46
  * must be provided later using setVatAdminService().
47
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure} [shutdownZoeVat] - a function to
47
+ * @param {ShutdownWithFailure} [shutdownZoeVat] - a function to
48
48
  * shutdown the Zoe Vat. This function needs to use the vatPowers
49
49
  * available to a vat.
50
50
  * @param {FeeIssuerConfig} [feeIssuerConfig]
51
51
  * @param {ZCFSpec} [zcfSpec] - Pointer to the contract facet bundle.
52
52
  */
53
- export function makeZoeKit(vatAdminSvc?: Promise<VatAdminSvc> | VatAdminSvc, shutdownZoeVat?: import("@agoric/swingset-vat").ShutdownWithFailure, feeIssuerConfig?: FeeIssuerConfig, zcfSpec?: ZCFSpec): {
53
+ export function makeZoeKit(vatAdminSvc?: Promise<VatAdminSvc> | VatAdminSvc, shutdownZoeVat?: ShutdownWithFailure, feeIssuerConfig?: FeeIssuerConfig, zcfSpec?: ZCFSpec): {
54
54
  zoeService: import("@endo/exo").Guarded<ZoeService>;
55
55
  zoeConfigFacet: import("@endo/exo").Guarded<{
56
56
  updateZcfBundleId(bundleId: any): void;
57
57
  }>;
58
58
  /** @type {FeeMintAccess} */
59
59
  feeMintAccess: FeeMintAccess;
60
- setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
60
+ setVatAdminService: ((lateVatAdminSvc: any) => void) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
61
61
  };
62
62
  import type { Baggage } from '@agoric/vat-data';
63
63
  import type { VatAdminSvc } from '@agoric/swingset-vat';
64
+ import type { ShutdownWithFailure } from '@agoric/swingset-vat';
64
65
  import type { FeeIssuerConfig } from './types.js';
65
66
  import type { ZCFSpec } from './types.js';
66
67
  import type { ZoeService } from './types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":";qBAqSa,UAAU,CAAC,OAAO,iBAAiB,CAAC;AAvQjD;;;;GAIG;AAEH;;;;;;;;;;;;;GAaG;AACH,0GAVG;IAAyB,UAAU,EAA3B,OAAO;IACsC,WAAW;IAGK,cAAc;IAGjD,eAAe;IACvB,OAAO;CACnC;;;;;IAgNG,4BAA4B;mBAAjB,aAAa;;EAK3B;AAED;;;;;;;;;;;;;;;GAeG;AACH,yCATW,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,mBAGlC,OAAO,sBAAsB,EAAE,mBAAmB,oBAGlD,eAAe,YACf,OAAO;;;;;IArBd,4BAA4B;mBAAjB,aAAa;;EA8BxB;6BA/PsB,kBAAkB;iCADd,sBAAsB;qCAEkB,YAAY;6BAAZ,YAAY;gCAAZ,YAAY;mCAAZ,YAAY"}
1
+ {"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":";qBAqSa,UAAU,CAAC,OAAO,iBAAiB,CAAC;AAvQjD;;;;GAIG;AAEH;;;;;;;;;;;;;GAaG;AACH,0GAVG;IAAyB,UAAU,EAA3B,OAAO;IACsC,WAAW;IAG1B,cAAc;IAGlB,eAAe;IACvB,OAAO;CACnC;;;;;IAgNG,4BAA4B;mBAAjB,aAAa;;EAK3B;AAED;;;;;;;;;;;;;;;GAeG;AACH,yCATW,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,mBAGlC,mBAAmB,oBAGnB,eAAe,YACf,OAAO;;;;;IArBd,4BAA4B;mBAAjB,aAAa;;EA8BxB;6BA/PsB,kBAAkB;iCADO,sBAAsB;yCAAtB,sBAAsB;qCAEH,YAAY;6BAAZ,YAAY;gCAAZ,YAAY;mCAAZ,YAAY"}
@@ -14,12 +14,12 @@
14
14
  /// <reference types="@agoric/notifier/exported.js" />
15
15
  /// <reference path="../internal-types.js" />
16
16
 
17
+ import { Fail } from '@endo/errors';
17
18
  import { E } from '@endo/eventual-send';
18
19
  import { Far } from '@endo/marshal';
20
+ import { M } from '@endo/patterns';
19
21
  import { makeScalarBigMapStore, prepareExo } from '@agoric/vat-data';
20
- import { M } from '@agoric/store';
21
22
 
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';
@@ -29,7 +29,7 @@ import { defaultFeeIssuerConfig, prepareFeeMint } from './feeMint.js';
29
29
  import { ZoeServiceI } from '../typeGuards.js';
30
30
 
31
31
  /**
32
- * @import {VatAdminSvc} from '@agoric/swingset-vat';
32
+ * @import {VatAdminSvc, ShutdownWithFailure} from '@agoric/swingset-vat';
33
33
  * @import {Baggage} from '@agoric/vat-data';
34
34
  * @import {FeeIssuerConfig, FeeMintAccess, ZCFSpec, ZoeService} from './types.js';
35
35
  */
@@ -42,7 +42,7 @@ import { ZoeServiceI } from '../typeGuards.js';
42
42
  * @param {Promise<VatAdminSvc> | VatAdminSvc} [options.vatAdminSvc] - The vatAdmin Service, which carries the
43
43
  * power to create a new vat. If it's not available when makeZoe() is called, it
44
44
  * must be provided later using setVatAdminService().
45
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure} [options.shutdownZoeVat] - a function to
45
+ * @param {ShutdownWithFailure} [options.shutdownZoeVat] - a function to
46
46
  * shutdown the Zoe Vat. This function needs to use the vatPowers
47
47
  * available to a vat.
48
48
  * @param {FeeIssuerConfig} [options.feeIssuerConfig]
@@ -272,7 +272,7 @@ const makeDurableZoeKit = ({
272
272
  * @param {Promise<VatAdminSvc> | VatAdminSvc} [vatAdminSvc] - The vatAdmin Service, which carries the
273
273
  * power to create a new vat. If it's not available when makeZoe() is called, it
274
274
  * must be provided later using setVatAdminService().
275
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure} [shutdownZoeVat] - a function to
275
+ * @param {ShutdownWithFailure} [shutdownZoeVat] - a function to
276
276
  * shutdown the Zoe Vat. This function needs to use the vatPowers
277
277
  * available to a vat.
278
278
  * @param {FeeIssuerConfig} [feeIssuerConfig]
@@ -1,4 +1,4 @@
1
- export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapForID: GetBundleCapForID, shutdownZoeVat: import("@agoric/swingset-vat").ShutdownWithFailure, feeMint: {
1
+ export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapForID: GetBundleCapForID, shutdownZoeVat: ShutdownWithFailure, feeMint: {
2
2
  getFeeIssuerKit: GetFeeIssuerKit;
3
3
  getFeeIssuer: () => Issuer;
4
4
  getFeeBrand: () => Brand;
@@ -1 +1 @@
1
- {"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"AAyDO,oDAXI,YAAY,qBAEZ,iBAAiB,kBACjB,OAAO,sBAAsB,EAAE,mBAAmB,WAClD;IACL,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;kBANgC,CAAC;qBAChD,CAAC;oBACa,CAAC;;;;;;;GA+ajB;6BApcyB,kBAAkB"}
1
+ {"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"AAiEO,oDAXI,YAAY,qBAEZ,iBAAiB,kBACjB,mBAAmB,WACnB;IACL,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;kBAdyB,CAAC;qBACtC,CAAC;oBAA0B,CAAC;;;;;;;GAwbjC;6BApcyB,kBAAkB"}
@@ -27,6 +27,14 @@ import {
27
27
  ZoeStorageManagerIKit,
28
28
  } from '../typeGuards.js';
29
29
 
30
+ // Deleting this imperative-looking import does not break `yarn lint` in the
31
+ // zoe package. However, clients of zoe such as governance then claim that
32
+ // the `../zoe` package has many "Cannot find name <type>" errors for other
33
+ // types in the zoe package.
34
+ // See https://github.com/Agoric/agoric-sdk/pull/11243#discussion_r2059200058
35
+ // TODO investigate and hopefully fix.
36
+ import './internal-types.js';
37
+
30
38
  /**
31
39
  * @import {Baggage} from '@agoric/vat-data';
32
40
  * @import {InvitationAmount} from '@agoric/zoe';
@@ -47,7 +55,7 @@ const { ownKeys } = Reflect;
47
55
  * @param {CreateZCFVat} createZCFVat - the ability to create a new
48
56
  * ZCF Vat
49
57
  * @param {GetBundleCapForID} getBundleCapForID
50
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure} shutdownZoeVat
58
+ * @param {ShutdownWithFailure} shutdownZoeVat
51
59
  * @param {{
52
60
  * getFeeIssuerKit: GetFeeIssuerKit,
53
61
  * getFeeIssuer: () => Issuer,
@@ -14,13 +14,13 @@ declare const fakeVatAdmin: {
14
14
  done: () => Promise<any>;
15
15
  terminateWithFailure: () => void;
16
16
  upgrade: (_bundleCap: any, _options: any) => never;
17
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
17
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
18
18
  done: () => Promise<any>;
19
19
  terminateWithFailure: () => void;
20
20
  upgrade: (_bundleCap: any, _options: any) => never;
21
21
  }>;
22
22
  }>;
23
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
23
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
24
24
  getBundleCap: (bundleID: any) => Promise<any>;
25
25
  waitForBundleCap: (bundleID: any) => Promise<any>;
26
26
  getNamedBundleCap: (name: any) => Promise<any>;
@@ -33,7 +33,7 @@ declare const fakeVatAdmin: {
33
33
  done: () => Promise<any>;
34
34
  terminateWithFailure: () => void;
35
35
  upgrade: (_bundleCap: any, _options: any) => never;
36
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
36
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
37
37
  done: () => Promise<any>;
38
38
  terminateWithFailure: () => void;
39
39
  upgrade: (_bundleCap: any, _options: any) => never;
@@ -58,13 +58,13 @@ export function makeFakeVatAdmin(testContextSetter?: (...args: any) => unknown,
58
58
  done: () => Promise<any>;
59
59
  terminateWithFailure: () => void;
60
60
  upgrade: (_bundleCap: any, _options: any) => never;
61
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
61
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
62
62
  done: () => Promise<any>;
63
63
  terminateWithFailure: () => void;
64
64
  upgrade: (_bundleCap: any, _options: any) => never;
65
65
  }>;
66
66
  }>;
67
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
67
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
68
68
  getBundleCap: (bundleID: any) => Promise<any>;
69
69
  waitForBundleCap: (bundleID: any) => Promise<any>;
70
70
  getNamedBundleCap: (name: any) => Promise<any>;
@@ -77,7 +77,7 @@ export function makeFakeVatAdmin(testContextSetter?: (...args: any) => unknown,
77
77
  done: () => Promise<any>;
78
78
  terminateWithFailure: () => void;
79
79
  upgrade: (_bundleCap: any, _options: any) => never;
80
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
80
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
81
81
  done: () => Promise<any>;
82
82
  terminateWithFailure: () => void;
83
83
  upgrade: (_bundleCap: any, _options: any) => never;
@@ -21,7 +21,7 @@ export function makeScriptedOracle(script: Record<string, any>, oracleInstallati
21
21
  publicFacet: object & {
22
22
  query(query: OracleQuery): Promise<unknown>;
23
23
  makeQueryInvitation(query: OracleQuery): Promise<globalThis.Invitation<unknown, never>>;
24
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
24
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
25
25
  query(query: OracleQuery): Promise<unknown>;
26
26
  makeQueryInvitation(query: OracleQuery): Promise<globalThis.Invitation<unknown, never>>;
27
27
  }>;
@@ -4,7 +4,7 @@ export function makeZoeKitForTest(vatAdminSvc?: VatAdminSvc): {
4
4
  updateZcfBundleId(bundleId: any): void;
5
5
  }>;
6
6
  feeMintAccess: FeeMintAccess;
7
- setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
7
+ setVatAdminService: ((lateVatAdminSvc: any) => void) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
8
8
  };
9
9
  export function makeZoeForTest(vatAdminSvc?: VatAdminSvc): import("@endo/exo").Guarded<globalThis.ZoeService>;
10
10
  export function setUpZoeForTest<T extends unknown = any>({ setJig, feeIssuerConfig, vatAdminSvc, useNearRemote, }?: {