@agoric/zoe 0.27.0-upgrade-20-dev-ef71cfd.0 → 0.27.0-upgrade-19-devnet-dev-5428c4d.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 (159) hide show
  1. package/bundles/bundle-contractFacet-js-meta.json +275 -270
  2. package/bundles/bundle-contractFacet.js +1 -1
  3. package/package.json +29 -29
  4. package/src/cleanProposal.d.ts +0 -2
  5. package/src/cleanProposal.d.ts.map +1 -1
  6. package/src/cleanProposal.js +2 -4
  7. package/src/contractFacet/exit.d.ts +1 -1
  8. package/src/contractFacet/exit.d.ts.map +1 -1
  9. package/src/contractFacet/internal-types.d.ts +8 -0
  10. package/src/contractFacet/internal-types.d.ts.map +1 -0
  11. package/src/contractFacet/internal-types.js +15 -0
  12. package/src/contractFacet/offerHandlerStorage.d.ts +1 -1
  13. package/src/contractFacet/rightsConservation.d.ts.map +1 -1
  14. package/src/contractFacet/rightsConservation.js +1 -0
  15. package/src/contractFacet/{types.ts → types-ambient.d.ts} +29 -66
  16. package/src/contractFacet/types-ambient.js +1 -0
  17. package/src/contractFacet/vatRoot.d.ts +2 -8
  18. package/src/contractFacet/vatRoot.d.ts.map +1 -1
  19. package/src/contractFacet/vatRoot.js +4 -5
  20. package/src/contractFacet/zcfMint.d.ts +2 -3
  21. package/src/contractFacet/zcfMint.d.ts.map +1 -1
  22. package/src/contractFacet/zcfMint.js +7 -7
  23. package/src/contractFacet/zcfSeat.js +2 -2
  24. package/src/contractFacet/zcfZygote.d.ts +1 -9
  25. package/src/contractFacet/zcfZygote.d.ts.map +1 -1
  26. package/src/contractFacet/zcfZygote.js +5 -17
  27. package/src/contractSupport/atomicTransfer.d.ts +0 -6
  28. package/src/contractSupport/atomicTransfer.d.ts.map +1 -1
  29. package/src/contractSupport/atomicTransfer.js +0 -4
  30. package/src/contractSupport/bondingCurves.js +1 -1
  31. package/src/contractSupport/index.d.ts +2 -2
  32. package/src/contractSupport/index.js +19 -2
  33. package/src/contractSupport/priceAuthorityInitial.d.ts +0 -2
  34. package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
  35. package/src/contractSupport/priceAuthorityInitial.js +1 -3
  36. package/src/contractSupport/ratio.d.ts +37 -0
  37. package/src/contractSupport/ratio.d.ts.map +1 -0
  38. package/src/contractSupport/ratio.js +419 -0
  39. package/src/contractSupport/safeMath.d.ts +11 -0
  40. package/src/contractSupport/safeMath.d.ts.map +1 -0
  41. package/src/contractSupport/safeMath.js +49 -0
  42. package/src/contractSupport/types-ambient.d.ts.map +1 -1
  43. package/src/contractSupport/types-ambient.js +0 -1
  44. package/src/contractSupport/zoeHelpers.d.ts +1 -6
  45. package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
  46. package/src/contractSupport/zoeHelpers.js +0 -1
  47. package/src/contracts/atomicSwap.d.ts +1 -1
  48. package/src/contracts/auction/index.d.ts +3 -3
  49. package/src/contracts/automaticRefund.d.ts +3 -3
  50. package/src/contracts/autoswap.d.ts +0 -4
  51. package/src/contracts/autoswap.d.ts.map +1 -1
  52. package/src/contracts/autoswap.js +0 -4
  53. package/src/contracts/barterExchange.d.ts +2 -2
  54. package/src/contracts/callSpread/fundedCallSpread.d.ts +1 -1
  55. package/src/contracts/callSpread/pricedCallSpread.d.ts +4 -4
  56. package/src/contracts/coveredCall-durable.d.ts +1 -1
  57. package/src/contracts/coveredCall.d.ts +1 -1
  58. package/src/contracts/loan/index.d.ts +1 -1
  59. package/src/contracts/loan/types-ambient.d.ts +13 -13
  60. package/src/contracts/loan/types-ambient.d.ts.map +1 -1
  61. package/src/contracts/loan/types-ambient.js +17 -17
  62. package/src/contracts/mintPayments.d.ts +2 -2
  63. package/src/contracts/oracle.d.ts +0 -3
  64. package/src/contracts/oracle.d.ts.map +1 -1
  65. package/src/contracts/oracle.js +0 -1
  66. package/src/contracts/priceAggregator.d.ts +0 -2
  67. package/src/contracts/priceAggregator.d.ts.map +1 -1
  68. package/src/contracts/priceAggregator.js +8 -10
  69. package/src/contracts/scaledPriceAuthority.d.ts +0 -1
  70. package/src/contracts/scaledPriceAuthority.d.ts.map +1 -1
  71. package/src/contracts/scaledPriceAuthority.js +0 -1
  72. package/src/contracts/sellItems.d.ts +1 -1
  73. package/src/contracts/simpleExchange.d.ts +0 -5
  74. package/src/contracts/simpleExchange.d.ts.map +1 -1
  75. package/src/contracts/simpleExchange.js +0 -4
  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 +2 -5
  80. package/src/contracts/valueVow.contract.d.ts.map +1 -1
  81. package/src/contracts/valueVow.contract.js +0 -1
  82. package/src/instanceRecordStorage.d.ts.map +1 -1
  83. package/src/instanceRecordStorage.js +1 -3
  84. package/src/internal-types.d.ts +5 -15
  85. package/src/internal-types.d.ts.map +1 -1
  86. package/src/internal-types.js +4 -9
  87. package/src/issuerRecord.d.ts +2 -3
  88. package/src/issuerRecord.d.ts.map +1 -1
  89. package/src/issuerRecord.js +2 -6
  90. package/src/issuerStorage.d.ts +2 -3
  91. package/src/issuerStorage.d.ts.map +1 -1
  92. package/src/issuerStorage.js +5 -6
  93. package/src/typeGuards.d.ts +6 -10
  94. package/src/typeGuards.d.ts.map +1 -1
  95. package/src/typeGuards.js +5 -7
  96. package/src/types-ambient.d.ts +40 -0
  97. package/src/types-ambient.d.ts.map +1 -1
  98. package/src/types-ambient.js +42 -4
  99. package/src/zoeService/feeMint.d.ts +0 -1
  100. package/src/zoeService/feeMint.d.ts.map +1 -1
  101. package/src/zoeService/feeMint.js +0 -4
  102. package/src/zoeService/installationStorage.d.ts +2 -3
  103. package/src/zoeService/installationStorage.d.ts.map +1 -1
  104. package/src/zoeService/installationStorage.js +5 -2
  105. package/src/zoeService/internal-types.d.ts +3 -11
  106. package/src/zoeService/internal-types.d.ts.map +1 -1
  107. package/src/zoeService/internal-types.js +3 -9
  108. package/src/zoeService/invitationQueries.d.ts +3 -3
  109. package/src/zoeService/invitationQueries.js +3 -3
  110. package/src/zoeService/makeInvitation.d.ts +0 -1
  111. package/src/zoeService/makeInvitation.d.ts.map +1 -1
  112. package/src/zoeService/makeInvitation.js +0 -3
  113. package/src/zoeService/offer/offer.d.ts +0 -1
  114. package/src/zoeService/offer/offer.d.ts.map +1 -1
  115. package/src/zoeService/offer/offer.js +1 -3
  116. package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
  117. package/src/zoeService/originalZoeSeat.js +1 -0
  118. package/src/zoeService/startInstance.d.ts.map +1 -1
  119. package/src/zoeService/startInstance.js +2 -0
  120. package/src/zoeService/types-ambient.d.ts +226 -0
  121. package/src/zoeService/types-ambient.d.ts.map +1 -1
  122. package/src/zoeService/types-ambient.js +327 -4
  123. package/src/zoeService/utils.d.ts +5 -13
  124. package/src/zoeService/utils.test-d.ts +0 -1
  125. package/src/zoeService/zoe.d.ts +1 -11
  126. package/src/zoeService/zoe.d.ts.map +1 -1
  127. package/src/zoeService/zoe.js +1 -8
  128. package/src/zoeService/zoeSeat.d.ts.map +1 -1
  129. package/src/zoeService/zoeSeat.js +2 -1
  130. package/src/zoeService/zoeStorageManager.d.ts +5 -5
  131. package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
  132. package/src/zoeService/zoeStorageManager.js +3 -4
  133. package/tools/fakeVatAdmin.d.ts +2 -9
  134. package/tools/fakeVatAdmin.d.ts.map +1 -1
  135. package/tools/fakeVatAdmin.js +10 -18
  136. package/tools/manualPriceAuthority.d.ts +1 -4
  137. package/tools/manualPriceAuthority.d.ts.map +1 -1
  138. package/tools/manualPriceAuthority.js +0 -1
  139. package/tools/scriptedOracle.d.ts +2 -6
  140. package/tools/scriptedOracle.d.ts.map +1 -1
  141. package/tools/scriptedOracle.js +0 -4
  142. package/tools/setup-zoe.d.ts +6 -12
  143. package/tools/setup-zoe.d.ts.map +1 -1
  144. package/tools/setup-zoe.js +5 -38
  145. package/tools/test-utils.d.ts +1 -1
  146. package/tools/test-utils.js +1 -1
  147. package/tools/types.d.ts +0 -1
  148. package/tools/types.d.ts.map +1 -1
  149. package/tools/types.js +0 -1
  150. package/src/contractFacet/types.d.ts +0 -184
  151. package/src/contractFacet/types.d.ts.map +0 -1
  152. package/src/types-index.d.ts +0 -4
  153. package/src/types-index.js +0 -2
  154. package/src/types.d.ts +0 -29
  155. package/src/types.d.ts.map +0 -1
  156. package/src/types.ts +0 -44
  157. package/src/zoeService/types.d.ts +0 -238
  158. package/src/zoeService/types.d.ts.map +0 -1
  159. package/src/zoeService/types.ts +0 -307
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/zoe",
3
- "version": "0.27.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
3
+ "version": "0.27.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
@@ -43,35 +43,35 @@
43
43
  },
