@agoric/zoe 0.27.0-upgrade-19-devnet-dev-5428c4d.0 → 0.27.0-upgrade-22-dev-6fad137.0.6fad137

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 (170) hide show
  1. package/bundles/bundle-contractFacet-js-meta.json +340 -330
  2. package/bundles/bundle-contractFacet.js +1 -1
  3. package/package.json +38 -38
  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/rightsConservation.d.ts.map +1 -1
  11. package/src/contractFacet/rightsConservation.js +0 -1
  12. package/src/contractFacet/types.d.ts +184 -0
  13. package/src/contractFacet/types.d.ts.map +1 -0
  14. package/src/contractFacet/{types-ambient.d.ts → types.ts} +66 -29
  15. package/src/contractFacet/vatRoot.d.ts +9 -3
  16. package/src/contractFacet/vatRoot.d.ts.map +1 -1
  17. package/src/contractFacet/vatRoot.js +5 -4
  18. package/src/contractFacet/zcfMint.d.ts +3 -2
  19. package/src/contractFacet/zcfMint.d.ts.map +1 -1
  20. package/src/contractFacet/zcfMint.js +7 -7
  21. package/src/contractFacet/zcfSeat.d.ts +3 -1
  22. package/src/contractFacet/zcfSeat.d.ts.map +1 -1
  23. package/src/contractFacet/zcfSeat.js +6 -4
  24. package/src/contractFacet/zcfZygote.d.ts +8 -1
  25. package/src/contractFacet/zcfZygote.d.ts.map +1 -1
  26. package/src/contractFacet/zcfZygote.js +20 -8
  27. package/src/contractSupport/atomicTransfer.d.ts +6 -0
  28. package/src/contractSupport/atomicTransfer.d.ts.map +1 -1
  29. package/src/contractSupport/atomicTransfer.js +4 -0
  30. package/src/contractSupport/bondingCurves.js +1 -1
  31. package/src/contractSupport/index.d.ts +2 -2
  32. package/src/contractSupport/index.js +2 -19
  33. package/src/contractSupport/prepare-ownable.d.ts +1 -1
  34. package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
  35. package/src/contractSupport/prepare-ownable.js +5 -1
  36. package/src/contractSupport/priceAuthorityInitial.d.ts +2 -0
  37. package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
  38. package/src/contractSupport/priceAuthorityInitial.js +3 -1
  39. package/src/contractSupport/types-ambient.d.ts.map +1 -1
  40. package/src/contractSupport/types-ambient.js +1 -0
  41. package/src/contractSupport/zoeHelpers.d.ts +6 -1
  42. package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
  43. package/src/contractSupport/zoeHelpers.js +1 -0
  44. package/src/contracts/atomicSwap.d.ts +1 -1
  45. package/src/contracts/auction/index.d.ts +5 -5
  46. package/src/contracts/automaticRefund.d.ts +4 -4
  47. package/src/contracts/autoswap.d.ts +4 -0
  48. package/src/contracts/autoswap.d.ts.map +1 -1
  49. package/src/contracts/autoswap.js +4 -0
  50. package/src/contracts/barterExchange.d.ts +3 -3
  51. package/src/contracts/callSpread/fundedCallSpread.d.ts +1 -1
  52. package/src/contracts/callSpread/pricedCallSpread.d.ts +5 -5
  53. package/src/contracts/coveredCall-durable.d.ts +1 -1
  54. package/src/contracts/coveredCall.d.ts +1 -1
  55. package/src/contracts/loan/index.d.ts +1 -1
  56. package/src/contracts/loan/liquidate.d.ts.map +1 -1
  57. package/src/contracts/loan/liquidate.js +5 -1
  58. package/src/contracts/loan/types-ambient.d.ts +13 -13
  59. package/src/contracts/loan/types-ambient.d.ts.map +1 -1
  60. package/src/contracts/loan/types-ambient.js +17 -17
  61. package/src/contracts/mintPayments.d.ts +4 -4
  62. package/src/contracts/oracle.d.ts +5 -2
  63. package/src/contracts/oracle.d.ts.map +1 -1
  64. package/src/contracts/oracle.js +1 -0
  65. package/src/contracts/otcDesk.d.ts +1 -1
  66. package/src/contracts/priceAggregator.d.ts +4 -2
  67. package/src/contracts/priceAggregator.d.ts.map +1 -1
  68. package/src/contracts/priceAggregator.js +10 -8
  69. package/src/contracts/scaledPriceAuthority.d.ts +1 -0
  70. package/src/contracts/scaledPriceAuthority.d.ts.map +1 -1
  71. package/src/contracts/scaledPriceAuthority.js +1 -0
  72. package/src/contracts/sellItems.d.ts +1 -1
  73. package/src/contracts/simpleExchange.d.ts +6 -1
  74. package/src/contracts/simpleExchange.d.ts.map +1 -1
  75. package/src/contracts/simpleExchange.js +4 -0
  76. package/src/contracts/types-ambient.d.ts +7 -7
  77. package/src/contracts/types-ambient.d.ts.map +1 -1
  78. package/src/contracts/types-ambient.js +7 -7
  79. package/src/contracts/valueVow.contract.d.ts +5 -2
  80. package/src/contracts/valueVow.contract.d.ts.map +1 -1
  81. package/src/contracts/valueVow.contract.js +1 -0
  82. package/src/instanceRecordStorage.d.ts +3 -1
  83. package/src/instanceRecordStorage.d.ts.map +1 -1
  84. package/src/instanceRecordStorage.js +9 -2
  85. package/src/internal-types.d.ts +25 -10
  86. package/src/internal-types.d.ts.map +1 -1
  87. package/src/internal-types.js +21 -11
  88. package/src/issuerRecord.d.ts +3 -2
  89. package/src/issuerRecord.d.ts.map +1 -1
  90. package/src/issuerRecord.js +6 -2
  91. package/src/issuerStorage.d.ts +3 -2
  92. package/src/issuerStorage.d.ts.map +1 -1
  93. package/src/issuerStorage.js +6 -5
  94. package/src/typeGuards.d.ts +10 -6
  95. package/src/typeGuards.d.ts.map +1 -1
  96. package/src/typeGuards.js +7 -5
  97. package/src/types-ambient.d.ts +0 -40
  98. package/src/types-ambient.d.ts.map +1 -1
  99. package/src/types-ambient.js +4 -42
  100. package/src/types-index.d.ts +4 -0
  101. package/src/types-index.js +2 -0
  102. package/src/types.d.ts +29 -0
  103. package/src/types.d.ts.map +1 -0
  104. package/src/types.ts +37 -0
  105. package/src/zoeService/escrowStorage.d.ts.map +1 -1
  106. package/src/zoeService/escrowStorage.js +1 -2
  107. package/src/zoeService/feeMint.d.ts +6 -3
  108. package/src/zoeService/feeMint.d.ts.map +1 -1
  109. package/src/zoeService/feeMint.js +8 -2
  110. package/src/zoeService/installationStorage.d.ts +3 -2
  111. package/src/zoeService/installationStorage.d.ts.map +1 -1
  112. package/src/zoeService/installationStorage.js +3 -7
  113. package/src/zoeService/internal-types.d.ts +11 -3
  114. package/src/zoeService/internal-types.d.ts.map +1 -1
  115. package/src/zoeService/internal-types.js +9 -3
  116. package/src/zoeService/invitationQueries.d.ts +3 -3
  117. package/src/zoeService/invitationQueries.js +3 -3
  118. package/src/zoeService/makeInvitation.d.ts +4 -1
  119. package/src/zoeService/makeInvitation.d.ts.map +1 -1
  120. package/src/zoeService/makeInvitation.js +8 -2
  121. package/src/zoeService/offer/offer.d.ts +1 -0
  122. package/src/zoeService/offer/offer.d.ts.map +1 -1
  123. package/src/zoeService/offer/offer.js +3 -1
  124. package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
  125. package/src/zoeService/originalZoeSeat.js +0 -2
  126. package/src/zoeService/startInstance.d.ts.map +1 -1
  127. package/src/zoeService/startInstance.js +2 -4
  128. package/src/zoeService/types-ambient.d.ts +0 -226
  129. package/src/zoeService/types-ambient.d.ts.map +1 -1
  130. package/src/zoeService/types-ambient.js +4 -327
  131. package/src/zoeService/types.d.ts +238 -0
  132. package/src/zoeService/types.d.ts.map +1 -0
  133. package/src/zoeService/types.ts +307 -0
  134. package/src/zoeService/utils.d.ts +13 -5
  135. package/src/zoeService/utils.test-d.ts +1 -0
  136. package/src/zoeService/zoe.d.ts +18 -7
  137. package/src/zoeService/zoe.d.ts.map +1 -1
  138. package/src/zoeService/zoe.js +12 -5
  139. package/src/zoeService/zoeSeat.d.ts.map +1 -1
  140. package/src/zoeService/zoeSeat.js +1 -2
  141. package/src/zoeService/zoeStorageManager.d.ts +6 -6
  142. package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
  143. package/src/zoeService/zoeStorageManager.js +13 -4
  144. package/tools/fakeVatAdmin.d.ts +15 -8
  145. package/tools/fakeVatAdmin.d.ts.map +1 -1
  146. package/tools/fakeVatAdmin.js +18 -10
  147. package/tools/manualPriceAuthority.d.ts +4 -1
  148. package/tools/manualPriceAuthority.d.ts.map +1 -1
  149. package/tools/manualPriceAuthority.js +1 -0
  150. package/tools/scriptedOracle.d.ts +7 -3
  151. package/tools/scriptedOracle.d.ts.map +1 -1
  152. package/tools/scriptedOracle.js +4 -0
  153. package/tools/setup-zoe.d.ts +13 -7
  154. package/tools/setup-zoe.d.ts.map +1 -1
  155. package/tools/setup-zoe.js +40 -5
  156. package/tools/test-utils.d.ts +1 -1
  157. package/tools/test-utils.js +1 -1
  158. package/tools/types.d.ts +1 -0
  159. package/tools/types.d.ts.map +1 -1
  160. package/tools/types.js +1 -0
  161. package/src/contractFacet/internal-types.d.ts +0 -8
  162. package/src/contractFacet/internal-types.d.ts.map +0 -1
  163. package/src/contractFacet/internal-types.js +0 -15
  164. package/src/contractFacet/types-ambient.js +0 -1
  165. package/src/contractSupport/ratio.d.ts +0 -37
  166. package/src/contractSupport/ratio.d.ts.map +0 -1
  167. package/src/contractSupport/ratio.js +0 -419
  168. package/src/contractSupport/safeMath.d.ts +0 -11
  169. package/src/contractSupport/safeMath.d.ts.map +0 -1
  170. package/src/contractSupport/safeMath.js +0 -49
