@agoric/zoe 0.26.3-upgrade-18-dev-0218510.0 → 0.26.3-upgrade-18-dev-cc4b6b8.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 (51) hide show
  1. package/bundles/bundle-contractFacet-js-meta.json +273 -413
  2. package/bundles/bundle-contractFacet.js +1 -1
  3. package/package.json +31 -31
  4. package/src/cleanProposal.d.ts.map +1 -1
  5. package/src/contractSupport/atomicTransfer.d.ts +1 -1
  6. package/src/contractSupport/atomicTransfer.d.ts.map +1 -1
  7. package/src/contractSupport/bondingCurves.d.ts +2 -2
  8. package/src/contractSupport/bondingCurves.d.ts.map +1 -1
  9. package/src/contractSupport/durability.d.ts +1 -1
  10. package/src/contractSupport/durability.d.ts.map +1 -1
  11. package/src/contractSupport/prepare-ownable.d.ts +1 -1
  12. package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
  13. package/src/contractSupport/prepare-ownable.js +0 -1
  14. package/src/contractSupport/ratio.d.ts +2 -2
  15. package/src/contractSupport/ratio.d.ts.map +1 -1
  16. package/src/contractSupport/zoeHelpers.d.ts +1 -1
  17. package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
  18. package/src/contracts/auction/index.d.ts.map +1 -1
  19. package/src/contracts/otcDesk.d.ts +2 -2
  20. package/src/contracts/otcDesk.d.ts.map +1 -1
  21. package/src/contracts/priceAggregator.d.ts +4 -4
  22. package/src/contracts/priceAggregator.d.ts.map +1 -1
  23. package/src/contracts/priceAggregator.js +0 -1
  24. package/src/contracts/simpleExchange.d.ts.map +1 -1
  25. package/src/contracts/simpleExchange.js +0 -1
  26. package/src/internal-types.d.ts.map +1 -1
  27. package/src/typeGuards.d.ts.map +1 -1
  28. package/src/typeGuards.js +32 -26
  29. package/src/zoeService/installationStorage.d.ts +2 -2
  30. package/src/zoeService/installationStorage.d.ts.map +1 -1
  31. package/src/zoeService/installationStorage.js +0 -2
  32. package/src/zoeService/startInstance.d.ts.map +1 -1
  33. package/src/zoeService/startInstance.js +0 -1
  34. package/src/zoeService/types-ambient.d.ts.map +1 -1
  35. package/src/zoeService/zoe.d.ts +1 -1
  36. package/src/zoeService/zoe.d.ts.map +1 -1
  37. package/src/zoeService/zoe.js +0 -2
  38. package/src/zoeService/zoeSeat.d.ts +1 -1
  39. package/src/zoeService/zoeSeat.d.ts.map +1 -1
  40. package/src/zoeService/zoeStorageManager.d.ts +2 -3
  41. package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
  42. package/tools/fakeVatAdmin.d.ts +1 -1
  43. package/tools/fakeVatAdmin.d.ts.map +1 -1
  44. package/tools/manualTimer.d.ts +3 -3
  45. package/tools/manualTimer.d.ts.map +1 -1
  46. package/tools/manualTimer.js +2 -2
  47. package/tools/setup-zoe.d.ts +3 -3
  48. package/tools/setup-zoe.d.ts.map +1 -1
  49. package/tools/setup-zoe.js +1 -1
  50. package/tools/test-utils.d.ts +1 -1
  51. package/tools/test-utils.d.ts.map +1 -1