44
44
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
45
45
  "dependencies": {
46
- "@agoric/base-zone": "0.1.1-upgrade-20-dev-ef71cfd.0+ef71cfd",
47
- "@agoric/ertp": "0.16.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
48
- "@agoric/internal": "0.4.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
49
- "@agoric/notifier": "0.7.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
50
- "@agoric/store": "0.9.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
51
- "@agoric/swingset-liveslots": "0.10.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
52
- "@agoric/swingset-vat": "0.33.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
53
- "@agoric/time": "0.3.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
54
- "@agoric/vat-data": "0.5.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
55
- "@agoric/vow": "0.2.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
56
- "@agoric/zone": "0.3.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
57
- "@endo/bundle-source": "^4.0.0",
58
- "@endo/captp": "^4.4.5",
59
- "@endo/common": "^1.2.10",
60
- "@endo/errors": "^1.2.10",
61
- "@endo/eventual-send": "^1.3.1",
62
- "@endo/exo": "^1.5.9",
63
- "@endo/far": "^1.1.11",
64
- "@endo/import-bundle": "^1.4.0",
65
- "@endo/marshal": "^1.6.4",
66
- "@endo/nat": "^5.1.0",
67
- "@endo/pass-style": "^1.5.0",
68
- "@endo/patterns": "^1.5.0",
69
- "@endo/promise-kit": "^1.1.10",
46
+ "@agoric/base-zone": "0.1.1-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
47
+ "@agoric/ertp": "0.16.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
48
+ "@agoric/internal": "0.4.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
49
+ "@agoric/notifier": "0.7.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
50
+ "@agoric/store": "0.9.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
51
+ "@agoric/swingset-liveslots": "0.10.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
52
+ "@agoric/swingset-vat": "0.33.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
53
+ "@agoric/time": "0.3.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
54
+ "@agoric/vat-data": "0.5.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
55
+ "@agoric/vow": "0.2.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
56
+ "@agoric/zone": "0.3.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
57
+ "@endo/bundle-source": "^3.5.1",
58
+ "@endo/captp": "^4.4.4",
59
+ "@endo/common": "^1.2.9",
60
+ "@endo/errors": "^1.2.9",
61
+ "@endo/eventual-send": "^1.3.0",
62
+ "@endo/exo": "^1.5.8",
63
+ "@endo/far": "^1.1.10",
64
+ "@endo/import-bundle": "^1.3.3",
65
+ "@endo/marshal": "^1.6.3",
66
+ "@endo/nat": "^5.0.14",
67
+ "@endo/pass-style": "^1.4.8",
68
+ "@endo/patterns": "^1.4.8",
69
+ "@endo/promise-kit": "^1.1.9",
70
70
  "yargs-parser": "^21.1.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@agoric/kmarshal": "0.1.1-upgrade-20-dev-ef71cfd.0+ef71cfd",
74
- "@endo/init": "^1.1.9",
73
+ "@agoric/kmarshal": "0.1.1-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
74
+ "@endo/init": "^1.1.8",
75
75
  "ava": "^5.3.0",
76
76
  "c8": "^10.1.2",
77
77
  "import-meta-resolve": "^4.1.0",
@@ -98,7 +98,7 @@
98
98
  "access": "public"
99
99
  },