@@ -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,4 +20,7 @@ export function prepareFeeMint(zoeBaggage: import("@agoric/vat-data").Baggage, f
20
20
  };
21
21
  feeMintAccess: {};
22
22
  }>;
23
+ import type { Baggage } from '@agoric/vat-data';
24
+ import type { FeeIssuerConfig } from './types.js';
25
+ import type { ShutdownWithFailure } from '@agoric/swingset-vat';
23
26
  //# sourceMappingURL=feeMint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feeMint.d.ts","sourceRoot":"","sources":["feeMint.js"],"names":[],"mappings":";;;;;;;;;AA2BA;;;;GAIG;AACH,2CAJW,OAAO,kBAAkB,EAAE,OAAO,mBAClC,eAAe,kBACf,OAAO,sBAAsB,EAAE,mBAAmB;;;;;;;GA2D5D"}
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"}
@@ -14,6 +14,12 @@ import {
14
14
  import { Fail, q } from '@endo/errors';
15
15
  import { FeeMintAccessShape } from '../typeGuards.js';
16
16
 
17
+ /**
18
+ * @import {Baggage} from '@agoric/vat-data';
19
+ * @import {ShutdownWithFailure} from '@agoric/swingset-vat';
20
+ * @import {FeeIssuerConfig} from './types.js';
21
+ */
22
+
17
23
  /** @deprecated Redundant. Just omit it. */
18
24
  const FEE_MINT_KIT = 'FeeMintKit';
19
25
 
@@ -26,9 +32,9 @@ export const defaultFeeIssuerConfig = harden(
26
32
  );
27
33
 
28
34
  /**
29
- * @param {import('@agoric/vat-data').Baggage} zoeBaggage
35
+ * @param {Baggage} zoeBaggage
30
36
  * @param {FeeIssuerConfig} feeIssuerConfig
31
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure} shutdownZoeVat
37
+ * @param {ShutdownWithFailure} shutdownZoeVat
32
38
  */
33
39
  const prepareFeeMint = (zoeBaggage, feeIssuerConfig, shutdownZoeVat) => {
34
40
  const mintBaggage = provideDurableMapStore(zoeBaggage, 'mintBaggage');
@@ -1,6 +1,6 @@
1
1
  export function makeInstallationStorage(getBundleCapForID: GetBundleCapForID, zoeBaggage: Baggage): import("@endo/exo").Guarded<{
2
- installBundle(allegedBundle: any, bundleLabel: any): Promise<Installation<any>>;
3
- installBundleID(bundleID: any, bundleLabel?: any): Promise<Installation<unknown>>;
2
+ installBundle(allegedBundle: any, bundleLabel: any): Promise<globalThis.Installation>;
3
+ installBundleID(bundleID: any, bundleLabel?: any): Promise<globalThis.Installation<unknown>>;
4
4
  unwrapInstallation(installation: any): {
5
5
  bundleCap: any;
6
6
  bundleID: string;
@@ -15,4 +15,5 @@ export function makeInstallationStorage(getBundleCapForID: GetBundleCapForID, zo
15
15
  getBundleIDFromInstallation(allegedInstallation: any): Promise<string | undefined>;
16
16
  }>;
17
17
  import type { Baggage } from '@agoric/swingset-liveslots';
18
+ import type { SourceBundle } from '@agoric/zoe';
18
19
  //# sourceMappingURL=installationStorage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"installationStorage.d.ts","sourceRoot":"","sources":["installationStorage.js"],"names":[],"mappings":"AAwBO,2DAHI,iBAAiB,cACjB,OAAO;;;;;;;;;;;;;;;GA6IjB;6BArJyB,4BAA4B"}
1
+ {"version":3,"file":"installationStorage.d.ts","sourceRoot":"","sources":["installationStorage.js"],"names":[],"mappings":"AAuBO,2DAHI,iBAAiB,cACjB,OAAO;;;;;;;;;;;;;;;GA0IjB;6BAlJyB,4BAA4B;kCAGvB,aAAa"}
@@ -7,15 +7,14 @@ import {
7
7
  } from '@agoric/vat-data';
8
8
  import {
9
9
  InstallationShape,
10
- InstanceHandleShape,
11
10
  UnwrappedInstallationShape,
12
11
  } from '../typeGuards.js';
13
12
 
14
13
  /**
15
14
  * @import {Baggage} from '@agoric/swingset-liveslots';
16
- * @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
17
- * @import {MapStore} from '@agoric/swingset-liveslots';
15
+ * @import {WeakMapStore} from '@agoric/store';
18
16
  * @import {BundleID, BundleCap} from '@agoric/swingset-vat';
17
+ * @import {SourceBundle} from '@agoric/zoe';
19
18
  */
20
19
 
21
20
  /**
@@ -80,10 +79,7 @@ export const makeInstallationStorage = (getBundleCapForID, zoeBaggage) => {
80
79
 
81
80
  const InstallationStorageI = M.interface('InstallationStorage', {
82
81
  installBundle: M.call(
83
- M.or(
84
- InstanceHandleShape,
85
- M.recordOf(M.string(), M.string({ stringLengthLimit: Infinity })),
86
- ),
82
+ M.recordOf(M.string(), M.string({ stringLengthLimit: Infinity })),
87
83
  )
88
84
  .optional(M.string())
89
85
  .returns(M.promise()),
@@ -73,9 +73,9 @@ type ZoeStorageManager = {
73
73
  getBrands: GetBrands;
74
74
  getIssuers: GetIssuers;
75
75
  getTerms: import("./utils.js").GetTerms;
76
- getOfferFilter: GetOfferFilter;
77
- setOfferFilter: SetOfferFilter;
78
- getInstallationForInstance: GetInstallationForInstance;
76
+ getOfferFilter: (instance: import("./utils.js").Instance<any>) => string[];
77
+ setOfferFilter: (instance: Instance, strings: string[]) => any;
78
+ getInstallationForInstance: (instance: import("./utils.js").Instance<any>) => Promise<Installation>;
79
79
  getInstanceAdmin: GetInstanceAdmin;
80
80
  unwrapInstallation: UnwrapInstallation;
81
81
  getProposalShapeForInvitation: (invitationHandle: InvitationHandle) => import("@endo/patterns").Pattern | undefined;
@@ -86,4 +86,12 @@ type ZoeStorageManager = {
86
86
  */
87
87
  type CreateZCFVat = (contractBundleCap: BundleCap, contractLabel: string) => Promise<import("@agoric/swingset-vat").CreateVatResults>;
88
88
  type GetFeeIssuerKit = (feeMintAccess: FeeMintAccess) => IssuerKit<"nat">;
89
+ import type { FeeMintAccess } from './types.js';
90
+ import type { GetBrands } from './types.js';
91
+ import type { GetBundleIDFromInstallation } from './types.js';
92
+ import type { GetIssuers } from './types.js';
93
+ import type { InstallBundle } from './types.js';
94
+ import type { InstallBundleID } from './types.js';
95
+ import type { SourceBundle } from './types.js';
96
+ import type { InstanceRecord } from './utils.js';
89
97
  //# sourceMappingURL=internal-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":";;;4BAMW,MAAM,SACN,KAAK,KACH,IAAI,CAAC,IAAI,CAAC;;;;;;;;kCAWZ,MAAM,SACN,KAAK,KACH,KAAK;;;;;;;kCAUP,cAAc,YACd,qBAAqB,KACnB,OAAO,CAAC,UAAU,CAAC;oCAKrB,QAAQ,iBACR,aAAa,KACX,IAAI;mCAKN,QAAQ,KACN,aAAa;sCAKf,QAAQ,KACN,IAAI;;;;;0CASN,IAAI,CAAC,YAAY,CAAC,KAChB,IAAI,CAAC;IACb,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,EAAC,YAAY,CAAA;CAC1B,CAAC;8BAMQ,aAAa;;cAKZ,MAAM,QAAQ;gBACd,MAAM,mBAAmB;eACzB,MAAM,kBAAkB;gBACxB,GAAG,CAAC,YAAY,CAAC;iBACjB,WAAW;qBACX,eAAe;uBACf,MAAM,cAAc;sBACpB,gBAAgB;uBAChB,iBAAiB;yBACjB,mBAAmB;oBACnB,8BAA8B;yBAC9B,MAAM,MAAM;;;;aACZ,MAAM,MAAM;;;;kBACZ,MAAM,OAAO,sBAAsB,EAAE,aAAa;;;;;;;;oDAUrD,YAAY,eACZ,MAAM,8BACN,mBAAmB,YACnB,QAAQ,qBACR,SAAS,iBACT,MAAM,KACJ,OAAO,CAAC,yBAAyB,CAAC;8BAKpC,QAAQ,KACN,OAAO,CAAC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BundleID, SourceBundle} from './types.js';
6
+ * @import {InstanceRecord} from './utils.js';
7
+ */
2
8
 
3
9
  /**
4
10
  * Create a purse for a new issuer
@@ -127,9 +133,9 @@
127
133
  * @property {GetBrands} getBrands
128
134
  * @property {GetIssuers} getIssuers
129
135
  * @property {import('./utils.js').GetTerms} getTerms
130
- * @property {GetOfferFilter} getOfferFilter
131
- * @property {SetOfferFilter} setOfferFilter
132
- * @property {GetInstallationForInstance} getInstallationForInstance
136
+ * @property {(instance: import('./utils.js').Instance<any>) => string[]} getOfferFilter
137
+ * @property {(instance: Instance, strings: string[]) => any} setOfferFilter
138
+ * @property {(instance: import('./utils.js').Instance<any>) => Promise<Installation>} getInstallationForInstance
133
139
  * @property {GetInstanceAdmin} getInstanceAdmin
134
140
  * @property {UnwrapInstallation} unwrapInstallation
135
141
  * @property {(invitationHandle: InvitationHandle) => import('@endo/patterns').Pattern | undefined} getProposalShapeForInvitation
@@ -1,6 +1,6 @@
1
1
  export function makeInvitationQueryFns(invitationIssuer: any): {
2
- getInstance: GetInstance;
3
- getInstallation: GetInstallation;
4
- getInvitationDetails: GetInvitationDetails;
2
+ getInstance: import("./types.ts").GetInstance;
3
+ getInstallation: import("./types.ts").GetInstallation;
4
+ getInvitationDetails: import("./types.ts").GetInvitationDetails;
5
5
  };
6
6
  //# sourceMappingURL=invitationQueries.d.ts.map
@@ -4,7 +4,7 @@ import { X, Fail, q, makeError, annotateError } from '@endo/errors';
4
4
  import { E } from '@endo/eventual-send';
5
5
 
6
6
  export const makeInvitationQueryFns = invitationIssuer => {
7
- /** @type {GetInvitationDetails} */
7
+ /** @type {import('./types.ts').GetInvitationDetails} */
8
8
  const getInvitationDetails = async invitationP => {
9
9
  const onRejected = reason => {
10
10
  const err = makeError(
@@ -21,11 +21,11 @@ export const makeInvitationQueryFns = invitationIssuer => {
21
21
  return invAmount.value[0];
22
22
  };
23
23
 
24
- /** @type {GetInstance} */
24
+ /** @type {import('./types.ts').GetInstance} */
25
25
  const getInstance = invitation =>
26
26
  E.get(getInvitationDetails(invitation)).instance;
27
27
 
28
- /** @type {GetInstallation} */
28
+ /** @type {import('./types.ts').GetInstallation} */
29
29
  const getInstallation = invitation =>
30
30
  E.get(getInvitationDetails(invitation)).installation;
31
31
 
@@ -1,5 +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 { Baggage } from '@agoric/vat-data';
6
+ import type { ShutdownWithFailure } from '@agoric/swingset-vat';
7
+ import type { InvitationDetails } from '../types-index.js';
5
8
  //# sourceMappingURL=makeInvitation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"makeInvitation.d.ts","sourceRoot":"","sources":["makeInvitation.js"],"names":[],"mappings":"AAgBO,8CAHI,OAAO,kBAAkB,EAAE,OAAO,mBAClC,OAAO,sBAAsB,EAAE,mBAAmB,GAAG,SAAS;;;EA+BxE"}
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"}
@@ -5,14 +5,20 @@ 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
+ /**
9
+ * @import {Baggage} from '@agoric/vat-data';
10
+ * @import {ShutdownWithFailure} from '@agoric/swingset-vat';
11
+ * @import {InvitationDetails} from '../types-index.js';
12
+ */
13
+
8
14
  /**
9
15
  * Not deprecated because the first use below is still correct.
10
16
  */
11
17
  const ZOE_INVITATION_KIT = 'ZoeInvitationKit';
12
18
 
13
19
  /**
14
- * @param {import('@agoric/vat-data').Baggage} baggage
15
- * @param {import('@agoric/swingset-vat').ShutdownWithFailure | undefined} shutdownZoeVat
20
+ * @param {Baggage} baggage
21
+ * @param {ShutdownWithFailure | undefined} shutdownZoeVat
16
22
  */
17
23
  export const prepareInvitationKit = (baggage, shutdownZoeVat = undefined) => {
18
24
  const invitationKitBaggage = provideDurableMapStore(
@@ -1,2 +1,3 @@
1
1
  export function makeOfferMethod(offerDataAccess: any): Offer;
2
+ import type { Offer } from '@agoric/zoe';
2
3
  //# sourceMappingURL=offer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["offer.js"],"names":[],"mappings":"AAaO,6DA0DN"}
1
+ {"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["offer.js"],"names":[],"mappings":"AAeO,6DA0DN;2BA7DuB,aAAa"}
@@ -9,7 +9,9 @@ import { cleanProposal } from '../../cleanProposal.js';
9
9
  import { burnInvitation } from './burnInvitation.js';
10
10
  import { makeInvitationQueryFns } from '../invitationQueries.js';
11
11
 
12
- import '../internal-types.js';
12
+ /**
13
+ * @import {Offer} from '@agoric/zoe';
14
+ */
13
15
 
14
16
  export const makeOfferMethod = offerDataAccess => {
15
17
  /** @type {Offer} */
@@ -1 +1 @@
1
- {"version":3,"file":"originalZoeSeat.d.ts","sourceRoot":"","sources":["originalZoeSeat.js"],"names":[],"mappings":";;;;;;;;;;AA6BA;;;;;;;;;;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,8 +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 '../types-ambient.js';
11
- import '../internal-types.js';
12
10
  import {
13
11
  AmountKeywordRecordShape,
14
12
  ExitObjectShape,
@@ -1 +1 @@
1
- {"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AAoCO,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"}
@@ -19,12 +19,10 @@ import {
19
19
  InstanceAdminShape,
20
20
  } from '../typeGuards.js';
21
21
 
22
- // import '../internal-types.js';
23
-
24
22
  /**
25
23
  * @import {Baggage} from '@agoric/vat-data';
26
- * @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
27
- * @import {BundleCap, EndoZipBase64Bundle} from '@agoric/swingset-vat';
24
+ * @import {WeakMapStore} from '@agoric/store';
25
+ * @import {BundleCap} from '@agoric/swingset-vat';
28
26
  */
29
27
 
30
28
  /**
@@ -1,227 +1 @@
1
- /**
2
- * Zoe provides a framework for deploying and working with smart
3
- * contracts. It is accessed as a long-lived and well-trusted service
4
- * that enforces offer safety for the contracts that use it. Zoe has a
5
- * single `invitationIssuer` for the entirety of its lifetime. By
6
- * having a reference to Zoe, a user can get the `invitationIssuer`
7
- * and thus validate any `invitation` they receive from someone else.
8
- *
9
- * Zoe has two different facets: the public Zoe service and the
10
- * contract facet (ZCF). Each contract instance has a copy of ZCF
11
- * within its vat. The contract and ZCF never have direct access to
12
- * the users' payments or the Zoe purses.
13
- */
14
- type ZoeService = {
15
- /**
16
- * Zoe has a single `invitationIssuer` for the entirety of its
17
- * lifetime. By having a reference to Zoe, a user can get the
18
- * `invitationIssuer` and thus validate any `invitation` they receive
19
- * from someone else. The mint associated with the invitationIssuer
20
- * creates the ERTP payments that represent the right to interact with
21
- * a smart contract in particular ways.
22
- */
23
- getInvitationIssuer: GetInvitationIssuer;
24
- install: InstallBundle;
25
- installBundleID: InstallBundleID;
26
- startInstance: import("./utils.js").StartInstance;
27
- offer: Offer;
28
- getPublicFacet: import("./utils.js").GetPublicFacet;
29
- getIssuers: GetIssuers;
30
- getBrands: GetBrands;
31
- getTerms: import("./utils.js").GetTerms;
32
- getOfferFilter: GetOfferFilter;
33
- getInstallationForInstance: GetInstallationForInstance;
34
- getInstance: GetInstance;
35
- getInstallation: GetInstallation;
36
- /**
37
- * Return an object with the instance, installation, description, invitation
38
- * handle, and any custom properties specific to the contract.
39
- */
40
- getInvitationDetails: GetInvitationDetails;
41
- getFeeIssuer: GetFeeIssuer;
42
- getConfiguration: GetConfiguration;
43
- getBundleIDFromInstallation: GetBundleIDFromInstallation;
44
- /**
45
- * Return the pattern (if any) associated with the invitationHandle that a
46
- * proposal is required to match to be accepted by zoe.offer().
47
- */
48
- getProposalShapeForInvitation: (invitationHandle: InvitationHandle) => import("@endo/patterns").Pattern | undefined;
49
- };
50
- type GetInvitationIssuer = () => Promise<Issuer<"set", InvitationDetails>>;
51
- type GetFeeIssuer = () => Promise<Issuer<"nat">>;
52
- type GetConfiguration = () => {
53
- feeIssuerConfig: FeeIssuerConfig;
54
- };
55
- type GetIssuers = (instance: import("./utils.js").Instance<any>) => Promise<IssuerKeywordRecord>;
56
- type GetBrands = (instance: import("./utils.js").Instance<any>) => Promise<BrandKeywordRecord>;
57
- type GetOfferFilter = (instance: import("./utils.js").Instance<any>) => string[];
58
- type SetOfferFilter = (instance: Instance, strings: string[]) => any;
59
- type GetInstallationForInstance = (instance: import("./utils.js").Instance<any>) => Promise<Installation>;
60
- type GetInstance = (invitation: ERef<Invitation>) => Promise<import("./utils.js").Instance<any>>;
61
- type GetInstallation = (invitation: ERef<Invitation>) => Promise<Installation>;
62
- type GetInvitationDetails = (invitation: ERef<Invitation<any, any>>) => Promise<InvitationDetails>;
63
- /**
64
- * Create an installation by safely evaluating the code and
65
- * registering it with Zoe. Returns an installation.
66
- */
67
- type InstallBundle = (bundle: Bundle | SourceBundle, bundleLabel?: string | undefined) => Promise<Installation>;
68
- /**
69
- * Create an installation from a Bundle ID. Returns an installation.
70
- */
71
- type InstallBundleID = (bundleID: BundleID, bundleLabel?: string | undefined) => Promise<Installation>;
72
- /**
73
- * Verify that an alleged Installation is real, and return the Bundle ID it
74
- * will use for contract code.
75
- */
76
- type GetBundleIDFromInstallation = (allegedInstallation: ERef<Installation>) => Promise<BundleID>;
77
- /**
78
- * To redeem an invitation, the user normally provides a proposal (their
79
- * rules for the offer) as well as payments to be escrowed by Zoe. If
80
- * either the proposal or payments would be empty, indicate this by
81
- * omitting that argument or passing undefined, rather than passing an
82
- * empty record.
83
- *
84
- * The proposal has three parts: `want` and `give` are used by Zoe to
85
- * enforce offer safety, and `exit` is used to specify the particular
86
- * payout-liveness policy that Zoe can guarantee. `want` and `give`
87
- * are objects with keywords as keys and amounts as values.
88
- * `paymentKeywordRecord` is a record with keywords as keys, and the
89
- * values are the actual payments to be escrowed. A payment is
90
- * expected for every rule under `give`.
91
- */
92
- type Offer = <Result, Args = undefined>(invitation: ERef<Invitation<Result, Args>>, proposal?: Proposal, paymentKeywordRecord?: PaymentPKeywordRecord, offerArgs?: Args) => Promise<UserSeat<Result>>;
93
- /**
94
- * Zoe uses seats to access or manipulate offers. They let contracts and users
95
- * interact with them. Zoe has two kinds of seats. ZCFSeats are used within
96
- * contracts and with zcf methods. UserSeats represent offers external to Zoe
97
- * and the contract. The party who exercises an invitation and sends the offer()
98
- * message to Zoe gets a UserSeat that can check payouts' status or retrieve the
99
- * result of processing the offer in the contract. This varies, but examples are
100
- * a string and an invitation for another seat.
101
- *
102
- * Also, a UserSeat can be handed to an agent outside Zoe and the contract,
103
- * letting them query or monitor the current state, access the payouts and
104
- * result, and, if it's allowed for this seat, call tryExit().
105
- *
106
- * Since anyone can attempt to exit the seat if they have a reference to it, you
107
- * should only share a UserSeat with trusted parties.
108
- *
109
- * UserSeat includes queries for the associated offer's current state and an
110
- * operation to request that the offer exit, as follows:
111
- */
112
- type UserSeat<OR extends unknown = unknown> = {
113
- getProposal: () => Promise<ProposalRecord>;
114
- /**
115
- * returns a promise for a KeywordPaymentRecord containing all the payouts from
116
- * this seat. The promise will resolve after the seat has exited.
117
- */
118
- getPayouts: () => Promise<PaymentPKeywordRecord>;
119
- /**
120
- * returns a promise for the Payment corresponding to the indicated keyword.
121
- * The promise will resolve after the seat has exited. If there is no payment
122
- * corresponding to the keyword, an error will be thrown. (It used to return
123
- * undefined.)
124
- */
125
- getPayout: (keyword: Keyword) => Promise<Payment<any, any>>;
126
- getOfferResult: () => Promise<OR>;
127
- /**
128
- * Note: Only works if the seat's `proposal` has an `OnDemand` `exit` clause. Zoe's
129
- * offer-safety guarantee applies no matter how a seat's interaction with a
130
- * contract ends. Under normal circumstances, the participant might be able to
131
- * call `tryExit()`, or the contract might do something explicitly. On exiting,
132
- * the seat holder gets its current `allocation` and the `seat` can no longer
133
- * interact with the contract.
134
- */
135
- tryExit?: (() => void) | undefined;
136
- /**
137
- * Returns true if the seat has exited, false if it is still active.
138
- */
139
- hasExited: () => Promise<boolean>;
140
- /**
141
- * returns 1 if the proposal's
142
- * want clause was satisfied by the final allocation, otherwise 0. This is
143
- * numeric to support a planned enhancement called "multiples" which will allow
144
- * the return value to be any non-negative number. The promise will resolve
145
- * after the seat has exited.
146
- */
147
- numWantsSatisfied: () => Promise<0 | 1>;
148
- /**
149
- * return a promise for the final allocation. The promise will resolve after the
150
- * seat has exited.
151
- */
152
- getFinalAllocation: () => Promise<Allocation>;
153
- /**
154
- * returns a subscriber that
155
- * will be notified when the seat has exited or failed.
156
- */
157
- getExitSubscriber: () => Subscriber<Completion>;
158
- };
159
- type Proposal = Partial<ProposalRecord>;
160
- type ProposalRecord = {
161
- give: AmountKeywordRecord;
162
- want: AmountKeywordRecord;
163
- exit: ExitRule;
164
- };
165
- /**
166
- * The keys are keywords, and the values are amounts. For example:
167
- * { Asset: AmountMath.make(assetBrand, 5n), Price:
168
- * AmountMath.make(priceBrand, 9n) }
169
- */
170
- type AmountKeywordRecord = Record<Keyword, import("@agoric/ertp/src/types.js").AnyAmount>;
171
- type Waker = {
172
- wake: () => void;
173
- };
174
- type OnDemandExitRule = {
175
- onDemand: null;
176
- };
177
- type WaivedExitRule = {
178
- waived: null;
179
- };
180
- type AfterDeadlineExitRule = {
181
- afterDeadline: {
182
- timer: import("@agoric/time").TimerService;
183
- deadline: import("@agoric/time").Timestamp;
184
- };
185
- };
186
- /**
187
- * The possible keys are 'waived', 'onDemand', and 'afterDeadline'.
188
- * `timer` and `deadline` only are used for the `afterDeadline` key.
189
- * The possible records are:
190
- * `{ waived: null }`
191
- * `{ onDemand: null }`
192
- * `{ afterDeadline: { timer :Timer<Deadline>, deadline :Deadline } }`
193
- */
194
- type ExitRule = OnDemandExitRule | WaivedExitRule | AfterDeadlineExitRule;
195
- type Instance = import("./utils.js").Instance<any>;
196
- type ZCFSpec = {
197
- bundleCap: import("@agoric/swingset-vat").BundleCap;
198
- } | {
199
- name: string;
200
- } | {
201
- id: BundleID;
202
- };
203
- /**
204
- * Opaque type for a JSONable source bundle
205
- */
206
- type SourceBundle = Record<string, any>;
207
- type PaymentPKeywordRecord = Record<Keyword, ERef<Payment<any>>>;
208
- type PaymentKeywordRecord = Record<Keyword, Payment<any>>;
209
- type InvitationDetails = {
210
- installation: Installation;
211
- instance: import("./utils.js").Instance<any>;
212
- handle: InvitationHandle;
213
- description: string;
214
- customDetails?: Record<string, any> | undefined;
215
- };
216
- type Installation<SF = any> = import("./utils.js").Installation<SF>;
217
- type InstallationStart<I extends Installation> = import("./utils.js").InstallationStart<I>;
218
- type FeeIssuerConfig = {
219
- name: string;
220
- assetKind: AssetKind;
221
- displayInfo: DisplayInfo;
222
- };
223
- type ZoeFeesConfig = {
224
- getPublicFacetFee: NatValue;
225
- };
226
- type FeeMintAccess = Handle<"feeMintAccess">;
227
1
  //# sourceMappingURL=types-ambient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;yBAmBc,mBAAmB;aASnB,aAAa;qBACb,eAAe;mBACf,OAAO,YAAY,EAAE,aAAa;WAClC,KAAK;oBACL,OAAO,YAAY,EAAE,cAAc;gBACnC,UAAU;eACV,SAAS;cACT,OAAO,YAAY,EAAE,QAAQ;oBAC7B,cAAc;gCACd,0BAA0B;iBAC1B,WAAW;qBACX,eAAe;;;;;0BACf,oBAAoB;kBAGpB,YAAY;sBACZ,gBAAgB;iCAChB,2BAA2B;;;;;mCAC3B,CAAC,gBAAgB,EAAE,gBAAgB,KAAK,OAAO,gBAAgB,EAAE,OAAO,GAAG,SAAS;;iCAOrF,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;0BAKzC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;8BAKtB;IACR,eAAe,EAAE,eAAe,CAAC;CAClC;6BAKO,OAAO,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,KAChC,OAAO,CAAC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