@@ -5,7 +5,7 @@ export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapFo
5
5
  }, zoeBaggage: Baggage): import("@endo/exo").GuardedKit<{
6
6
  zoeServiceDataAccess: {
7
7
  getInvitationIssuer: () => globalThis.Issuer<"set", InvitationDetails>;
8
- getBundleIDFromInstallation(allegedInstallation: any): any;
8
+ getBundleIDFromInstallation(allegedInstallation: any): Promise<string | undefined>;
9
9
  getPublicFacet(instance: any): any;
10
10
  getBrands(instance: any): any;
11
11
  getIssuers(instance: any): any;
@@ -13,7 +13,7 @@ export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapFo
13
13
  getTerms(instance: any): any;
14
14
  getInstallation(instance: any): any;
15
15
  getProposalShapeForInvitation: (invitationHandle: any) => any;
16
- installBundle: (allegedBundle: any, bundleLabel: any) => any;
16
+ installBundle: (allegedBundle: any, bundleLabel: any) => Promise<Installation<any>>;
17
17
  installBundleID(bundleID: any, bundleLabel: any): Promise<Installation<unknown>>;
18
18
  };
19
19
  makeOfferAccess: {
@@ -25,7 +25,6 @@ export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapFo
25
25
  };
26
26
  startInstanceAccess: {
27
27
  makeZoeInstanceStorageManager: MakeZoeInstanceStorageManager;
28
- /** @type {UnwrapInstallation} */
29
28
  unwrapInstallation(installationP: ERef<Installation>): ERef<{
30
29
  bundle?: SourceBundle;
31
30
  bundleCap?: BundleCap;
@@ -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;IACL,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;QA+ZV,iCAAiC;;kBA3aW,CAAC;qBAC3B,CAAC;oBAA0B,CAAC;;;;;;;GAsbrD;6BAlc0B,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;IACL,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;kBAZkC,CAAC;qBAC3B,CAAC;oBAA0B,CAAC;;;;;;;GAsbrD;6BAlc0B,kBAAkB"}
@@ -46,7 +46,7 @@ declare const fakeVatAdmin: {
46
46
  * @param {(...args) => unknown} [testContextSetter]
47
47
  * @param {(x: unknown) => unknown} [makeRemote]
48
48
  */
49
- export function makeFakeVatAdmin(testContextSetter?: ((...args: any[]) => unknown) | undefined, makeRemote?: ((x: unknown) => unknown) | undefined): {
49
+ export function makeFakeVatAdmin(testContextSetter?: (...args: any) => unknown, makeRemote?: (x: unknown) => unknown): {
50
50
  admin: {
51
51
  getBundleCap: (bundleID: any) => Promise<any>;
52
52
  waitForBundleCap: (bundleID: any) => Promise<any>;
@@ -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;AAoJvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA8C;AA9I9C;;;GAGG;AACH,0EAHwB,OAAO,iCAChB,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqIjC"}
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,qDAHW,CAAC,GAAG,IAAI,KAAA,KAAK,OAAO,eACpB,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqIjC"}
@@ -1,4 +1,4 @@
1
- export function buildZoeManualTimer(log?: ((...args: any[]) => void) | undefined, startValue?: import("@agoric/time").Timestamp | undefined, options?: ZoeManualTimerOptions | undefined): ZoeManualTimer;
1
+ export function buildZoeManualTimer(log?: (...args: any[]) => void, startValue?: import("@agoric/time").Timestamp | bigint, options?: ZoeManualTimerOptions): ZoeManualTimer;
2
2
  export default buildZoeManualTimer;
3
3
  export type ZoeManualTimerOptions = {
4
4
  timeStep?: import("@agoric/time").RelativeTime | bigint;
@@ -14,8 +14,8 @@ export type ManualTimerAdmin = {
14
14
  tick: (msg?: string) => void | Promise<void>;
15
15
  tickN: (nTimes: number, msg?: string) => Promise<void>;
16
16
  };
17
- export type ZoeManualTimer = ReturnType<typeof buildManualTimer> & RemotableBrand<ManualTimerAdmin, TimerServiceI & ManualTimerAdmin> & ManualTimerAdmin;
17
+ export type ZoeManualTimer = ReturnType<typeof buildManualTimer> & RemotableBrand<ManualTimerAdmin, TimerServiceCommon & ManualTimerAdmin> & ManualTimerAdmin;
18
18
  import { buildManualTimer } from '@agoric/swingset-vat/tools/manual-timer.js';
19
- import type { TimerServiceI } from '@agoric/time';
19
+ import type { TimerServiceCommon } from '@agoric/time';
20
20
  import type { RemotableBrand } from '@endo/eventual-send';
21
21
  //# sourceMappingURL=manualTimer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manualTimer.d.ts","sourceRoot":"","sources":["manualTimer.js"],"names":[],"mappings":"AAyEO,qDANc,GAAG,EAAE,KAAK,IAAI,wHAGtB,cAAc,CAsD1B;;oCA5GY;IACT,QAAQ,CAAC,EAAE,OAAO,cAAc,EAAE,YAAY,GAAG,MAAM,CAAC;IACxD,kBAAkB,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
+ {"version":3,"file":"manualTimer.d.ts","sourceRoot":"","sources":["manualTimer.js"],"names":[],"mappings":"AAyEO,0CANI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,eACxB,OAAO,cAAc,EAAE,SAAS,GAAG,MAAM,YACzC,qBAAqB,GACnB,cAAc,CAsD1B;;oCA5GY;IACT,QAAQ,CAAC,EAAE,OAAO,cAAc,EAAE,YAAY,GAAG,MAAM,CAAC;IACxD,kBAAkB,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,kBAAkB,GAAG,gBAAgB,CAAC,GAAG,gBAAgB;iCA9B7G,4CAA4C;wCAIxC,cAAc;oCAElB,qBAAqB"}
@@ -5,7 +5,7 @@ import { buildManualTimer } from '@agoric/swingset-vat/tools/manual-timer.js';
5
5
  import { TimeMath } from '@agoric/time';
6
6
 
7
7
  /**
8
- * @import {TimerServiceI} from '@agoric/time';
8
+ * @import {TimerServiceCommon} from '@agoric/time';
9
9
  * @import {RemotableObject} from '@endo/pass-style';
10
10
  * @import {RemotableBrand} from '@endo/eventual-send';
11
11
  */
@@ -31,7 +31,7 @@ const nolog = (..._args) => {};
31
31
  * @property {(nTimes: number, msg?: string) => Promise<void>} tickN
32
32
  */
33
33
 
34
- /** @typedef {ReturnType<typeof buildManualTimer> & RemotableBrand<ManualTimerAdmin, TimerServiceI & ManualTimerAdmin> & ManualTimerAdmin} ZoeManualTimer */
34
+ /** @typedef {ReturnType<typeof buildManualTimer> & RemotableBrand<ManualTimerAdmin, TimerServiceCommon & ManualTimerAdmin> & ManualTimerAdmin} ZoeManualTimer */
35
35
 
36
36
  /**
37
37
  * A fake TimerService, for unit tests that do not use a real
@@ -1,4 +1,4 @@
1
- export function makeZoeKitForTest(vatAdminSvc?: VatAdminSvc | undefined): {
1
+ export function makeZoeKitForTest(vatAdminSvc?: VatAdminSvc): {
2
2
  zoeService: import("@endo/exo").Guarded<ZoeService>;
3
3
  zoeConfigFacet: import("@endo/exo").Guarded<{
4
4
  updateZcfBundleId(bundleId: any): void;
@@ -6,8 +6,8 @@ export function makeZoeKitForTest(vatAdminSvc?: VatAdminSvc | undefined): {
6
6
  feeMintAccess: FeeMintAccess;
7
7
  setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
8
8
  };
9
- export function makeZoeForTest(vatAdminSvc?: VatAdminSvc | undefined): import("@endo/exo").Guarded<ZoeService>;
10
- export function setUpZoeForTest<T extends unknown = unknown>({ setJig, feeIssuerConfig, vatAdminSvc, useNearRemote, }?: {
9
+ export function makeZoeForTest(vatAdminSvc?: VatAdminSvc): import("@endo/exo").Guarded<ZoeService>;
10
+ export function setUpZoeForTest<T extends unknown = any>({ setJig, feeIssuerConfig, vatAdminSvc, useNearRemote, }?: {
11
11
  setJig?: ((jig: T) => void) | undefined;
12
12
  feeIssuerConfig?: FeeIssuerConfig | undefined;
13
13
  vatAdminSvc?: VatAdminSvc | undefined;
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAUO,gDAFI,WAAW;;;;;;;EAOrB;AAKM,6CAFI,WAAW,2CAGqB;AAapC,gCAPgB,CAAC,mFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;6BA2B9B,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;GAiBnC"}
@@ -25,7 +25,7 @@ export const makeZoeForTest = vatAdminSvc =>
25
25
  * Returns promises for `zoe` and the `feeMintAccess`.
26
26
  * Provide testing versions of capabilities for Zoe contracts.
27
27
  *
28
- * @template {object} [T=unknown]
28
+ * @template {object} [T=any]
29
29
  * @param {object} options
30
30
  * @param {(jig: T) => void} [options.setJig]
31
31
  * @param {FeeIssuerConfig} [options.feeIssuerConfig]
@@ -6,7 +6,7 @@ export function withAmountUtils(kit: Pick<IssuerKit<"nat">, "brand" | "issuer" |
6
6
  * @param {NatValue} n
7
7
  * @param {NatValue} [d]
8
8
  */
9
- makeRatio: (n: NatValue, d?: bigint | undefined) => Ratio;
9
+ makeRatio: (n: NatValue, d?: NatValue) => Ratio;
10
10
  /** @param {number} n */
11
11
  units: (n: number) => import("@agoric/ertp").NatAmount;
12
12
  /** The intact Exo remotable */
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["test-utils.js"],"names":[],"mappings":"AAIO,qCADK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAK3D,0BAA0B;cAAd,QAAQ;;IAGpB;;;OAGG;mBAFQ,QAAQ;IAInB,wBAAwB;eAAZ,MAAM;IAGlB,+BAA+B;;;;;EAGlC;;0BACa,UAAU,CAAC,OAAO,eAAe,CAAC"}
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["test-utils.js"],"names":[],"mappings":"AAIO,qCADK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAK3D,0BAA0B;cAAd,QAAQ;;IAGpB;;;OAGG;mBAFQ,QAAQ,MACR,QAAQ;IAGnB,wBAAwB;eAAZ,MAAM;IAGlB,+BAA+B;;;;;EAGlC;;0BACa,UAAU,CAAC,OAAO,eAAe,CAAC"}