100
100
  "typeCoverage": {
101
- "atLeast": 85.15
101
+ "atLeast": 85.11
102
102
  },
103
- "gitHead": "ef71cfdc9e62572cab9a3d2821dc446ce0d700c3"
103
+ "gitHead": "5428c4da67b53cef7ff53ba7b2a28cf6ec8f643a"
104
104
  }
@@ -6,6 +6,4 @@ export function cleanKeywords(uncleanKeywordRecord: {
6
6
  export function coerceAmountPatternKeywordRecord(allegedAmountKeywordRecord: any, getAssetKindByBrand: any): Record<string | number | symbol, any>;
7
7
  export function coerceAmountKeywordRecord(allegedAmountKeywordRecord: unknown, getAssetKindByBrand: any): AmountKeywordRecord;
8
8
  export function cleanProposal(proposal: Proposal, getAssetKindByBrand: GetAssetKindByBrand): ProposalRecord;
9
- import type { Proposal } from '@agoric/zoe';
10
- import type { ProposalRecord } from '@agoric/zoe';
11
9
  //# sourceMappingURL=cleanProposal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cleanProposal.d.ts","sourceRoot":"","sources":["cleanProposal.js"],"names":[],"mappings":"AASA,iCAAkC,GAAG,CAAC;AAiB/B,sDAYN;AAMM,oDAHI;IAAC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,GACnB,MAAM,EAAE,CAcpB;AAEM,mJAsBN;AAQM,sEAJI,OAAO,uBACP,GAAC,GACC,mBAAmB,CAa/B;AA4CM,wCAJI,QAAQ,uBACR,mBAAmB,GACjB,cAAc,CA6B1B;8BA9JoD,aAAa;oCAAb,aAAa"}
1
+ {"version":3,"file":"cleanProposal.d.ts","sourceRoot":"","sources":["cleanProposal.js"],"names":[],"mappings":"AAWA,iCAAkC,GAAG,CAAC;AAa/B,sDAYN;AAMM,oDAHI;IAAC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,GACnB,MAAM,EAAE,CAcpB;AAEM,mJAsBN;AAQM,sEAJI,OAAO,uBACP,GAAC,GACC,mBAAmB,CAa/B;AA4CM,wCAJI,QAAQ,uBACR,mBAAmB,GACjB,cAAc,CA6B1B"}
@@ -5,14 +5,12 @@ import { assertRecord } from '@endo/marshal';
5
5
  import { assertKey, assertPattern, mustMatch, isKey } from '@agoric/store';
6
6
  import { FullProposalShape } from './typeGuards.js';
7
7
 
8
+ import './internal-types.js';
9
+
8
10
  const { ownKeys } = Reflect;
9
11
 
10
12
  export const MAX_KEYWORD_LENGTH = 100;
11
13
 
12
- /**
13
- * @import {ExitRule, Proposal, ProposalRecord} from '@agoric/zoe';
14
- */
15
-
16
14
  const firstCapASCII = /^[A-Z][a-zA-Z0-9_$]*$/;
17
15
 
18
16
  // We adopt simple requirements on keywords so that they do not accidentally
@@ -1,2 +1,2 @@
1
- export function makeMakeExiter(baggage: any): (proposal: globalThis.ProposalRecord, zcfSeat: globalThis.ZCFSeat) => ExitObj;
1
+ export function makeMakeExiter(baggage: any): (proposal: ProposalRecord, zcfSeat: ZCFSeat) => ExitObj;
2
2
  //# sourceMappingURL=exit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["exit.js"],"names":[],"mappings":"AAwBO,4HAwGN"}
1
+ {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["exit.js"],"names":[],"mappings":"AAwBO,sGAwGN"}
@@ -0,0 +1,8 @@
1
+ type TestJigSetter = ({ zcf }: {
2
+ zcf: ZCF;
3
+ }) => void;
4
+ type ZCFZygote = {
5
+ startContract: (instanceAdminFromZoe: ERef<ZoeInstanceAdmin>, instanceRecordFromZoe: InstanceRecord, issuerStorageFromZoe: IssuerRecords, privateArgs?: object) => Promise<ExecuteContractResult>;
6
+ restartContract: (privateArgs?: object) => void;
7
+ };
8
+ //# sourceMappingURL=internal-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":"qBAGa,CAAE,EAAC,GAAG,EAAC,EAAE;IAAC,GAAG,EAAE,GAAG,CAAA;CAAC,KAAM,IAAI;;mBAK5B,CAAC,oBAAoB,EAAE,IAAI,CAAC,gBAAgB,CAAC,EACpD,qBAAqB,EAAE,cAAc,EACrC,oBAAoB,EAAE,aAAa,EACnC,WAAW,CAAC,EAAE,MAAM,KACnB,OAAO,CAAC,qBAAqB,CAAC;qBACxB,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI"}
@@ -0,0 +1,15 @@
1
+ // @jessie-check
2
+
3
+ /**
4
+ * @typedef {( {zcf}: {zcf: ZCF} ) => void} TestJigSetter
5
+ */
6
+
7
+ /**
8
+ * @typedef ZCFZygote
9
+ * @property {(instanceAdminFromZoe: ERef<ZoeInstanceAdmin>,
10
+ * instanceRecordFromZoe: InstanceRecord,
11
+ * issuerStorageFromZoe: IssuerRecords,
12
+ * privateArgs?: object,
13
+ * ) => Promise<ExecuteContractResult>} startContract
14
+ * @property {(privateArgs?: object) => void} restartContract
15
+ */
@@ -1,5 +1,5 @@
1
1
  export function makeOfferHandlerStorage(zcfBaggage: any): {
2
- storeOfferHandler: (offerHandler: any) => globalThis.Handle<"Invitation">;
2
+ storeOfferHandler: (offerHandler: any) => Handle<"Invitation">;
3
3
  takeOfferHandler: (invitationHandle: InvitationHandle, details?: Details) => OfferHandler;
4
4
  };
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"rightsConservation.d.ts","sourceRoot":"","sources":["rightsConservation.js"],"names":[],"mappings":"AAoFA;;;;;;;;;GASG;AACH,uDANW,MAAM,EAAE,cAER,MAAM,EAAE,GAEN,IAAI,CAMhB"}
1
+ {"version":3,"file":"rightsConservation.d.ts","sourceRoot":"","sources":["rightsConservation.js"],"names":[],"mappings":"AAqFA;;;;;;;;;GASG;AACH,uDANW,MAAM,EAAE,cAER,MAAM,EAAE,GAEN,IAAI,CAMhB"}
@@ -2,6 +2,7 @@ import { assert, Fail } from '@endo/errors';
2
2
  import { makeScalarMapStore } from '@agoric/store';
3
3
  import { AmountMath } from '@agoric/ertp';
4
4
 
5
+ import '../internal-types.js';
5
6
  /**
6
7
  * @import {MapStore} from '@agoric/store';
7
8
  */
@@ -1,49 +1,14 @@
1
- import type {
2
- AdditionalDisplayInfo,
3
- Amount,
4
- AnyAmount,
5
- AssetKind,
6
- Brand,
7
- DisplayInfo,
8
- Issuer,
9
- Payment,
10
- } from '@agoric/ertp';
11
- import type { Subscriber } from '@agoric/notifier';
12
- import type { ERef } from '@endo/far';
13
- import type { Passable } from '@endo/pass-style';
14
- import type { Key, Pattern } from '@endo/patterns';
15
- import type {
16
- AmountKeywordRecord,
17
- ExitRule,
18
- FeeMintAccess,
19
- Instance,
20
- InvitationDetails,
21
- Keyword,
22
- ProposalRecord,
23
- StandardTerms,
24
- UserSeat,
25
- ZoeService,
26
- } from '../types-index.js';
27
- import type { ContractStartFunction } from '../zoeService/utils.js';
1
+ /// <reference types="@agoric/ertp/exported" />
2
+ /// <reference types="@endo/pass-style" />
3
+ /// <reference path="../zoeService/utils.d.ts" />
28
4
 
29
5
  /**
30
6
  * Any passable non-thenable. Often an explanatory string.
31
7
  */
32
- export type Completion = Passable;
33
- export type ZCFMakeEmptySeatKit = (exit?: ExitRule | undefined) => ZcfSeatKit;
8
+ type Completion = import('@endo/pass-style').Passable;
9
+ type ZCFMakeEmptySeatKit = (exit?: ExitRule | undefined) => ZcfSeatKit;
34
10
 
35
- export type InvitationAmount = Amount<'set', InvitationDetails>;
36
-
37
- export type ZoeIssuerRecord<
38
- K extends AssetKind = AssetKind,
39
- M extends Key = Key,
40
- > = {
41
- brand: Brand<K>;
42
- issuer: Issuer<K, M>;
43
- assetKind: K;
44
- displayInfo?: DisplayInfo<K>;
45
- };
46
- export type Allocation = Record<Keyword, AnyAmount>;
11
+ type InvitationAmount = Amount<'set', InvitationDetails>;
47
12
 
48
13
  /**
49
14
  * Zoe Contract Facet
@@ -54,7 +19,7 @@ export type Allocation = Record<Keyword, AnyAmount>;
54
19
  * synchronously from within the contract, and usually is referred to
55
20
  * in code as zcf.
56
21
  */
57
- export type ZCF<CT = Record<string, unknown>> = {
22
+ type ZCF<CT = Record<string, unknown>> = {
58
23
  /**
59
24
  * - atomically reallocate amounts among seats.
60
25
  */
@@ -75,9 +40,7 @@ export type ZCF<CT = Record<string, unknown>> = {
75
40
  saveIssuer: <I extends Issuer>(
76
41
  issuerP: ERef<I>,
77
42
  keyword: Keyword,
78
- ) => Promise<
79
- I extends Issuer<infer K, infer M> ? ZoeIssuerRecord<K, M> : never
80
- >;
43
+ ) => Promise<I extends Issuer<infer K, infer M> ? IssuerRecord<K, M> : never>;
81
44
 
82
45
  /**
83
46
  * Make a credible Zoe invitation for a particular smart contract
@@ -102,7 +65,7 @@ export type ZCF<CT = Record<string, unknown>> = {
102
65
  getTerms: () => StandardTerms & CT;
103
66
  getBrandForIssuer: <K extends AssetKind>(issuer: Issuer<K>) => Brand<K>;
104
67
  getIssuerForBrand: <K_1 extends AssetKind>(brand: Brand<K_1>) => Issuer<K_1>;
105
- getAssetKind: (brand: Brand) => AssetKind;
68
+ getAssetKind: GetAssetKindByBrand;
106
69
  makeZCFMint: <K_2 extends AssetKind = 'nat'>(
107
70
  keyword: Keyword,
108
71
  assetKind?: K_2 | undefined,
@@ -118,14 +81,14 @@ export type ZCF<CT = Record<string, unknown>> = {
118
81
  getInstance: () => Instance;
119
82
  };
120
83
 
121
- export type TransferPart = [
84
+ type TransferPart = [
122
85
  fromSeat?: ZCFSeat,
123
86
  toSeat?: ZCFSeat,
124
87
  fromAmounts?: AmountKeywordRecord,
125
88
  toAmounts?: AmountKeywordRecord,
126
89
  ];
127
90
 
128
- export type ZCFRegisterFeeMint = (
91
+ type ZCFRegisterFeeMint = (
129
92
  keyword: Keyword,
130
93
  allegedFeeMintAccess: FeeMintAccess,
131
94
  ) => Promise<ZCFMint<'nat'>>;
@@ -143,9 +106,9 @@ export type ZCFRegisterFeeMint = (
143
106
  * will be appended to the returned jig object (overriding any
144
107
  * provided by the `testFn`).
145
108
  */
146
- export type SetTestJig = (testFn?: () => Record<string, unknown>) => void;
147
- export type ZCFMint<K extends AssetKind = AssetKind> = {
148
- getIssuerRecord: () => ZoeIssuerRecord<K>;
109
+ type SetTestJig = (testFn?: () => Record<string, unknown>) => void;
110
+ type ZCFMint<K extends AssetKind = AssetKind> = {
111
+ getIssuerRecord: () => IssuerRecord<K>;
149
112
  /**
150
113
  * All the amounts in gains must be of this ZCFMint's brand.
151
114
  * The gains' keywords are in the namespace of that seat.
@@ -172,8 +135,8 @@ export type ZCFMint<K extends AssetKind = AssetKind> = {
172
135
  * fail called with the reason for this failure, where reason is
173
136
  * normally an instanceof Error.
174
137
  */
175
- export type ZCFSeatFail = (reason: unknown) => Error;
176
- export type ZCFSeat = import('@endo/pass-style').RemotableObject & {
138
+ type ZCFSeatFail = (reason: unknown) => Error;
139
+ type ZCFSeat = import('@endo/pass-style').RemotableObject & {
177
140
  exit: (completion?: Completion) => void;
178
141
  fail: ZCFSeatFail;
179
142
  getSubscriber: () => Promise<Subscriber<Allocation>>;
@@ -183,26 +146,26 @@ export type ZCFSeat = import('@endo/pass-style').RemotableObject & {
183
146
  * @param brand used for filling in an empty amount if the `keyword`
184
147
  * is not present in the allocation
185
148
  */
186
- getAmountAllocated: <B extends Brand<any>>(
149
+ getAmountAllocated: <B extends Brand>(
187
150
  keyword: Keyword,
188
151
  brand?: B,
189
152
  ) => B extends Brand<infer K> ? Amount<K> : Amount;
190
153
  getCurrentAllocation: () => Allocation;
191
154
  isOfferSafe: (newAllocation: Allocation) => boolean;
192
155
  };
193
- export type ZcfSeatKit = {
156
+ type ZcfSeatKit = {
194
157
  zcfSeat: ZCFSeat;
195
158
  userSeat: Promise<UserSeat>;
196
159
  };
197
- export type HandleOffer<OR, OA> = (seat: ZCFSeat, offerArgs: OA) => OR;
198
- export type OfferHandler<OR = unknown, OA = never> =
160
+ type HandleOffer<OR, OA> = (seat: ZCFSeat, offerArgs: OA) => OR;
161
+ type OfferHandler<OR = unknown, OA = never> =
199
162
  | HandleOffer<OR, OA>
200
163
  | {
201
164
  handle: HandleOffer<OR, OA>;
202
165
  };
203
- export type ContractMeta<
166
+ type ContractMeta<
204
167
  SF extends // import inline to maintain ambient mode
205
- ContractStartFunction = ContractStartFunction,
168
+ import('../zoeService/utils').ContractStartFunction = import('../zoeService/utils').ContractStartFunction,
206
169
  > = {
207
170
  customTermsShape?: Record<
208
171
  Parameters<SF>[0] extends ZCF<infer CT> ? keyof CT : never,
@@ -221,25 +184,25 @@ export type ContractMeta<
221
184
  *
222
185
  * CAVEAT: assumes synchronous
223
186
  */
224
- export type ContractStartFn<PF = any, CF = any, CT = any, PA = any> = (
187
+ type ContractStartFn<PF = any, CF = any, CT = any, PA = any> = (
225
188
  zcf: ZCF<CT>,
226
189
  privateArgs: PA,
227
190
  baggage: import('@agoric/vat-data').Baggage,
228
191
  ) => ContractStartFnResult<PF, CF>;
229
- export type ContractStartFnResult<PF, CF> = {
192
+ type ContractStartFnResult<PF, CF> = {
230
193
  publicFacet?: PF;
231
194
  creatorFacet?: CF;
232
195
  creatorInvitation?: Promise<Invitation<any, any>> | undefined;
233
196
  };
234
197
 
235
- /**
236
- * @deprecated use the parameterized version
237
- */
238
- export type AdminFacet = import('../zoeService/utils.js').AdminFacet<any>;
198
+ // XXX redef, losing documentation
199
+ type ContractOf<S extends (...args: any) => any> =
200
+ import('../zoeService/utils').ContractOf<S>;
201
+ type AdminFacet = import('../zoeService/utils').AdminFacet<any>;
239
202
 
240
203
  declare const OfferReturn: unique symbol;
241
204
  declare const OfferArgs: unique symbol;
242
- export type Invitation<R = unknown, A = undefined> = Payment<
205
+ type Invitation<R = unknown, A = undefined> = Payment<
243
206
  'set',
244
207
  InvitationDetails
245
208
  > & {
@@ -0,0 +1 @@
1
+ // Dummy file for .d.ts twin to declare ambients
@@ -1,20 +1,14 @@
1
1
  /**
2
- * @import {ZoeService} from '@agoric/zoe';
3
- */
4
- /**
5
- * @param {VatPowers & { testJigSetter: ( {zcf}: {zcf: ZCF} ) => void }} powers
2
+ * @param {VatPowers & { testJigSetter: TestJigSetter }} powers
6
3
  * @param {{contractBundleCap: BundleCap, zoeService: ZoeService, invitationIssuer: Issuer<'set'>, privateArgs?: any}} vatParameters
7
4
  * @param {import('@agoric/vat-data').Baggage} baggage
8
5
  */
9
6
  export function buildRootObject(powers: VatPowers & {
10
- testJigSetter: ({ zcf }: {
11
- zcf: ZCF;
12
- }) => void;
7
+ testJigSetter: TestJigSetter;
13
8
  }, vatParameters: {
14
9
  contractBundleCap: BundleCap;
15
10
  zoeService: ZoeService;
16
11
  invitationIssuer: Issuer<"set">;
17
12
  privateArgs?: any;
18
13
  }, baggage: import("@agoric/vat-data").Baggage): Promise<import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>>;
19
- import type { ZoeService } from '@agoric/zoe';
20
14
  //# sourceMappingURL=vatRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vatRoot.d.ts","sourceRoot":"","sources":["vatRoot.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;;;;GAIG;AACH,wCAJW,SAAS,GAAG;IAAE,aAAa,EAAE,CAAE,EAAC,GAAG,EAAC,EAAE;QAAC,GAAG,EAAE,GAAG,CAAA;KAAC,KAAM,IAAI,CAAA;CAAE,iBAC5D;IAAC,iBAAiB,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,UAAU,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAC,WAC1G,OAAO,kBAAkB,EAAE,OAAO,oIA8D5C;gCApE4B,aAAa"}
1
+ {"version":3,"file":"vatRoot.d.ts","sourceRoot":"","sources":["vatRoot.js"],"names":[],"mappings":"AAiBA;;;;GAIG;AACH,wCAJW,SAAS,GAAG;IAAE,aAAa,EAAE,aAAa,CAAA;CAAE,iBAC5C;IAAC,iBAAiB,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,UAAU,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAC,WAC1G,OAAO,kBAAkB,EAAE,OAAO,oIA+D5C"}
@@ -11,14 +11,12 @@ import { Fail } from '@endo/errors';
11
11
  import { Far } from '@endo/marshal';
12
12
  import { E } from '@endo/far';
13
13
 
14
- import { makeZCFZygote } from './zcfZygote.js';
14
+ import '../internal-types.js';
15
15
 
16
- /**
17
- * @import {ZoeService} from '@agoric/zoe';
18
- */
16
+ import { makeZCFZygote } from './zcfZygote.js';
19
17
 
20
18
  /**
21
- * @param {VatPowers & { testJigSetter: ( {zcf}: {zcf: ZCF} ) => void }} powers
19
+ * @param {VatPowers & { testJigSetter: TestJigSetter }} powers
22
20
  * @param {{contractBundleCap: BundleCap, zoeService: ZoeService, invitationIssuer: Issuer<'set'>, privateArgs?: any}} vatParameters
23
21
  * @param {import('@agoric/vat-data').Baggage} baggage
24
22
  */
@@ -74,6 +72,7 @@ export async function buildRootObject(powers, vatParameters, baggage) {
74
72
  issuerStorageFromZoe,
75
73
  privateArgs = undefined,
76
74
  ) => {
75
+ /** @type {ZCFZygote} */
77
76
  return E(zcfZygote).startContract(
78
77
  zoeInstanceAdmin,
79
78
  instanceRecordFromZoe,
@@ -1,9 +1,8 @@
1
- export function sumAmountKeywordRecord(amr: AmountKeywordRecord, issuerRecord: ZoeIssuerRecord): Amount;
1
+ export function sumAmountKeywordRecord(amr: AmountKeywordRecord, issuerRecord: IssuerRecord): Amount;
2
2
  export function prepareZcMint(zcfBaggage: import("@agoric/vat-data").Baggage, recordIssuer: {
3
- (keyword: string, issuerRecord: ZoeIssuerRecord): void;
3
+ (keyword: string, issuerRecord: IssuerRecord): void;
4
4
  }, getAssetKindByBrand: GetAssetKindByBrand, makeEmptySeatKit: (exit?: undefined) => {
5
5
  zcfSeat: any;
6
6
  userSeat: Promise<UserSeat>;
7
7
  }, reallocator: ZcfMintReallocator): (keyword: string, zoeMintP: ERef<ZoeMint<K>>) => Promise<ZCFMint<K>>;
8
- import type { ZCFMint } from '@agoric/zoe';
9
8
  //# sourceMappingURL=zcfMint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"AAmBO,4CAJI,mBAAmB,gBACnB,eAAe,GACb,MAAM,CAYlB;AASM,0CANI,OAAO,kBAAkB,EAAE,OAAO,gBAClC;IAAE,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,GAAG,IAAI,CAAA;CAAE,uBAC1D,mBAAmB,oBACnB,CAAC,IAAI,CAAC,EAAE,SAAS,KAAK;IAAE,OAAO,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,eACnE,kBAAkB,IA0Gb,SAJH,MAIU,EAAE,UAHZ,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAGK,KAFlB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAWjC;6BA5IkC,aAAa"}
1
+ {"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"AAmBO,4CAJI,mBAAmB,gBACnB,YAAY,GACV,MAAM,CAYlB;AASM,0CANI,OAAO,kBAAkB,EAAE,OAAO,gBAClC;IAAE,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,uBACvD,mBAAmB,oBACnB,CAAC,IAAI,CAAC,EAAE,SAAS,KAAK;IAAE,OAAO,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,eACnE,kBAAkB,IA0Gb,SAJH,MAIU,EAAE,UAHZ,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAGK,KAFlB,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAWjC"}
@@ -6,15 +6,15 @@ import { prepareExoClass } from '@agoric/vat-data';
6
6
  import { coerceAmountKeywordRecord } from '../cleanProposal.js';
7
7
  import { assertFullIssuerRecord, makeIssuerRecord } from '../issuerRecord.js';
8
8
  import { addToAllocation, subtractFromAllocation } from './allocationMath.js';
9
- import { ZcfMintI } from './typeGuards.js';
10
9
 
11
- /**
12
- * @import {ZCFMint, ZCFSeat} from '@agoric/zoe';
13
- */
10
+ import '../internal-types.js';
11
+ import { ZcfMintI } from './typeGuards.js';
12
+ import './internal-types.js';
13
+ import './types-ambient.js';
14
14
 
15
15
  /**
16
16
  * @param {AmountKeywordRecord} amr
17
- * @param {ZoeIssuerRecord} issuerRecord
17
+ * @param {IssuerRecord} issuerRecord
18
18
  * @returns {Amount}
19
19
  */
20
20
  export const sumAmountKeywordRecord = (amr, issuerRecord) => {
@@ -31,7 +31,7 @@ export const sumAmountKeywordRecord = (amr, issuerRecord) => {
31
31
 
32
32
  /**
33
33
  * @param {import('@agoric/vat-data').Baggage} zcfBaggage
34
- * @param {{ (keyword: string, issuerRecord: ZoeIssuerRecord): void }} recordIssuer
34
+ * @param {{ (keyword: string, issuerRecord: IssuerRecord): void }} recordIssuer
35
35
  * @param {GetAssetKindByBrand} getAssetKindByBrand
36
36
  * @param {(exit?: undefined) => { zcfSeat: any; userSeat: Promise<UserSeat> }} makeEmptySeatKit
37
37
  * @param {ZcfMintReallocator} reallocator
@@ -51,7 +51,7 @@ export const prepareZcMint = (
51
51
  * @template {AssetKind} [K=AssetKind]
52
52
  * @param {string} keyword
53
53
  * @param {ZoeMint<K>} zoeMint
54
- * @param {Required<ZoeIssuerRecord<K>>} issuerRecord
54
+ * @param {Required<IssuerRecord<K>>} issuerRecord
55
55
  */
56
56
  (keyword, zoeMint, issuerRecord) => {
57
57
  const {
@@ -21,8 +21,8 @@ import { makeAllocationMap } from './reallocate.js';
21
21
  import { TransferPartShape } from '../contractSupport/atomicTransfer.js';
22
22
 
23
23
  /**
24
- * @import {WeakMapStore} from '@agoric/store';
25
- * @import {TransferPart, ZCFSeat} from '@agoric/zoe';
24
+ * @import {LegacyWeakMap, WeakMapStore} from '@agoric/store';
25
+ * @import {MapStore} from '@agoric/swingset-liveslots';
26
26
  */
27
27
 
28
28
  /**
@@ -1,10 +1,2 @@
1
- export function makeZCFZygote(powers: VatPowers, zoeService: ERef<ZoeService>, invitationIssuer: Issuer<"set">, testJigSetter: ({ zcf }: {
2
- zcf: ZCF;
3
- }) => void, contractBundleCap: BundleCap, zcfBaggage?: import("@agoric/vat-data").Baggage): Promise<ZCFZygote>;
4
- export type ZCFZygote = {
5
- startContract: (instanceAdminFromZoe: ERef<ZoeInstanceAdmin>, instanceRecordFromZoe: InstanceRecord, issuerStorageFromZoe: IssuerRecords, privateArgs?: object) => Promise<ExecuteContractResult>;
6
- restartContract: (privateArgs?: object) => void;
7
- };
8
- import type { ZoeService } from '@agoric/zoe';
9
- import type { ZCF } from '@agoric/zoe';
1
+ export function makeZCFZygote(powers: VatPowers, zoeService: ERef<ZoeService>, invitationIssuer: Issuer<"set">, testJigSetter: TestJigSetter, contractBundleCap: BundleCap, zcfBaggage?: import("@agoric/vat-data").Baggage): Promise<ZCFZygote>;
10
2
  //# sourceMappingURL=zcfZygote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zcfZygote.d.ts","sourceRoot":"","sources":["zcfZygote.js"],"names":[],"mappings":"AA6DO,sCARI,SAAS,cACT,IAAI,CAAC,UAAU,CAAC,oBAChB,MAAM,CAAC,KAAK,CAAC,iBACb,CAAE,EAAC,GAAG,EAAC,EAAE;IAAC,GAAG,EAAE,GAAG,CAAA;CAAC,KAAM,IAAI,qBAC7B,SAAS,eACT,OAAO,kBAAkB,EAAE,OAAO,GAChC,OAAO,CAAC,SAAS,CAAC,CAod9B;;mBAvea,CAAC,oBAAoB,EAAE,IAAI,CAAC,gBAAgB,CAAC,EACpD,qBAAqB,EAAE,cAAc,EACrC,oBAAoB,EAAE,aAAa,EACnC,WAAW,CAAC,EAAE,MAAM,KACnB,OAAO,CAAC,qBAAqB,CAAC;qBACxB,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI;;gCAV8D,aAAa;yBAAb,aAAa"}
1
+ {"version":3,"file":"zcfZygote.d.ts","sourceRoot":"","sources":["zcfZygote.js"],"names":[],"mappings":"AAiDO,sCARI,SAAS,cACT,IAAI,CAAC,UAAU,CAAC,oBAChB,MAAM,CAAC,KAAK,CAAC,iBACb,aAAa,qBACb,SAAS,eACT,OAAO,kBAAkB,EAAE,OAAO,GAChC,OAAO,CAAC,SAAS,CAAC,CAod9B"}
@@ -30,21 +30,9 @@ import { prepareZcMint } from './zcfMint.js';
30
30
  import { ZcfI } from './typeGuards.js';
31
31
 
32
32
  /// <reference path="../internal-types.js" />
33
+ /// <reference path="./internal-types.js" />
33
34
 
34
- /**
35
- * @import {IssuerOptionsRecord} from '@agoric/ertp';
36
- * @import {ContractMeta, ContractStartFn, SetTestJig, ZCF, ZCFMint, ZCFRegisterFeeMint, ZoeService} from '@agoric/zoe';
37
- */
38
-
39
- /**
40
- * @typedef ZCFZygote
41
- * @property {(instanceAdminFromZoe: ERef<ZoeInstanceAdmin>,
42
- * instanceRecordFromZoe: InstanceRecord,
43
- * issuerStorageFromZoe: IssuerRecords,
44
- * privateArgs?: object,
45
- * ) => Promise<ExecuteContractResult>} startContract
46
- * @property {(privateArgs?: object) => void} restartContract
47
- */
35
+ /** @import {IssuerOptionsRecord} from '@agoric/ertp' */
48
36
 
49
37
  /**
50
38
  * Make the ZCF vat in zygote-usable form. First, a generic ZCF is
@@ -54,7 +42,7 @@ import { ZcfI } from './typeGuards.js';
54
42
  * @param {VatPowers} powers
55
43
  * @param {ERef<ZoeService>} zoeService
56
44
  * @param {Issuer<'set'>} invitationIssuer
57
- * @param {( {zcf}: {zcf: ZCF} ) => void} testJigSetter
45
+ * @param {TestJigSetter} testJigSetter
58
46
  * @param {BundleCap} contractBundleCap
59
47
  * @param {import('@agoric/vat-data').Baggage} zcfBaggage
60
48
  * @returns {Promise<ZCFZygote>}
@@ -104,7 +92,7 @@ export const makeZCFZygote = async (
104
92
 
105
93
  /**
106
94
  * @param {string} keyword
107
- * @param {ZoeIssuerRecord} issuerRecord
95
+ * @param {IssuerRecord} issuerRecord
108
96
  */
109
97
  const recordIssuer = (keyword, issuerRecord) => {
110
98
  getInstanceRecHolder().addIssuer(keyword, issuerRecord);
@@ -250,7 +238,7 @@ export const makeZCFZygote = async (
250
238
  } else {
251
239
  bundle = contractBundleCap;
252
240
  }
253
- return /** @type {any} */ (evalContractBundle(bundle));
241
+ return evalContractBundle(bundle);
254
242
  };
255
243
  // evaluate the contract (either the first version, or an upgrade)
256
244
  const bundleResult = await evaluateContract();
@@ -1,12 +1,6 @@
1
- /**
2
- * @import {TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
3
- */
4
1
  export const TransferPartShape: import("@endo/patterns").Matcher;
5
2
  export function atomicRearrange(zcf: ZCF, transfers: TransferPart[]): void;
6
3
  export function fromOnly(fromSeat: ZCFSeat, fromAmounts: AmountKeywordRecord): TransferPart;
7
4
  export function toOnly(toSeat: ZCFSeat, toAmounts: AmountKeywordRecord): TransferPart;
8
5
  export function atomicTransfer(zcf: ZCF, fromSeat?: ZCFSeat, toSeat?: ZCFSeat, fromAmounts?: AmountKeywordRecord, toAmounts?: AmountKeywordRecord): void;
9
- import type { ZCF } from '@agoric/zoe';
10
- import type { TransferPart } from '@agoric/zoe';
11
- import type { ZCFSeat } from '@agoric/zoe';
12
6
  //# sourceMappingURL=atomicTransfer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"atomicTransfer.d.ts","sourceRoot":"","sources":["atomicTransfer.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH,iEAGE;AAyCK,qCAHI,GAAG,aACH,YAAY,EAAE,QAIxB;AAcM,mCAJI,OAAO,eACP,mBAAmB,GACjB,YAAY,CAGmB;AAcrC,+BAJI,OAAO,aACP,mBAAmB,GACjB,YAAY,CAG0B;AAW5C,oCANI,GAAG,aACH,OAAO,WACP,OAAO,gBACP,mBAAmB,cACnB,mBAAmB,QAQgD;yBAhGjC,aAAa;kCAAb,aAAa;6BAAb,aAAa"}
1
+ {"version":3,"file":"atomicTransfer.d.ts","sourceRoot":"","sources":["atomicTransfer.js"],"names":[],"mappings":"AAGA,iEAGE;AAyCK,qCAHI,GAAG,aACH,YAAY,EAAE,QAIxB;AAcM,mCAJI,OAAO,eACP,mBAAmB,GACjB,YAAY,CAGmB;AAcrC,+BAJI,OAAO,aACP,mBAAmB,GACjB,YAAY,CAG0B;AAW5C,oCANI,GAAG,aACH,OAAO,WACP,OAAO,gBACP,mBAAmB,cACnB,mBAAmB,QAQgD"}
@@ -1,10 +1,6 @@
1
1
  import { M } from '@agoric/store';
2
2
  import { AmountKeywordRecordShape, SeatShape } from '../typeGuards.js';
3
3
 
4
- /**
5
- * @import {TransferPart, ZCF, ZCFSeat} from '@agoric/zoe';
6
- */
7
-
8
4
  export const TransferPartShape = M.splitArray(
9
5
  harden([M.opt(SeatShape), M.opt(SeatShape), M.opt(AmountKeywordRecordShape)]),
10
6
  harden([M.opt(AmountKeywordRecordShape)]),
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { Nat } from '@endo/nat';
4
4
  import { Fail } from '@endo/errors';
5
- import { natSafeMath } from '@agoric/ertp/src/safeMath.js';
5
+ import { natSafeMath } from './safeMath.js';
6
6
 
7
7
  const { subtract, add, multiply, floorDivide } = natSafeMath;
8
8
 
@@ -1,6 +1,5 @@
1
- export { natSafeMath } from "@agoric/ertp/src/safeMath.js";
1
+ export { natSafeMath } from "./safeMath.js";
2
2
  export { makeStateMachine } from "./stateMachine.js";
3
- export * from "@agoric/ertp/src/ratio.js";
4
3
  export * from "./durability.js";
5
4
  export * from "./prepare-ownable.js";
6
5
  export * from "./priceAuthority.js";
@@ -11,4 +10,5 @@ export * from "./topics.js";
11
10
  export { getInputPrice, getOutputPrice, calcLiqValueToMint, calcValueToRemove, calcSecondaryRequired } from "./bondingCurves.js";
12
11
  export { atomicRearrange, atomicTransfer, fromOnly, toOnly } from "./atomicTransfer.js";
13
12
  export { defaultAcceptanceMsg, swap, fitProposalShape, assertProposalShape, assertIssuerKeywords, satisfies, assertNatAssetKind, swapExact, depositToSeat, withdrawFromSeat, saveAllIssuers, offerTo } from "./zoeHelpers.js";
13
+ export { makeRatio, makeRatioFromAmounts, floorMultiplyBy, floorDivideBy, ceilMultiplyBy, ceilDivideBy, assertIsRatio, invertRatio, oneMinus, addRatios, multiplyRatios, ratiosSame, quantize, ratioGTE, subtractRatios, ratioToNumber } from "./ratio.js";
14
14
  //# sourceMappingURL=index.d.ts.map