@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
@@ -13,13 +13,13 @@
13
13
  * @param {ZCF<{}>} zcf
14
14
  */
15
15
  export function start(zcf: ZCF<{}>): {
16
- creatorInvitation: Promise<globalThis.Invitation<unknown, never>>;
16
+ creatorInvitation: Promise<Invitation<unknown, never>>;
17
17
  publicFacet: {
18
18
  getOffersCount: () => bigint;
19
- makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
19
+ makeInvitation: () => Promise<Invitation<unknown, never>>;
20
20
  } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
21
21
  getOffersCount: () => bigint;
22
- makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
22
+ makeInvitation: () => Promise<Invitation<unknown, never>>;
23
23
  }>;
24
24
  };
25
25
  //# sourceMappingURL=automaticRefund.d.ts.map
@@ -1,6 +1,3 @@
1
- /**
2
- * @import {OfferHandler, ZCF} from '@agoric/zoe';
3
- */
4
1
  /**
5
2
  * Autoswap is a rewrite of Uniswap. Please see the documentation for
6
3
  * more https://agoric.com/documentation/zoe/guide/contracts/autoswap.html
@@ -43,5 +40,4 @@
43
40
  export function start(zcf: ZCF): Promise<{
44
41
  publicFacet: AutoswapPublicFacet;
45
42
  }>;
46
- import type { ZCF } from '@agoric/zoe';
47
43
  //# sourceMappingURL=autoswap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"autoswap.d.ts","sourceRoot":"","sources":["autoswap.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,2BAFW,GAAG;;GAwVb;yBAhYmC,aAAa"}
1
+ {"version":3,"file":"autoswap.d.ts","sourceRoot":"","sources":["autoswap.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,2BAFW,GAAG;;GAwVb"}
@@ -13,10 +13,6 @@ import {
13
13
  calcSecondaryRequired,
14
14
  } from '../contractSupport/index.js';
15
15
 
16
- /**
17
- * @import {OfferHandler, ZCF} from '@agoric/zoe';
18
- */
19
-
20
16
  /**
21
17
  * Autoswap is a rewrite of Uniswap. Please see the documentation for
22
18
  * more https://agoric.com/documentation/zoe/guide/contracts/autoswap.html
@@ -14,9 +14,9 @@
14
14
  */
15
15
  export function start(zcf: ZCF): {
16
16
  publicFacet: {
17
- makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
17
+ makeInvitation: () => Promise<Invitation<unknown, never>>;
18
18
  } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
19
- makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
19
+ makeInvitation: () => Promise<Invitation<unknown, never>>;
20
20
  }>;
21
21
  };
22
22
  //# sourceMappingURL=barterExchange.d.ts.map
@@ -58,7 +58,7 @@ export function start(zcf: ZCF<{
58
58
  expiration: bigint;
59
59
  underlyingAmount: Amount;
60
60
  }>): Promise<{
61
- creatorInvitation: Promise<globalThis.Invitation<unknown, never>>;
61
+ creatorInvitation: Promise<Invitation<unknown, never>>;
62
62
  }>;
63
63
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
64
64
  //# sourceMappingURL=fundedCallSpread.d.ts.map
@@ -53,13 +53,13 @@ export function start(zcf: ZCF<{
53
53
  }>): {
54
54
  creatorFacet: {
55
55
  makeInvitationPair: (longCollateralShare: any) => {
56
- longInvitation: Promise<globalThis.Invitation<unknown, never>>;
57
- shortInvitation: Promise<globalThis.Invitation<unknown, never>>;
56
+ longInvitation: Promise<Invitation<unknown, never>>;
57
+ shortInvitation: Promise<Invitation<unknown, never>>;
58
58
  };
59
59
  } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
60
60
  makeInvitationPair: (longCollateralShare: any) => {
61
- longInvitation: Promise<globalThis.Invitation<unknown, never>>;
62
- shortInvitation: Promise<globalThis.Invitation<unknown, never>>;
61
+ longInvitation: Promise<Invitation<unknown, never>>;
62
+ shortInvitation: Promise<Invitation<unknown, never>>;
63
63
  };
64
64
  }>;
65
65
  };
@@ -15,7 +15,7 @@
15
15
  */
16
16
  export function start(zcf: ZCF, _privateArgs: unknown, instanceBaggage: import("@agoric/vat-data").Baggage): Promise<{
17
17
  creatorFacet: import("@endo/exo").Guarded<{
18
- makeInvitation(): Promise<globalThis.Invitation<unknown, never>>;
18
+ makeInvitation(): Promise<Invitation<unknown, never>>;
19
19
  }>;
20
20
  }>;
21
21
  //# sourceMappingURL=coveredCall-durable.d.ts.map
@@ -59,6 +59,6 @@
59
59
  * @param {ZCF} zcf
60
60
  */
61
61
  export function start(zcf: ZCF): {
62
- creatorInvitation: Promise<globalThis.Invitation<unknown, never>>;
62
+ creatorInvitation: Promise<Invitation<unknown, never>>;
63
63
  };
64
64
  //# sourceMappingURL=coveredCall.d.ts.map
@@ -62,7 +62,7 @@ export function start(zcf: ZCF<{
62
62
  interestRate: Ratio;
63
63
  interestPeriod: bigint;
64
64
  }>): Promise<{
65
- creatorInvitation: Promise<globalThis.Invitation<unknown, undefined>>;
65
+ creatorInvitation: Promise<Invitation<unknown, undefined>>;
66
66
  }>;
67
67
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
68
68
  //# sourceMappingURL=index.d.ts.map
@@ -39,7 +39,7 @@ type LenderSeatProperty = {
39
39
  /**
40
40
  * The ZCFSeat representing the lender's position in the contract.
41
41
  */
42
- lenderSeat: import("../../types-index").ZCFSeat;
42
+ lenderSeat: ZCFSeat;
43
43
  };
44
44
  /**
45
45
  * The loan now has a lenderSeat, which is added to the config.
@@ -50,7 +50,7 @@ type BorrowerConfigProperties = {
50
50
  * The ZCFSeat holding the collateral in escrow after the borrower
51
51
  * escrows it
52
52
  */
53
- collateralSeat: import("../../types-index").ZCFSeat;
53
+ collateralSeat: ZCFSeat;
54
54
  /**
55
55
  * A function to get the current debt
56
56
  */
@@ -66,7 +66,7 @@ type BorrowerConfigPropertiesMinusDebt = {
66
66
  * The ZCFSeat holding the collateral in escrow after the borrower
67
67
  * escrows it
68
68
  */
69
- collateralSeat: import("../../types-index").ZCFSeat;
69
+ collateralSeat: ZCFSeat;
70
70
  /**
71
71
  * PromiseKit that includes a promise that resolves to a PriceQuote
72
72
  * when liquidation is triggered
@@ -78,15 +78,15 @@ type BorrowerConfigPropertiesMinusDebt = {
78
78
  */
79
79
  type LoanConfigWithBorrower = LoanConfigWithLender & BorrowerConfigProperties;
80
80
  type LoanConfigWithBorrowerMinusDebt = LoanConfigWithLender & BorrowerConfigPropertiesMinusDebt;
81
- type ScheduleLiquidation = (zcf: import("../../types-index").ZCF, config: LoanConfigWithBorrower) => any;
82
- type MakeLendInvitation = (zcf: import("../../types-index").ZCF, config: LoanTerms) => Promise<import("../../types-index").Invitation>;
83
- type MakeBorrowInvitation = (zcf: import("../../types-index").ZCF, config: LoanConfigWithLender) => Promise<import("../../types-index").Invitation>;
84
- type MakeCloseLoanInvitation = (zcf: import("../../types-index").ZCF, config: LoanConfigWithBorrower) => Promise<import("../../types-index").Invitation>;
81
+ type ScheduleLiquidation = (zcf: ZCF, config: LoanConfigWithBorrower) => any;
82
+ type MakeLendInvitation = (zcf: ZCF, config: LoanTerms) => Promise<Invitation>;
83
+ type MakeBorrowInvitation = (zcf: ZCF, config: LoanConfigWithLender) => Promise<Invitation>;
84
+ type MakeCloseLoanInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Promise<Invitation>;
85
85
  /**
86
86
  * Allows holder to add collateral to the contract. Exits the seat
87
87
  * after adding.
88
88
  */
89
- type MakeAddCollateralInvitation = (zcf: import("../../types-index").ZCF, config: LoanConfigWithBorrower) => Promise<import("../../types-index").Invitation>;
89
+ type MakeAddCollateralInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Promise<Invitation>;
90
90
  type MakeDebtCalculator = (debtCalculatorConfig: DebtCalculatorConfig) => any;
91
91
  type CalcInterestFn = (oldDebt: Amount<"nat">, interestRate: Ratio) => Amount<"nat">;
92
92
  type DebtCalculatorConfig = {
@@ -108,7 +108,7 @@ type DebtCalculatorConfig = {
108
108
  * the period at which the outstanding debt increases by the interestRate
109
109
  */
110
110
  interestPeriod: import("@agoric/time").RelativeTime;
111
- zcf: import("../../types-index").ZCF;
111
+ zcf: ZCF;
112
112
  configMinusGetDebt: LoanConfigWithBorrowerMinusDebt;
113
113
  /**
114
114
  * The starting point from which to calculate
@@ -117,7 +117,7 @@ type DebtCalculatorConfig = {
117
117
  basetime: import("@agoric/time").Timestamp;
118
118
  };
119
119
  type ConfigMinusGetDebt = {
120
- collateralSeat: import("../../types-index").ZCFSeat;
120
+ collateralSeat: ZCFSeat;
121
121
  liquidationPromiseKit: PromiseRecord<any>;
122
122
  mmr?: bigint | undefined;
123
123
  autoswapInstance: Handle<"Instance">;
@@ -125,18 +125,18 @@ type ConfigMinusGetDebt = {
125
125
  periodNotifier: PeriodNotifier;
126
126
  interestRate: bigint;
127
127
  interestPeriod: import("@agoric/time").RelativeTime;
128
- lenderSeat: import("../../types-index").ZCFSeat;
128
+ lenderSeat: ZCFSeat;
129
129
  };
130
130
  type BorrowFacet = {
131
131
  /**
132
132
  * Make an invitation to close the loan by repaying the debt
133
133
  * (including interest).
134
134
  */
135
- makeCloseLoanInvitation: () => Promise<import("../../types-index").Invitation>;
135
+ makeCloseLoanInvitation: () => Promise<Invitation>;
136
136
  /**
137
137
  * Make an invitation to add collateral to protect against liquidation
138
138
  */
139
- makeAddCollateralInvitation: () => Promise<import("../../types-index").Invitation>;
139
+ makeAddCollateralInvitation: () => Promise<Invitation>;
140
140
  /**
141
141
  * Get a promise for a priceQuote that will resolve if liquidation
142
142
  * occurs. The priceQuote is for the value of the collateral that
@@ -1 +1 @@
1
- {"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";;;;;;;sBACa,QAAQ,CAAC,OAAO,cAAc,EAAE,eAAe,CAAC;;;;;;;wBAUhD,QAAQ;;;;;;SAUP,KAAK;sBAGL,gBAAgB;;;;;oBAEhB,OAAO,yBAAyB,EAAE,cAAc;oBAKhD,cAAc;;;;;kBAEd,KAAK;oBAIL,OAAO,cAAc,EAAE,YAAY;eAEnC,KAAK;qBACL,KAAK;;;;;;gBAKL,OAAO,mBAAmB,EAAE,OAAO;;;;;4BAMpC,SAAS,GAAG,kBAAkB;;;;;;oBAQ7B,OAAO,mBAAmB,EAAE,OAAO;;;;aAKnC,MAAM,MAAM,CAAC,KAAK,CAAC;;;;;2BAInB,aAAa,CAAC,OAAO,yBAAyB,EAAE,UAAU,CAAC;;;;;;;oBAS3D,OAAO,mBAAmB,EAAE,OAAO;;;;;2BAKnC,aAAa,CAAC,OAAO,yBAAyB,EAAE,UAAU,CAAC;;;;;8BAO5D,oBAAoB,GAAG,wBAAwB;uCAM/C,oBAAoB,GAAG,iCAAiC;iCAM1D,OAAO,mBAAmB,EAAE,GAAG,UAC/B,sBAAsB;gCAKtB,OAAO,mBAAmB,EAAE,GAAG,UAC/B,SAAS,KACP,OAAO,CAAC,OAAO,mBAAmB,EAAE,UAAU,CAAC;kCAKjD,OAAO,mBAAmB,EAAE,GAAG,UAC/B,oBAAoB,KAClB,OAAO,CAAC,OAAO,mBAAmB,EAAE,UAAU,CAAC;qCAKjD,OAAO,mBAAmB,EAAE,GAAG,UAC/B,sBAAsB,KACpB,OAAO,CAAC,OAAO,mBAAmB,E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cAAc,EAAE,SAAS;;;;;qBAItC,MAAM,QAAQ,CAAC,MAAM,CAAC;;;;+BAKtB,MAAM,MAAM"}
@@ -43,7 +43,7 @@
43
43
 
44
44
  /**
45
45
  * @typedef LenderSeatProperty
46
- * @property {import('../../types-index').ZCFSeat} lenderSeat
46
+ * @property {ZCFSeat} lenderSeat
47
47
  *
48
48
  * The ZCFSeat representing the lender's position in the contract.
49
49
  */
@@ -57,7 +57,7 @@
57
57
  /**
58
58
  * @typedef BorrowerConfigProperties
59
59
  *
60
- * @property {import('../../types-index').ZCFSeat} collateralSeat
60
+ * @property {ZCFSeat} collateralSeat
61
61
  *
62
62
  * The ZCFSeat holding the collateral in escrow after the borrower
63
63
  * escrows it
@@ -75,7 +75,7 @@
75
75
  /**
76
76
  * @typedef BorrowerConfigPropertiesMinusDebt
77
77
  *
78
- * @property {import('../../types-index').ZCFSeat} collateralSeat
78
+ * @property {ZCFSeat} collateralSeat
79
79
  *
80
80
  * The ZCFSeat holding the collateral in escrow after the borrower
81
81
  * escrows it
@@ -99,29 +99,29 @@
99
99
 
100
100
  /**
101
101
  * @callback ScheduleLiquidation
102
- * @param {import('../../types-index').ZCF} zcf
102
+ * @param {ZCF} zcf
103
103
  * @param {LoanConfigWithBorrower} config
104
104
  */
105
105
 
106
106
  /**
107
107
  * @callback MakeLendInvitation
108
- * @param {import('../../types-index').ZCF} zcf
108
+ * @param {ZCF} zcf
109
109
  * @param {LoanTerms} config
110
- * @returns {Promise<import('../../types-index').Invitation>} lendInvitation
110
+ * @returns {Promise<Invitation>} lendInvitation
111
111
  */
112
112
 
113
113
  /**
114
114
  * @callback MakeBorrowInvitation
115
- * @param {import('../../types-index').ZCF} zcf
115
+ * @param {ZCF} zcf
116
116
  * @param {LoanConfigWithLender} config
117
- * @returns {Promise<import('../../types-index').Invitation>} borrowInvitation
117
+ * @returns {Promise<Invitation>} borrowInvitation
118
118
  */
119
119
 
120
120
  /**
121
121
  * @callback MakeCloseLoanInvitation
122
- * @param {import('../../types-index').ZCF} zcf
122
+ * @param {ZCF} zcf
123
123
  * @param {LoanConfigWithBorrower} config
124
- * @returns {Promise<import('../../types-index').Invitation>} closeLoanInvitation
124
+ * @returns {Promise<Invitation>} closeLoanInvitation
125
125
  */
126
126
 
127
127
  /**
@@ -129,9 +129,9 @@
129
129
  * after adding.
130
130
  *
131
131
  * @callback MakeAddCollateralInvitation
132
- * @param {import('../../types-index').ZCF} zcf
132
+ * @param {ZCF} zcf
133
133
  * @param {LoanConfigWithBorrower} config
134
- * @returns {Promise<import('../../types-index').Invitation>} addCollateralInvitation
134
+ * @returns {Promise<Invitation>} addCollateralInvitation
135
135
  */
136
136
 
137
137
  /**
@@ -166,7 +166,7 @@
166
166
  *
167
167
  * the period at which the outstanding debt increases by the interestRate
168
168
  *
169
- * @property {import('../../types-index').ZCF} zcf
169
+ * @property {ZCF} zcf
170
170
  *
171
171
  * @property {LoanConfigWithBorrowerMinusDebt} configMinusGetDebt
172
172
  * @property {import('@agoric/time').Timestamp} basetime The starting point from which to calculate
@@ -175,7 +175,7 @@
175
175
 
176
176
  /**
177
177
  * @typedef {object} ConfigMinusGetDebt
178
- * @property {import('../../types-index').ZCFSeat} collateralSeat
178
+ * @property {ZCFSeat} collateralSeat
179
179
  * @property {PromiseRecord<any>} liquidationPromiseKit
180
180
  * @property {bigint} [mmr]
181
181
  * @property {Handle<'Instance'>} autoswapInstance
@@ -183,18 +183,18 @@
183
183
  * @property {PeriodNotifier} periodNotifier
184
184
  * @property {bigint} interestRate
185
185
  * @property {import('@agoric/time').RelativeTime} interestPeriod
186
- * @property {import('../../types-index').ZCFSeat} lenderSeat
186
+ * @property {ZCFSeat} lenderSeat
187
187
  */
188
188
 
189
189
  /**
190
190
  * @typedef {object} BorrowFacet
191
191
  *
192
- * @property {() => Promise<import('../../types-index').Invitation>} makeCloseLoanInvitation
192
+ * @property {() => Promise<Invitation>} makeCloseLoanInvitation
193
193
  *
194
194
  * Make an invitation to close the loan by repaying the debt
195
195
  * (including interest).
196
196
  *
197
- * @property {() => Promise<import('../../types-index').Invitation>} makeAddCollateralInvitation
197
+ * @property {() => Promise<Invitation>} makeAddCollateralInvitation
198
198
  *
199
199
  * Make an invitation to add collateral to protect against liquidation
200
200
  *
@@ -15,10 +15,10 @@
15
15
  */
16
16
  export function start(zcf: ZCF): Promise<{
17
17
  creatorFacet: {
18
- makeInvitation: (value?: bigint) => Promise<globalThis.Invitation<string, undefined>>;
18
+ makeInvitation: (value?: bigint) => Promise<Invitation<string, undefined>>;
19
19
  getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
20
20
  } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
21
- makeInvitation: (value?: bigint) => Promise<globalThis.Invitation<string, undefined>>;
21
+ makeInvitation: (value?: bigint) => Promise<Invitation<string, undefined>>;
22
22
  getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
23
23
  }>;
24
24
  publicFacet: {
@@ -1,7 +1,6 @@
1
1
  export type OracleContract = ContractOf<typeof start>;
2
2
  export type OracleStart = typeof start;
3
3
  /**
4
- * @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
5
4
  * @import {ContractOf} from '../zoeService/utils.js';
6
5
  */
7
6
  /**
@@ -28,6 +27,4 @@ export function start(zcf: ZCF): Promise<{
28
27
  }>;
29
28
  }>;
30
29
  import type { ContractOf } from '../zoeService/utils.js';
31
- import type { ZCF } from '@agoric/zoe';
32
- import type { Invitation } from '@agoric/zoe';
33
30
  //# sourceMappingURL=oracle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["oracle.js"],"names":[],"mappings":"6BA6Gc,WAAW,OAAO,KAAK,CAAC;0BACxB,OAAO,KAAK;AAvG1B;;;GAGG;AAEH;;;;GAIG;AACH,2BAFW,GAAG;;;;;;;QAkDV,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;QAhBvB,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;GAwB1B;gCAhG4B,wBAAwB;yBADkB,aAAa;gCAAb,aAAa"}
1
+ {"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["oracle.js"],"names":[],"mappings":"6BA4Gc,WAAW,OAAO,KAAK,CAAC;0BACxB,OAAO,KAAK;AAtG1B;;GAEG;AAEH;;;;GAIG;AACH,2BAFW,GAAG;;;;;;;QAkDV,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;QAhBvB,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;GAwB1B;gCAhG4B,wBAAwB"}
@@ -6,7 +6,6 @@ import { E } from '@endo/eventual-send';
6
6
  import { atomicTransfer } from '../contractSupport/index.js';
7
7
 
8
8
  /**
9
- * @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
10
9
  * @import {ContractOf} from '../zoeService/utils.js';
11
10
  */
12
11
 
@@ -105,7 +105,5 @@ export function start(zcf: ZCF<{
105
105
  }>;
106
106
  }>;
107
107
  import type { ContractOf } from '../zoeService/utils.js';
108
- import type { ZCF } from '@agoric/zoe';
109
108
  import type { PriceDescription } from '@agoric/zoe/tools/types.js';
110
- import type { Invitation } from '@agoric/zoe';
111
109
  //# sourceMappingURL=priceAggregator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"priceAggregator.d.ts","sourceRoot":"","sources":["priceAggregator.js"],"names":[],"mappings":"6BAqCc,MAAM,GAAG,MAAM,GAAG,MAAM;oCAEzB,QAAQ,CAAC,cAAc,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;oBAGlD,cAAc,GAAG,KAAK;sCAolBtB,WAAW,OAAO,KAAK,CAAC;AA/kBtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,2BAbW,IAAI;IACZ,KAAK,EAAE,O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AHQ,QAAQ,GAAG,MAAM,UACjB,WAAW,KACT,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;;;;QAmHxC,sBAAsB;;;;;QAAtB,sBAAsB;;;GAOzB;gCAvlB4B,wBAAwB;sCACwB,4BAA4B"}
@@ -12,29 +12,29 @@ import { Fail, q } from '@endo/errors';
12
12
  import { E } from '@endo/eventual-send';
13
13
  import { Far } from '@endo/marshal';
14
14
 
15
+ import {
16
+ calculateMedian,
17
+ makeOnewayPriceAuthorityKit,
18
+ makePriceQuoteIssuer,
19
+ } from '../contractSupport/index.js';
15
20
  import {
16
21
  addRatios,
17
22
  assertParsableNumber,
18
- calculateMedian,
19
23
  ceilDivideBy,
20
24
  floorMultiplyBy,
21
- makeOnewayPriceAuthorityKit,
22
- makePriceQuoteIssuer,
23
25
  makeRatio,
24
26
  makeRatioFromAmounts,
25
27
  multiplyRatios,
26
28
  parseRatio,
27
29
  ratioGTE,
28
30
  ratiosSame,
29
- } from '../contractSupport/index.js';
31
+ } from '../contractSupport/ratio.js';
30
32
 
31
33
  /**
32
34
  * @import {LegacyMap} from '@agoric/store'
33
35
  * @import {ContractOf} from '../zoeService/utils.js';
34
36
  * @import {PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
35
- * @import {Invitation, ZCF, ZCFSeat} from '@agoric/zoe';
36
37
  */
37
-
38
38
  /** @typedef {bigint | number | string} ParsableNumber */
39
39
  /**
40
40
  * @typedef {Readonly<ParsableNumber | { data: ParsableNumber }>} OraclePriceSubmission
@@ -588,10 +588,8 @@ const start = async (zcf, privateArgs) => {
588
588
 
589
589
  // Obtain the oracle's publicFacet.
590
590
  assert(oracleInstance);
591
- const oracle =
592
- /** @type {import('./oracle.js').OracleContract['publicFacet']} */ (
593
- await E(zoe).getPublicFacet(oracleInstance)
594
- );
591
+ /** @type {import('./oracle.js').OracleContract['publicFacet']} */
592
+ const oracle = await E(zoe).getPublicFacet(oracleInstance);
595
593
  assert(records.has(record), 'Oracle record is already deleted');
596
594
 
597
595
  /** @type {import('@agoric/time').Timestamp} */
@@ -18,6 +18,5 @@ export type ScaledPriceAuthorityOpts = {
18
18
  */
19
19
  initialPrice?: Ratio | undefined;
20
20
  };
21
- import type { ZCF } from '@agoric/zoe';
22
21
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
23
22
  //# sourceMappingURL=scaledPriceAuthority.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scaledPriceAuthority.d.ts","sourceRoot":"","sources":["scaledPriceAuthority.js"],"names":[],"mappings":"AAsCO,6BALI,IAAI,wBAAwB,CAAC,eAC7B,MAAM,WACN,OAAO,kBAAkB,EAAE,OAAO;;;;GA2D5C;;0BA5Ea,IAAI,CAAC,cAAc,CAAC;;;;aACpB,KAAK;;;;cACL,KAAK;;;;;;yBAPG,aAAa;oCAD0D,4BAA4B"}
1
+ {"version":3,"file":"scaledPriceAuthority.d.ts","sourceRoot":"","sources":["scaledPriceAuthority.js"],"names":[],"mappings":"AAqCO,6BALI,GAAG,CAAC,wBAAwB,CAAC,eAC7B,MAAM,WACN,OAAO,kBAAkB,EAAE,OAAO;;;;GA2D5C;;0BA5Ea,IAAI,CAAC,cAAc,CAAC;;;;aACpB,KAAK;;;;cACL,KAAK;;;;;;oCAP0E,4BAA4B"}
@@ -11,7 +11,6 @@ import { provideQuoteMint } from '../contractSupport/priceAuthorityQuoteMint.js'
11
11
 
12
12
  /**
13
13
  * @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
14
- * @import {ZCF} from '@agoric/zoe';
15
14
  */
16
15
 
17
16
  /**
@@ -24,7 +24,7 @@ export function start(zcf: ZCF<{
24
24
  pricePerItem: Amount<"nat">;
25
25
  }>): {
26
26
  creatorFacet: SellItemsCreatorFacet;
27
- creatorInvitation: Promise<globalThis.Invitation<string, undefined>>;
27
+ creatorInvitation: Promise<Invitation<string, undefined>>;
28
28
  publicFacet: SellItemsPublicFacet;
29
29
  };
30
30
  //# sourceMappingURL=sellItems.d.ts.map
@@ -1,6 +1,3 @@
1
- /**
2
- * @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
3
- */
4
1
  /**
5
2
  * SimpleExchange is an exchange with a simple matching algorithm, which allows
6
3
  * an unlimited number of parties to create new orders or accept existing
@@ -37,6 +34,4 @@ export function start(zcf: ZCF): {
37
34
  }>;
38
35
  }>;
39
36
  };
40
- import type { ZCF } from '@agoric/zoe';
41
- import type { Invitation } from '@agoric/zoe';
42
37
  //# sourceMappingURL=simpleExchange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"simpleExchange.d.ts","sourceRoot":"","sources":["simpleExchange.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BAFW,GAAG;;;;;;;;;;;;;;EA+Gb;yBArIsE,aAAa;gCAAb,aAAa"}
1
+ {"version":3,"file":"simpleExchange.d.ts","sourceRoot":"","sources":["simpleExchange.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BAFW,GAAG;;;;;;;;;;;;;;EA+Gb"}
@@ -8,10 +8,6 @@ import {
8
8
  assertIssuerKeywords,
9
9
  } from '../contractSupport/zoeHelpers.js';
10
10
 
11
- /**
12
- * @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
13
- */
14
-
15
11
  /**
16
12
  * SimpleExchange is an exchange with a simple matching algorithm, which allows
17
13
  * an unlimited number of parties to create new orders or accept existing
@@ -3,7 +3,7 @@ type SellItemsPublicFacet = {
3
3
  getAvailableItems: () => Amount;
4
4
  };
5
5
  type SellItemsCreatorOnly = {
6
- makeBuyerInvitation: () => Promise<import("../types-index").Invitation>;
6
+ makeBuyerInvitation: () => Promise<Invitation>;
7
7
  };
8
8
  type SellItemsCreatorFacet = SellItemsPublicFacet & SellItemsCreatorOnly;
9
9
  type SellItemsParameters = {
@@ -25,36 +25,36 @@ type MintAndSellNFTCreatorFacet = {
25
25
  };
26
26
  type AutomaticRefundPublicFacet = {
27
27
  getOffersCount: () => bigint;
28
- makeInvitation: () => Promise<import("../types-index").Invitation>;
28
+ makeInvitation: () => Promise<Invitation>;
29
29
  };
30
30
  type AutoswapPublicFacet = {
31
31
  /**
32
32
  * synonym for
33
33
  * makeSwapInInvitation
34
34
  */
35
- makeSwapInvitation: () => Promise<import("../types-index").Invitation>;
35
+ makeSwapInvitation: () => Promise<Invitation>;
36
36
  /**
37
37
  * make an invitation
38
38
  * that allows one to do a swap in which the In amount is specified and the Out
39
39
  * amount is calculated
40
40
  */
41
- makeSwapInInvitation: () => Promise<import("../types-index").Invitation>;
41
+ makeSwapInInvitation: () => Promise<Invitation>;
42
42
  /**
43
43
  * make an invitation
44
44
  * that allows one to do a swap in which the Out amount is specified and the In
45
45
  * amount is calculated
46
46
  */
47
- makeSwapOutInvitation: () => Promise<import("../types-index").Invitation>;
47
+ makeSwapOutInvitation: () => Promise<Invitation>;
48
48
  /**
49
49
  * make an
50
50
  * invitation that allows one to add liquidity to the pool.
51
51
  */
52
- makeAddLiquidityInvitation: () => Promise<import("../types-index").Invitation>;
52
+ makeAddLiquidityInvitation: () => Promise<Invitation>;
53
53
  /**
54
54
  * make an
55
55
  * invitation that allows one to remove liquidity from the pool.
56
56
  */
57
- makeRemoveLiquidityInvitation: () => Promise<import("../types-index").Invitation>;
57
+ makeRemoveLiquidityInvitation: () => Promise<Invitation>;
58
58
  getLiquidityIssuer: () => Issuer;
59
59
  /**
60
60
  * get the current value of
@@ -1 +1 @@
1
- {"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";oBAEc,MAAM,MAAM;uBACZ,MAAM,MAAM;;;yBAGZ,MAAM,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC;;6BAEnD,oBAAoB,GAAG,oBAAoB;;2BAK1C,MAAM,CA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AU,EAAE,mBAAmB,KAAK,OAAO,CAAC,eAAe,CAAC;eAC7D,MAAM,MAAM;;;oBAKZ,MAAM,MAAM;oBACZ,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;;wBAKzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;0BAEzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;;2BAGzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;gCAGzB,MAAM,OAAO,CAAC,UAAU,CAAC;;;;;mCAEzB,MAAM,OAAO,CAAC,UAAU,CAAC;wBAEzB,MAAM,MAAM;;;;;wBACZ,MAAM,MAAM;;;;;mBAEZ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,KAAK,MAAM;;;;;oBAG7C,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM;;;;;uBAG7C,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * @property {() => Amount} getAvailableItems
5
5
  *
6
6
  * @typedef {object} SellItemsCreatorOnly
7
- * @property {() => Promise<import('../types-index').Invitation>} makeBuyerInvitation
7
+ * @property {() => Promise<Invitation>} makeBuyerInvitation
8
8
  *
9
9
  * @typedef {SellItemsPublicFacet & SellItemsCreatorOnly} SellItemsCreatorFacet
10
10
  */
@@ -31,22 +31,22 @@
31
31
  /**
32
32
  * @typedef {object} AutomaticRefundPublicFacet
33
33
  * @property {() => bigint} getOffersCount
34
- * @property {() => Promise<import('../types-index').Invitation>} makeInvitation
34
+ * @property {() => Promise<Invitation>} makeInvitation
35
35
  */
36
36
 
37
37
  /**
38
38
  * @typedef {object} AutoswapPublicFacet
39
- * @property {() => Promise<import('../types-index').Invitation>} makeSwapInvitation synonym for
39
+ * @property {() => Promise<Invitation>} makeSwapInvitation synonym for
40
40
  * makeSwapInInvitation
41
- * @property {() => Promise<import('../types-index').Invitation>} makeSwapInInvitation make an invitation
41
+ * @property {() => Promise<Invitation>} makeSwapInInvitation make an invitation
42
42
  * that allows one to do a swap in which the In amount is specified and the Out
43
43
  * amount is calculated
44
- * @property {() => Promise<import('../types-index').Invitation>} makeSwapOutInvitation make an invitation
44
+ * @property {() => Promise<Invitation>} makeSwapOutInvitation make an invitation
45
45
  * that allows one to do a swap in which the Out amount is specified and the In
46
46
  * amount is calculated
47
- * @property {() => Promise<import('../types-index').Invitation>} makeAddLiquidityInvitation make an
47
+ * @property {() => Promise<Invitation>} makeAddLiquidityInvitation make an
48
48
  * invitation that allows one to add liquidity to the pool.
49
- * @property {() => Promise<import('../types-index').Invitation>} makeRemoveLiquidityInvitation make an
49
+ * @property {() => Promise<Invitation>} makeRemoveLiquidityInvitation make an
50
50
  * invitation that allows one to remove liquidity from the pool.
51
51
  * @property {() => Issuer} getLiquidityIssuer
52
52
  * @property {() => bigint} getLiquiditySupply get the current value of
@@ -1,5 +1,4 @@
1
1
  /**
2
- * @import {ContractMeta, HandleOffer, ZCF} from '@agoric/zoe';
3
2
  * @import { Baggage } from '@agoric/vat-data';
4
3
  */
5
4
  /** @type {ContractMeta<typeof start>} */
@@ -8,13 +7,11 @@ export function start(zcf: ZCF<{}>, _privateArgs: undefined, baggage: Baggage):
8
7
  publicFacet: import("@endo/exo").Guarded<{
9
8
  getValue(): import("@agoric/vow").Vow<any>;
10
9
  setValue(value: any): void;
11
- makeGetterInvitation(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<any>, undefined>>;
12
- makeSetterInvitation(): Promise<globalThis.Invitation<void, {
10
+ makeGetterInvitation(): Promise<Invitation<import("@agoric/vow").Vow<any>, undefined>>;
11
+ makeSetterInvitation(): Promise<Invitation<void, {
13
12
  value: unknown;
14
13
  }>>;
15
14
  }>;
16
15
  };
17
- import type { ContractMeta } from '@agoric/zoe';
18
- import type { ZCF } from '@agoric/zoe';
19
16
  import type { Baggage } from '@agoric/vat-data';
20
17
  //# sourceMappingURL=valueVow.contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"valueVow.contract.d.ts","sourceRoot":"","sources":["valueVow.contract.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,yCAAyC;AACzC,mBADW,aAAa,OAAO,KAAK,CAAC,CAGnC;AAYK,2BAJI,IAAI,EAAE,CAAC,gBACP,SAAS,WACT,OAAO;;;;;;mBA8B4B,OAAO;;;EAWpD;kCA1DgD,aAAa;yBAAb,aAAa;6BAClC,kBAAkB"}
1
+ {"version":3,"file":"valueVow.contract.d.ts","sourceRoot":"","sources":["valueVow.contract.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAGnC;AAYK,2BAJI,GAAG,CAAC,EAAE,CAAC,gBACP,SAAS,WACT,OAAO;;;;;;mBA8B4B,OAAO;;;EAWpD;6BAzD2B,kBAAkB"}