@agoric/zoe 0.26.3-dev-da3b8a8.0 → 0.26.3-dev-afcbcd7.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 (225) hide show
  1. package/bundles/bundle-contractFacet-js-meta.json +185 -195
  2. package/bundles/bundle-contractFacet.js +1 -1
  3. package/package.json +15 -12
  4. package/src/contractFacet/zcfZygote.js +3 -4
  5. package/src/contractSupport/ratio.js +1 -1
  6. package/src/contracts/callSpread/calculateShares.js +1 -1
  7. package/src/contracts/callSpread/fundedCallSpread.js +1 -1
  8. package/src/contracts/callSpread/payoffHandler.js +1 -1
  9. package/src/contracts/callSpread/pricedCallSpread.js +1 -1
  10. package/src/contracts/exported.js +1 -1
  11. package/src/contracts/loan/close.js +1 -1
  12. package/src/contracts/priceAggregator.js +1 -1
  13. package/src/zoeService/escrowStorage.js +1 -1
  14. package/src/zoeService/zoe.js +3 -4
  15. package/src/zoeService/zoeStorageManager.js +1 -1
  16. package/bundles/bundle-contractFacet.d.ts +0 -7
  17. package/bundles/bundle-contractFacet.d.ts.map +0 -1
  18. package/src/cleanProposal.d.ts +0 -9
  19. package/src/cleanProposal.d.ts.map +0 -1
  20. package/src/contractFacet/allocationMath.d.ts +0 -7
  21. package/src/contractFacet/allocationMath.d.ts.map +0 -1
  22. package/src/contractFacet/evalContractCode.d.ts +0 -2
  23. package/src/contractFacet/evalContractCode.d.ts.map +0 -1
  24. package/src/contractFacet/exit.d.ts +0 -2
  25. package/src/contractFacet/exit.d.ts.map +0 -1
  26. package/src/contractFacet/internal-types.d.ts +0 -8
  27. package/src/contractFacet/internal-types.d.ts.map +0 -1
  28. package/src/contractFacet/offerHandlerStorage.d.ts +0 -5
  29. package/src/contractFacet/offerHandlerStorage.d.ts.map +0 -1
  30. package/src/contractFacet/offerSafety.d.ts +0 -34
  31. package/src/contractFacet/offerSafety.d.ts.map +0 -1
  32. package/src/contractFacet/reallocate.d.ts +0 -3
  33. package/src/contractFacet/reallocate.d.ts.map +0 -1
  34. package/src/contractFacet/rightsConservation.d.ts +0 -12
  35. package/src/contractFacet/rightsConservation.d.ts.map +0 -1
  36. package/src/contractFacet/vatRoot.d.ts +0 -14
  37. package/src/contractFacet/vatRoot.d.ts.map +0 -1
  38. package/src/contractFacet/zcfMint.d.ts +0 -6
  39. package/src/contractFacet/zcfMint.d.ts.map +0 -1
  40. package/src/contractFacet/zcfSeat.d.ts +0 -3
  41. package/src/contractFacet/zcfSeat.d.ts.map +0 -1
  42. package/src/contractFacet/zcfZygote.d.ts +0 -3
  43. package/src/contractFacet/zcfZygote.d.ts.map +0 -1
  44. package/src/contractSupport/atomicTransfer.d.ts +0 -6
  45. package/src/contractSupport/atomicTransfer.d.ts.map +0 -1
  46. package/src/contractSupport/bondingCurves.d.ts +0 -6
  47. package/src/contractSupport/bondingCurves.d.ts.map +0 -1
  48. package/src/contractSupport/durability.d.ts +0 -5
  49. package/src/contractSupport/durability.d.ts.map +0 -1
  50. package/src/contractSupport/index.d.ts +0 -13
  51. package/src/contractSupport/index.d.ts.map +0 -1
  52. package/src/contractSupport/priceAuthority.d.ts +0 -37
  53. package/src/contractSupport/priceAuthority.d.ts.map +0 -1
  54. package/src/contractSupport/priceAuthorityInitial.d.ts +0 -3
  55. package/src/contractSupport/priceAuthorityInitial.d.ts.map +0 -1
  56. package/src/contractSupport/priceAuthorityQuoteMint.d.ts +0 -2
  57. package/src/contractSupport/priceAuthorityQuoteMint.d.ts.map +0 -1
  58. package/src/contractSupport/priceAuthorityTransform.d.ts +0 -15
  59. package/src/contractSupport/priceAuthorityTransform.d.ts.map +0 -1
  60. package/src/contractSupport/priceQuote.d.ts +0 -7
  61. package/src/contractSupport/priceQuote.d.ts.map +0 -1
  62. package/src/contractSupport/ratio.d.ts +0 -28
  63. package/src/contractSupport/ratio.d.ts.map +0 -1
  64. package/src/contractSupport/recorder.d.ts +0 -229
  65. package/src/contractSupport/recorder.d.ts.map +0 -1
  66. package/src/contractSupport/safeMath.d.ts +0 -11
  67. package/src/contractSupport/safeMath.d.ts.map +0 -1
  68. package/src/contractSupport/stateMachine.d.ts +0 -6
  69. package/src/contractSupport/stateMachine.d.ts.map +0 -1
  70. package/src/contractSupport/statistics.d.ts +0 -7
  71. package/src/contractSupport/statistics.d.ts.map +0 -1
  72. package/src/contractSupport/topics.d.ts +0 -22
  73. package/src/contractSupport/topics.d.ts.map +0 -1
  74. package/src/contractSupport/types.d.ts +0 -63
  75. package/src/contractSupport/types.d.ts.map +0 -1
  76. package/src/contractSupport/zoeHelpers.d.ts +0 -30
  77. package/src/contractSupport/zoeHelpers.d.ts.map +0 -1
  78. package/src/contracts/atomicSwap.d.ts +0 -16
  79. package/src/contracts/atomicSwap.d.ts.map +0 -1
  80. package/src/contracts/auction/assertBidSeat.d.ts +0 -2
  81. package/src/contracts/auction/assertBidSeat.d.ts.map +0 -1
  82. package/src/contracts/auction/firstPriceLogic.d.ts +0 -2
  83. package/src/contracts/auction/firstPriceLogic.d.ts.map +0 -1
  84. package/src/contracts/auction/index.d.ts +0 -56
  85. package/src/contracts/auction/index.d.ts.map +0 -1
  86. package/src/contracts/auction/secondPriceLogic.d.ts +0 -2
  87. package/src/contracts/auction/secondPriceLogic.d.ts.map +0 -1
  88. package/src/contracts/automaticRefund.d.ts +0 -25
  89. package/src/contracts/automaticRefund.d.ts.map +0 -1
  90. package/src/contracts/autoswap.d.ts +0 -43
  91. package/src/contracts/autoswap.d.ts.map +0 -1
  92. package/src/contracts/barterExchange.d.ts +0 -22
  93. package/src/contracts/barterExchange.d.ts.map +0 -1
  94. package/src/contracts/callSpread/calculateShares.d.ts +0 -2
  95. package/src/contracts/callSpread/calculateShares.d.ts.map +0 -1
  96. package/src/contracts/callSpread/fundedCallSpread.d.ts +0 -60
  97. package/src/contracts/callSpread/fundedCallSpread.d.ts.map +0 -1
  98. package/src/contracts/callSpread/payoffHandler.d.ts +0 -11
  99. package/src/contracts/callSpread/payoffHandler.d.ts.map +0 -1
  100. package/src/contracts/callSpread/percent.d.ts +0 -3
  101. package/src/contracts/callSpread/percent.d.ts.map +0 -1
  102. package/src/contracts/callSpread/position.d.ts +0 -10
  103. package/src/contracts/callSpread/position.d.ts.map +0 -1
  104. package/src/contracts/callSpread/pricedCallSpread.d.ts +0 -66
  105. package/src/contracts/callSpread/pricedCallSpread.d.ts.map +0 -1
  106. package/src/contracts/callSpread/types.d.ts +0 -30
  107. package/src/contracts/callSpread/types.d.ts.map +0 -1
  108. package/src/contracts/coveredCall-durable.d.ts +0 -23
  109. package/src/contracts/coveredCall-durable.d.ts.map +0 -1
  110. package/src/contracts/coveredCall.d.ts +0 -64
  111. package/src/contracts/coveredCall.d.ts.map +0 -1
  112. package/src/contracts/exported.d.ts +0 -2
  113. package/src/contracts/exported.d.ts.map +0 -1
  114. package/src/contracts/loan/addCollateral.d.ts +0 -3
  115. package/src/contracts/loan/addCollateral.d.ts.map +0 -1
  116. package/src/contracts/loan/borrow.d.ts +0 -3
  117. package/src/contracts/loan/borrow.d.ts.map +0 -1
  118. package/src/contracts/loan/close.d.ts +0 -3
  119. package/src/contracts/loan/close.d.ts.map +0 -1
  120. package/src/contracts/loan/index.d.ts +0 -64
  121. package/src/contracts/loan/index.d.ts.map +0 -1
  122. package/src/contracts/loan/lend.d.ts +0 -3
  123. package/src/contracts/loan/lend.d.ts.map +0 -1
  124. package/src/contracts/loan/liquidate.d.ts +0 -3
  125. package/src/contracts/loan/liquidate.d.ts.map +0 -1
  126. package/src/contracts/loan/scheduleLiquidation.d.ts +0 -3
  127. package/src/contracts/loan/scheduleLiquidation.d.ts.map +0 -1
  128. package/src/contracts/loan/types.d.ts +0 -161
  129. package/src/contracts/loan/types.d.ts.map +0 -1
  130. package/src/contracts/loan/updateDebt.d.ts +0 -11
  131. package/src/contracts/loan/updateDebt.d.ts.map +0 -1
  132. package/src/contracts/mintAndSellNFT.d.ts +0 -28
  133. package/src/contracts/mintAndSellNFT.d.ts.map +0 -1
  134. package/src/contracts/mintPayments.d.ts +0 -30
  135. package/src/contracts/mintPayments.d.ts.map +0 -1
  136. package/src/contracts/oracle.d.ts +0 -26
  137. package/src/contracts/oracle.d.ts.map +0 -1
  138. package/src/contracts/otcDesk.d.ts +0 -79
  139. package/src/contracts/otcDesk.d.ts.map +0 -1
  140. package/src/contracts/priceAggregator.d.ts +0 -91
  141. package/src/contracts/priceAggregator.d.ts.map +0 -1
  142. package/src/contracts/priceAggregatorTypes.d.ts +0 -77
  143. package/src/contracts/priceAggregatorTypes.d.ts.map +0 -1
  144. package/src/contracts/scaledPriceAuthority.d.ts +0 -23
  145. package/src/contracts/scaledPriceAuthority.d.ts.map +0 -1
  146. package/src/contracts/sellItems.d.ts +0 -30
  147. package/src/contracts/sellItems.d.ts.map +0 -1
  148. package/src/contracts/simpleExchange.d.ts +0 -37
  149. package/src/contracts/simpleExchange.d.ts.map +0 -1
  150. package/src/contracts/types.d.ts +0 -80
  151. package/src/contracts/types.d.ts.map +0 -1
  152. package/src/handleWarning.d.ts +0 -3
  153. package/src/handleWarning.d.ts.map +0 -1
  154. package/src/instanceRecordStorage.d.ts +0 -2
  155. package/src/instanceRecordStorage.d.ts.map +0 -1
  156. package/src/internal-types.d.ts +0 -177
  157. package/src/internal-types.d.ts.map +0 -1
  158. package/src/issuerRecord.d.ts +0 -3
  159. package/src/issuerRecord.d.ts.map +0 -1
  160. package/src/issuerStorage.d.ts +0 -14
  161. package/src/issuerStorage.d.ts.map +0 -1
  162. package/src/makeHandle.d.ts +0 -4
  163. package/src/makeHandle.d.ts.map +0 -1
  164. package/src/objArrayConversion.d.ts +0 -5
  165. package/src/objArrayConversion.d.ts.map +0 -1
  166. package/src/typeGuards.d.ts +0 -168
  167. package/src/typeGuards.d.ts.map +0 -1
  168. package/src/types.d.ts +0 -45
  169. package/src/types.d.ts.map +0 -1
  170. package/src/zoeService/createZCFVat.d.ts +0 -2
  171. package/src/zoeService/createZCFVat.d.ts.map +0 -1
  172. package/src/zoeService/escrowStorage.d.ts +0 -7
  173. package/src/zoeService/escrowStorage.d.ts.map +0 -1
  174. package/src/zoeService/feeMint.d.ts +0 -30
  175. package/src/zoeService/feeMint.d.ts.map +0 -1
  176. package/src/zoeService/installationStorage.d.ts +0 -35
  177. package/src/zoeService/installationStorage.d.ts.map +0 -1
  178. package/src/zoeService/instanceAdminStorage.d.ts +0 -123
  179. package/src/zoeService/instanceAdminStorage.d.ts.map +0 -1
  180. package/src/zoeService/internal-types.d.ts +0 -90
  181. package/src/zoeService/internal-types.d.ts.map +0 -1
  182. package/src/zoeService/invitationQueries.d.ts +0 -6
  183. package/src/zoeService/invitationQueries.d.ts.map +0 -1
  184. package/src/zoeService/makeInvitation.d.ts +0 -5
  185. package/src/zoeService/makeInvitation.d.ts.map +0 -1
  186. package/src/zoeService/offer/burnInvitation.d.ts +0 -5
  187. package/src/zoeService/offer/burnInvitation.d.ts.map +0 -1
  188. package/src/zoeService/offer/offer.d.ts +0 -2
  189. package/src/zoeService/offer/offer.d.ts.map +0 -1
  190. package/src/zoeService/startInstance.d.ts +0 -4
  191. package/src/zoeService/startInstance.d.ts.map +0 -1
  192. package/src/zoeService/types.d.ts +0 -226
  193. package/src/zoeService/types.d.ts.map +0 -1
  194. package/src/zoeService/zoe.d.ts +0 -61
  195. package/src/zoeService/zoe.d.ts.map +0 -1
  196. package/src/zoeService/zoeSeat.d.ts +0 -56
  197. package/src/zoeService/zoeSeat.d.ts.map +0 -1
  198. package/src/zoeService/zoeStorageManager.d.ts +0 -75
  199. package/src/zoeService/zoeStorageManager.d.ts.map +0 -1
  200. package/tools/fakePriceAuthority.d.ts +0 -30
  201. package/tools/fakePriceAuthority.d.ts.map +0 -1
  202. package/tools/fakeVatAdmin.d.ts +0 -103
  203. package/tools/fakeVatAdmin.d.ts.map +0 -1
  204. package/tools/internal-types.d.ts +0 -12
  205. package/tools/internal-types.d.ts.map +0 -1
  206. package/tools/manualPriceAuthority.d.ts +0 -20
  207. package/tools/manualPriceAuthority.d.ts.map +0 -1
  208. package/tools/manualTimer.d.ts +0 -44
  209. package/tools/manualTimer.d.ts.map +0 -1
  210. package/tools/prepare-test-env-ava.d.ts +0 -2
  211. package/tools/prepare-test-env-ava.d.ts.map +0 -1
  212. package/tools/prepare-test-env.d.ts +0 -2
  213. package/tools/prepare-test-env.d.ts.map +0 -1
  214. package/tools/priceAuthorityRegistry.d.ts +0 -20
  215. package/tools/priceAuthorityRegistry.d.ts.map +0 -1
  216. package/tools/scriptedOracle.d.ts +0 -27
  217. package/tools/scriptedOracle.d.ts.map +0 -1
  218. package/tools/scriptedPriceAuthority.d.ts +0 -2
  219. package/tools/scriptedPriceAuthority.d.ts.map +0 -1
  220. package/tools/setup-zoe.d.ts +0 -35
  221. package/tools/setup-zoe.d.ts.map +0 -1
  222. package/tools/types-ambient.d.ts +0 -142
  223. package/tools/types-ambient.d.ts.map +0 -1
  224. package/tools/types.d.ts +0 -142
  225. package/tools/types.d.ts.map +0 -1
@@ -1,123 +0,0 @@
1
- export function makeInstanceAdminStorage(baggage: MapStore<string, any>): {
2
- accessor: {
3
- getPublicFacet(instance: any): any;
4
- getBrands(instance: any): any;
5
- getIssuers(instance: any): any;
6
- getTerms(instance: any): any;
7
- getOfferFilter(instance: any): any;
8
- getInstallation(instance: any): any;
9
- getInstanceAdmin(instance: any): any;
10
- };
11
- updater: {
12
- initInstanceAdmin(instance: any, instanceAdmin: any): Promise<any>;
13
- deleteInstanceAdmin(instance: any): any;
14
- };
15
- } & import("@endo/eventual-send").RemotableBrand<{}, {
16
- accessor: {
17
- getPublicFacet(instance: any): any;
18
- getBrands(instance: any): any;
19
- getIssuers(instance: any): any;
20
- getTerms(instance: any): any;
21
- getOfferFilter(instance: any): any;
22
- getInstallation(instance: any): any;
23
- getInstanceAdmin(instance: any): any;
24
- };
25
- updater: {
26
- initInstanceAdmin(instance: any, instanceAdmin: any): Promise<any>;
27
- deleteInstanceAdmin(instance: any): any;
28
- };
29
- }>;
30
- export function makeInstanceAdminMaker(zoeBaggage: MapStore<string, any>, seatHandleToZoeSeatAdmin: WeakMapStore<SeatHandle, ZoeSeatAdmin>): (instanceHandle: any, zoeInstanceStorageManager: any, adminNode: any) => import("@agoric/swingset-liveslots").KindFacet<{
31
- getPublicFacet: ({ state }: {
32
- state: any;
33
- }) => any;
34
- getTerms: ({ state }: {
35
- state: any;
36
- }) => any;
37
- getIssuers: ({ state }: {
38
- state: any;
39
- }) => any;
40
- getBrands: ({ state }: {
41
- state: any;
42
- }) => any;
43
- initDelayedState: ({ state }: {
44
- state: any;
45
- }, handleOfferObj: any, publicFacet: any) => void;
46
- getInstallation: ({ state }: {
47
- state: any;
48
- }) => any;
49
- getInstance: ({ state }: {
50
- state: any;
51
- }) => any;
52
- assertAcceptingOffers: ({ state }: {
53
- state: any;
54
- }) => void;
55
- exitAllSeats: ({ state }: {
56
- state: any;
57
- }, completion: any) => void;
58
- failAllSeats: ({ state }: {
59
- state: any;
60
- }, reason: any) => void;
61
- stopAcceptingOffers: ({ state }: {
62
- state: any;
63
- }) => void;
64
- makeUserSeat: ({ state, facets: { helper } }: {
65
- state: any;
66
- facets: {
67
- helper: any;
68
- };
69
- }, invitationHandle: any, initialAllocation: any, proposal: any, offerArgs?: undefined) => {
70
- getProposal(): Promise<ProposalRecord>;
71
- getPayouts(): Promise<{}>;
72
- getPayout(keyword: any): Promise<any>;
73
- getOfferResult(): Promise<any>;
74
- hasExited(): Promise<boolean>;
75
- tryExit(): Promise<void>;
76
- numWantsSatisfied(): Promise<0 | 1>;
77
- getExitSubscriber(): {
78
- subscribeAfter(publishCount?: bigint): Promise<any>;
79
- getUpdateSince(updateCount: any): any;
80
- };
81
- getFinalAllocation(): Promise<AmountKeywordRecord>;
82
- };
83
- makeNoEscrowSeat: ({ state, facets: { helper } }: {
84
- state: any;
85
- facets: {
86
- helper: any;
87
- };
88
- }, initialAllocation: any, proposal: any, exitObj: any, seatHandle: any) => {
89
- getProposal(): Promise<ProposalRecord>;
90
- getPayouts(): Promise<{}>;
91
- getPayout(keyword: any): Promise<any>;
92
- getOfferResult(): Promise<any>;
93
- hasExited(): Promise<boolean>;
94
- tryExit(): Promise<void>;
95
- numWantsSatisfied(): Promise<0 | 1>;
96
- getExitSubscriber(): {
97
- subscribeAfter(publishCount?: bigint): Promise<any>;
98
- getUpdateSince(updateCount: any): any;
99
- };
100
- getFinalAllocation(): Promise<AmountKeywordRecord>;
101
- };
102
- getOfferFilter: ({ state }: {
103
- state: any;
104
- }) => any;
105
- setOfferFilter: ({ state }: {
106
- state: any;
107
- }, strings: any) => void;
108
- isBlocked: ({ state }: {
109
- state: any;
110
- }, string: any) => any;
111
- }>;
112
- export type ImmutableState = Readonly<{
113
- publicFacet: unknown;
114
- handlerOfferObj: unknown;
115
- }>;
116
- export type MutableState = {
117
- offerFilterStrings: string[];
118
- };
119
- export type State = MutableState & ImmutableState;
120
- export type MethodContext = {
121
- state: State;
122
- };
123
- //# sourceMappingURL=instanceAdminStorage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instanceAdminStorage.d.ts","sourceRoot":"","sources":["instanceAdminStorage.js"],"names":[],"mappings":"AAoDO;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DN;AA0JM,oGAFI,aAAa,UAAU,EAAE,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwChD;6BAvDY,SAAS;IACrB,WAAe,EAAE,OAAO,CAAC;IACzB,eAAmB,EAAE,OAAO,CAAC;CAC1B,CAAC;2BACQ;IACZ,kBAAsB,EAAE,MAAM,EAAE,CAAC;CAC9B;oBACS,YAAY,GAAG,cAAc;4BAC7B;IACZ,KAAS,EAAE,KAAK,CAAC;CACd"}
@@ -1,90 +0,0 @@
1
- /**
2
- * Create a purse for a new issuer
3
- */
4
- type CreatePurse = (issuer: Issuer, brand: Brand) => ERef<void>;
5
- /**
6
- * Create a purse for a new, local issuer. Used only for ZCFMint issuers.
7
- *
8
- * Note: in the case of the feeMint, it may have been registered
9
- * before with `feeMintAccess`. In that case, we do not create a new
10
- * purse, but reuse the existing purse.
11
- */
12
- type ProvideLocalPurse = (issuer: Issuer, brand: Brand) => Purse;
13
- /**
14
- * Deposits payments or promises for payments according to the
15
- * `give` property of the proposal. Using the proposal, creates an
16
- * initial allocation including the amount deposited for `give`
17
- * keywords and an empty amount for `want` keywords.
18
- */
19
- type DepositPayments = (proposal: ProposalRecord, payments: PaymentPKeywordRecord) => Promise<Allocation>;
20
- type InitInstanceAdmin = (instance: Instance, InstanceAdmin: InstanceAdmin) => void;
21
- type GetInstanceAdmin = (instance: Instance) => InstanceAdmin;
22
- type DeleteInstanceAdmin = (instance: Instance) => void;
23
- /**
24
- * Assert the installation is known, and return the bundle/bundlecap and
25
- * installation
26
- */
27
- type UnwrapInstallation = (installationP: ERef<Installation>) => ERef<{
28
- bundle?: SourceBundle;
29
- bundleCap?: BundleCap;
30
- bundleID?: BundleID;
31
- installation: Installation;
32
- }>;
33
- type GetIssuerRecords = () => IssuerRecords;
34
- type ZoeInstanceStorageManager = {
35
- getTerms: InstanceStateGetTerms;
36
- getIssuers: InstanceRecordGetIssuers;
37
- getBrands: InstanceRecordGetBrands;
38
- saveIssuer: ZCF['saveIssuer'];
39
- makeZoeMint: MakeZoeMint;
40
- registerFeeMint: RegisterFeeMint;
41
- getInstanceRecord: GetInstanceRecord;
42
- getIssuerRecords: GetIssuerRecords;
43
- initInstanceAdmin: InitInstanceAdmin;
44
- deleteInstanceAdmin: DeleteInstanceAdmin;
45
- makeInvitation: ZoeInstanceAdminMakeInvitation;
46
- getInvitationIssuer: () => Issuer;
47
- /**
48
- * of CreateVatResults
49
- */
50
- getRoot: () => object;
51
- /**
52
- * of CreateVatResults
53
- */
54
- getAdminNode: () => import('@agoric/swingset-vat').VatAdminFacet;
55
- };
56
- /**
57
- * Create a storage manager for a particular contract instance. The
58
- * ZoeInstanceStorageManager encapsulates access to the
59
- * issuerStorage and escrowStorage from Zoe, and stores the
60
- * instance-specific terms
61
- */
62
- type MakeZoeInstanceStorageManager = (instanceBaggage: MapStore<string, any>, installation: Installation, customTerms: object, uncleanIssuerKeywordRecord: IssuerKeywordRecord, instance: Instance, contractBundleCap: BundleCap, instanceLabel: string) => Promise<ZoeInstanceStorageManager>;
63
- type GetBundleCapForID = (id: BundleID) => Promise<BundleCap>;
64
- type GetProposalShapeForInvitation = (invitationHandle: InvitationHandle) => Pattern | undefined;
65
- type ZoeStorageManager = {
66
- makeZoeInstanceStorageManager: MakeZoeInstanceStorageManager;
67
- getAssetKindByBrand: GetAssetKindByBrand;
68
- depositPayments: DepositPayments;
69
- invitationIssuer: Issuer<'set'>;
70
- installBundle: InstallBundle;
71
- installBundleID: InstallBundleID;
72
- getBundleIDFromInstallation: GetBundleIDFromInstallation;
73
- getPublicFacet: import('./utils.js').GetPublicFacet;
74
- getBrands: GetBrands;
75
- getIssuers: GetIssuers;
76
- getTerms: import('./utils').GetTerms;
77
- getOfferFilter: GetOfferFilter;
78
- setOfferFilter: SetOfferFilter;
79
- getInstallationForInstance: GetInstallationForInstance;
80
- getInstanceAdmin: GetInstanceAdmin;
81
- unwrapInstallation: UnwrapInstallation;
82
- getProposalShapeForInvitation: GetProposalShapeForInvitation;
83
- };
84
- /**
85
- * Use VatAdminSvc to create a new vat, but only with the code of the
86
- * ZCF bundle
87
- */
88
- type CreateZCFVat = (contractBundleCap: BundleCap, contractLabel: string) => Promise<import('@agoric/swingset-vat').CreateVatResults>;
89
- type GetFeeIssuerKit = (feeMintAccess: FeeMintAccess) => IssuerKit<'nat'>;
90
- //# sourceMappingURL=internal-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":";;;4BAMW,MAAM,SACN,KAAK,KACH,KAAK,IAAI,CAAC;;;;;;;;kCAWZ,MAAM,SACN,KAAK,KACH,KAAK;;;;;;;kCAUP,cAAc,YACd,qBAAqB,KACnB,QAAQ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etInstance;
3
- getInstallation: GetInstallation;
4
- getInvitationDetails: GetInvitationDetails;
5
- };
6
- //# sourceMappingURL=invitationQueries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invitationQueries.d.ts","sourceRoot":"","sources":["invitationQueries.js"],"names":[],"mappings":"AAKO;;;;EA6BN"}
@@ -1,5 +0,0 @@
1
- export function prepareInvitationKit(baggage: MapStore<string, any>, shutdownZoeVat?: ShutdownWithFailure | undefined): {
2
- invitationIssuer: Issuer<"set">;
3
- invitationKit: IssuerKit<"set">;
4
- };
5
- //# sourceMappingURL=makeInvitation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"makeInvitation.d.ts","sourceRoot":"","sources":["makeInvitation.js"],"names":[],"mappings":"AAgBO,sFAFI,mBAAmB,GAAG,SAAS;;;EA4BzC"}
@@ -1,5 +0,0 @@
1
- export function burnInvitation(invitationIssuer: Issuer, invitation: ERef<Payment>): Promise<{
2
- instanceHandle: Instance;
3
- invitationHandle: InvitationHandle;
4
- }>;
5
- //# sourceMappingURL=burnInvitation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"burnInvitation.d.ts","sourceRoot":"","sources":["burnInvitation.js"],"names":[],"mappings":"AAgBO,iDAPI,MAAM,cACN,KAAK,OAAO,CAAC,GACX,QAAQ;IACpB,cAAkB,EAAE,QAAQ,CAAC;IAC7B,gBAAoB,EAAE,gBAAgB,CAAC;CACpC,CAAC,CA4BJ"}
@@ -1,2 +0,0 @@
1
- export function makeOfferMethod(offerDataAccess: any): Offer;
2
- //# sourceMappingURL=offer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["offer.js"],"names":[],"mappings":"AAgBO,6DA0DN"}
@@ -1,4 +0,0 @@
1
- export function makeStartInstance(startInstanceAccess: Pick<ZoeStorageManager, 'makeZoeInstanceStorageManager' | 'unwrapInstallation'>, getZcfBundleCapP: () => ERef<BundleCap>, getBundleCapByIdNow: (id: string) => BundleCap, zoeBaggage: MapStore<string, any>): import('./utils').StartInstance;
2
- export type Baggage = import('@agoric/vat-data').Baggage;
3
- export type BundleCap = import('@agoric/swingset-vat').BundleCap;
4
- //# sourceMappingURL=startInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AA2BO,uDANI,KAAK,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,KAAK,SAAS,CAAC,4BAChB,MAAM,KAAK,SAAS,sCAEvB,OAAO,SAAS,EAAE,aAAa,CA+T3C;sBAzUa,OAAO,kBAAkB,EAAE,OAAO;wBACjC,OAAO,sBAAsB,EAAE,SAAS"}
@@ -1,226 +0,0 @@
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').StartInstance;
27
- offer: Offer;
28
- getPublicFacet: import('./utils').GetPublicFacet;
29
- getIssuers: GetIssuers;
30
- getBrands: GetBrands;
31
- getTerms: import('./utils').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
- getProposalShapeForInvitation: (invitationHandle: InvitationHandle) => Pattern | undefined;
45
- };
46
- type GetInvitationIssuer = () => Promise<Issuer<'set'>>;
47
- type GetFeeIssuer = () => Promise<Issuer<'nat'>>;
48
- type GetConfiguration = () => {
49
- feeIssuerConfig: FeeIssuerConfig;
50
- };
51
- type GetIssuers = (instance: import('./utils').Instance<any>) => Promise<IssuerKeywordRecord>;
52
- type GetBrands = (instance: import('./utils').Instance<any>) => Promise<BrandKeywordRecord>;
53
- type GetOfferFilter = (instance: import('./utils').Instance<any>) => string[];
54
- type SetOfferFilter = (instance: Instance, strings: string[]) => any;
55
- type GetInstallationForInstance = (instance: import('./utils').Instance<any>) => Promise<Installation>;
56
- type GetInstance = (invitation: ERef<Invitation>) => Promise<import('./utils').Instance<any>>;
57
- type GetInstallation = (invitation: ERef<Invitation>) => Promise<Installation>;
58
- type GetInvitationDetails = (invitation: ERef<Invitation>) => Promise<InvitationDetails>;
59
- /**
60
- * Create an installation by safely evaluating the code and
61
- * registering it with Zoe. Returns an installation.
62
- */
63
- type InstallBundle = (bundle: Bundle | SourceBundle, bundleLabel?: string | undefined) => Promise<Installation>;
64
- /**
65
- * Create an installation from a Bundle ID. Returns an installation.
66
- */
67
- type InstallBundleID = (bundleID: BundleID, bundleLabel?: string | undefined) => Promise<Installation>;
68
- /**
69
- * Verify that an alleged Installation is real, and return the Bundle ID it
70
- * will use for contract code.
71
- */
72
- type GetBundleIDFromInstallation = (allegedInstallation: ERef<Installation>) => Promise<BundleID>;
73
- /**
74
- * To redeem an invitation, the user normally provides a proposal (their
75
- * rules for the offer) as well as payments to be escrowed by Zoe. If
76
- * either the proposal or payments would be empty, indicate this by
77
- * omitting that argument or passing undefined, rather than passing an
78
- * empty record.
79
- *
80
- * The proposal has three parts: `want` and `give` are used by Zoe to
81
- * enforce offer safety, and `exit` is used to specify the particular
82
- * payout-liveness policy that Zoe can guarantee. `want` and `give`
83
- * are objects with keywords as keys and amounts as values.
84
- * `paymentKeywordRecord` is a record with keywords as keys, and the
85
- * values are the actual payments to be escrowed. A payment is
86
- * expected for every rule under `give`.
87
- */
88
- type Offer = <Args, Result>(invitation: ERef<Invitation<R, A>>, proposal?: Proposal, paymentKeywordRecord?: PaymentPKeywordRecord, offerArgs?: Args | undefined) => Promise<UserSeat<Result>>;
89
- /**
90
- * Zoe uses seats to access or manipulate offers. They let contracts and users
91
- * interact with them. Zoe has two kinds of seats. ZCFSeats are used within
92
- * contracts and with zcf methods. UserSeats represent offers external to Zoe
93
- * and the contract. The party who exercises an invitation and sends the offer()
94
- * message to Zoe gets a UserSeat that can check payouts' status or retrieve the
95
- * result of processing the offer in the contract. This varies, but examples are
96
- * a string and an invitation for another seat.
97
- *
98
- * Also, a UserSeat can be handed to an agent outside Zoe and the contract,
99
- * letting them query or monitor the current state, access the payouts and
100
- * result, and, if it's allowed for this seat, call tryExit().
101
- *
102
- * Since anyone can attempt to exit the seat if they have a reference to it, you
103
- * should only share a UserSeat with trusted parties.
104
- *
105
- * UserSeat includes queries for the associated offer's current state and an
106
- * operation to request that the offer exit, as follows:
107
- */
108
- type UserSeat<OR extends unknown = unknown> = {
109
- getProposal: () => Promise<ProposalRecord>;
110
- /**
111
- * returns a promise for a KeywordPaymentRecord containing all the payouts from
112
- * this seat. The promise will resolve after the seat has exited.
113
- */
114
- getPayouts: () => Promise<PaymentPKeywordRecord>;
115
- /**
116
- * returns a promise for the Payment corresponding to the indicated keyword.
117
- * The promise will resolve after the seat has exited.
118
- */
119
- getPayout: (keyword: Keyword) => Promise<Payment<any>>;
120
- getOfferResult: () => Promise<OR>;
121
- /**
122
- * Note: Only works if the seat's `proposal` has an `OnDemand` `exit` clause. Zoe's
123
- * offer-safety guarantee applies no matter how a seat's interaction with a
124
- * contract ends. Under normal circumstances, the participant might be able to
125
- * call `tryExit()`, or the contract might do something explicitly. On exiting,
126
- * the seat holder gets its current `allocation` and the `seat` can no longer
127
- * interact with the contract.
128
- */
129
- tryExit?: (() => void) | undefined;
130
- /**
131
- * Returns true if the seat has exited, false if it is still active.
132
- */
133
- hasExited: () => Promise<boolean>;
134
- /**
135
- * returns 1 if the proposal's
136
- * want clause was satisfied by the final allocation, otherwise 0. This is
137
- * numeric to support a planned enhancement called "multiples" which will allow
138
- * the return value to be any non-negative number. The promise will resolve
139
- * after the seat has exited.
140
- */
141
- numWantsSatisfied: () => Promise<0 | 1>;
142
- /**
143
- * return a promise for the final allocation. The promise will resolve after the
144
- * seat has exited.
145
- */
146
- getFinalAllocation: () => Promise<Allocation>;
147
- /**
148
- * returns a subscriber that
149
- * will be notified when the seat has exited or failed.
150
- */
151
- getExitSubscriber: () => Subscriber<Completion>;
152
- };
153
- type Proposal = Partial<ProposalRecord>;
154
- type ProposalRecord = {
155
- give: AmountKeywordRecord;
156
- want: AmountKeywordRecord;
157
- exit: ExitRule;
158
- };
159
- /**
160
- * The keys are keywords, and the values are amounts. For example:
161
- * { Asset: AmountMath.make(assetBrand, 5n), Price:
162
- * AmountMath.make(priceBrand, 9n) }
163
- */
164
- type AmountKeywordRecord = Record<Keyword, Amount<any>>;
165
- type Waker = {
166
- wake: () => void;
167
- };
168
- type Deadline = import('@agoric/time/src/types').Timestamp;
169
- type Timer = {
170
- setWakeup: (deadline: Deadline, wakerP: ERef<Waker>) => void;
171
- };
172
- type OnDemandExitRule = {
173
- onDemand: null;
174
- };
175
- type WaivedExitRule = {
176
- waived: null;
177
- };
178
- type AfterDeadlineExitRule = {
179
- afterDeadline: {
180
- timer: Timer;
181
- deadline: Deadline;
182
- };
183
- };
184
- /**
185
- * The possible keys are 'waived', 'onDemand', and 'afterDeadline'.
186
- * `timer` and `deadline` only are used for the `afterDeadline` key.
187
- * The possible records are:
188
- * `{ waived: null }`
189
- * `{ onDemand: null }`
190
- * `{ afterDeadline: { timer :Timer<Deadline>, deadline :Deadline } }
191
- */
192
- type ExitRule = OnDemandExitRule | WaivedExitRule | AfterDeadlineExitRule;
193
- type Instance = import('./utils').Instance<any>;
194
- type VatAdminSvc = import('@agoric/swingset-vat').VatAdminSvc;
195
- type ZCFSpec = {
196
- bundleCap: import('@agoric/swingset-vat').BundleCap;
197
- } | {
198
- name: string;
199
- } | {
200
- id: BundleID;
201
- };
202
- /**
203
- * Opaque type for a JSONable source bundle
204
- */
205
- type SourceBundle = Record<string, any>;
206
- type PaymentPKeywordRecord = Record<Keyword, ERef<Payment<any>>>;
207
- type PaymentKeywordRecord = Record<Keyword, Payment<any>>;
208
- type InvitationDetails = {
209
- installation: Installation;
210
- instance: import('./utils').Instance<any>;
211
- handle: InvitationHandle;
212
- description: string;
213
- customDetails?: Record<string, any> | undefined;
214
- };
215
- type Installation<SF = any> = import('./utils').Installation<SF>;
216
- type InstallationStart<I extends Installation<any>> = import('./utils').InstallationStart<I>;
217
- type FeeIssuerConfig = {
218
- name: string;
219
- assetKind: AssetKind;
220
- displayInfo: DisplayInfo;
221
- };
222
- type ZoeFeesConfig = {
223
- getPublicFacetFee: NatValue;
224
- };
225
- type FeeMintAccess = Handle<'feeMintAccess'>;
226
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;yBAmBc,mBAAmB;aASnB,aAAa;qBACb,eAAe;mBACf,OAAO,SAAS,EAAE,aAAa;WAC/B,KAAK;oBACL,OAAO,SAAS,EAAE,cAAc;gBAChC,UAAU;eACV,SAAS;cACT,OAAO,SAAS,EAAE,QAAQ;oBAC1B,cAAc;gCACd,0BAA0B;iBAC1B,WAAW;qBACX,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IT,OAAO,eAAe,CAAC"}
@@ -1,61 +0,0 @@
1
- export type Baggage = import('@agoric/vat-data').Baggage;
2
- export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
3
- /**
4
- * Create a durable instance of Zoe.
5
- *
6
- * @param {object} options
7
- * @param {Baggage} options.zoeBaggage - the baggage for Zoe durability. Must be provided by caller
8
- * @param {Promise<VatAdminSvc> | VatAdminSvc} [options.vatAdminSvc] - The vatAdmin Service, which carries the
9
- * power to create a new vat. If it's not available when makeZoe() is called, it
10
- * must be provided later using setVatAdminService().
11
- * @param {ShutdownWithFailure} [options.shutdownZoeVat] - a function to
12
- * shutdown the Zoe Vat. This function needs to use the vatPowers
13
- * available to a vat.
14
- * @param {FeeIssuerConfig} [options.feeIssuerConfig]
15
- * @param {ZCFSpec} [options.zcfSpec] - Pointer to the contract facet bundle.
16
- */
17
- export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, feeIssuerConfig, zcfSpec, }: {
18
- zoeBaggage: Baggage;
19
- vatAdminSvc?: import("@agoric/swingset-vat").VatAdminSvc | Promise<import("@agoric/swingset-vat").VatAdminSvc> | undefined;
20
- shutdownZoeVat?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined;
21
- feeIssuerConfig?: FeeIssuerConfig | undefined;
22
- zcfSpec?: ZCFSpec | undefined;
23
- }): {
24
- zoeService: ZoeService;
25
- zoeConfigFacet: {
26
- updateZcfBundleId(bundleId: any): void;
27
- } & import("@endo/eventual-send").RemotableBrand<{}, {
28
- updateZcfBundleId(bundleId: any): void;
29
- }>;
30
- /** @type {FeeMintAccess} */
31
- feeMintAccess: FeeMintAccess;
32
- setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
33
- };
34
- /**
35
- * @deprecated
36
- * Create an instance of Zoe.
37
- *
38
- * This will fail upgrades and should only be used in tests through the helper
39
- * `makeZoeKitForTest`.
40
- *
41
- * @param {Promise<VatAdminSvc> | VatAdminSvc} [vatAdminSvc] - The vatAdmin Service, which carries the
42
- * power to create a new vat. If it's not available when makeZoe() is called, it
43
- * must be provided later using setVatAdminService().
44
- * @param {ShutdownWithFailure} [shutdownZoeVat] - a function to
45
- * shutdown the Zoe Vat. This function needs to use the vatPowers
46
- * available to a vat.
47
- * @param {FeeIssuerConfig} [feeIssuerConfig]
48
- * @param {ZCFSpec} [zcfSpec] - Pointer to the contract facet bundle.
49
- */
50
- export function makeZoeKit(vatAdminSvc?: import("@agoric/swingset-vat").VatAdminSvc | Promise<import("@agoric/swingset-vat").VatAdminSvc> | undefined, shutdownZoeVat?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined, feeIssuerConfig?: FeeIssuerConfig | undefined, zcfSpec?: ZCFSpec | undefined): {
51
- zoeService: ZoeService;
52
- zoeConfigFacet: {
53
- updateZcfBundleId(bundleId: any): void;
54
- } & import("@endo/eventual-send").RemotableBrand<{}, {
55
- updateZcfBundleId(bundleId: any): void;
56
- }>;
57
- /** @type {FeeMintAccess} */
58
- feeMintAccess: FeeMintAccess;
59
- setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
60
- };
61
- //# sourceMappingURL=zoe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":"sBA+Bc,OAAO,kBAAkB,EAAE,OAAO;qBA6PnC,WAAW,wBAAwB,CAAC;AAzPjD;;;;;;;;;;;;;GAaG;AACH;IAV4B,UAAU,EAA3B,OAAO;IACsC,WAAW;IAG1B,cAAc;IAGlB,eAAe;IACvB,OAAO;;;;;;;;IAyMhC,4BAA4B;mBAAjB,aAAa;;EAK3B;AAED;;;;;;;;;;;;;;;GAeG;AACH;;;;;;;IAvBI,4BAA4B;mBAAjB,aAAa;;EA8BxB"}
@@ -1,56 +0,0 @@
1
- export function makeZoeSeatAdminFactory(baggage: MapStore<string, any>): (initialAllocation: AmountKeywordRecord, proposal: ProposalRecord, instanceAdminHelper: InstanceAdminHelper, withdrawFacet: WithdrawFacet, exitObj?: ERef<ExitObj> | undefined, offerResultIsUndefined?: boolean | undefined) => {
2
- zoeSeatAdmin: {
3
- replaceAllocation(replacementAllocation: any): void;
4
- exit(completion: any): void;
5
- fail(reason: any): void;
6
- /** @param {HandleOfferResult} result */
7
- resolveExitAndResult({ offerResultPromise, exitObj }: HandleOfferResult): void;
8
- getExitSubscriber(): {
9
- subscribeAfter(publishCount?: bigint): Promise<any>;
10
- getUpdateSince(updateCount: any): any;
11
- };
12
- finalPayouts(payments: any): Promise<void>;
13
- };
14
- userSeat: {
15
- getProposal(): Promise<ProposalRecord>;
16
- getPayouts(): Promise<{}>;
17
- getPayout(keyword: any): Promise<any>;
18
- getOfferResult(): Promise<any>;
19
- hasExited(): Promise<boolean>;
20
- tryExit(): Promise<void>;
21
- numWantsSatisfied(): Promise<0 | 1>;
22
- getExitSubscriber(): {
23
- subscribeAfter(publishCount?: bigint): Promise<any>;
24
- getUpdateSince(updateCount: any): any;
25
- };
26
- getFinalAllocation(): Promise<AmountKeywordRecord>;
27
- };
28
- } & import("@endo/eventual-send").RemotableBrand<{}, {
29
- zoeSeatAdmin: {
30
- replaceAllocation(replacementAllocation: any): void;
31
- exit(completion: any): void;
32
- fail(reason: any): void;
33
- /** @param {HandleOfferResult} result */
34
- resolveExitAndResult({ offerResultPromise, exitObj }: HandleOfferResult): void;
35
- getExitSubscriber(): {
36
- subscribeAfter(publishCount?: bigint): Promise<any>;
37
- getUpdateSince(updateCount: any): any;
38
- };
39
- finalPayouts(payments: any): Promise<void>;
40
- };
41
- userSeat: {
42
- getProposal(): Promise<ProposalRecord>;
43
- getPayouts(): Promise<{}>;
44
- getPayout(keyword: any): Promise<any>;
45
- getOfferResult(): Promise<any>;
46
- hasExited(): Promise<boolean>;
47
- tryExit(): Promise<void>;
48
- numWantsSatisfied(): Promise<0 | 1>;
49
- getExitSubscriber(): {
50
- subscribeAfter(publishCount?: bigint): Promise<any>;
51
- getUpdateSince(updateCount: any): any;
52
- };
53
- getFinalAllocation(): Promise<AmountKeywordRecord>;
54
- };
55
- }>;
56
- //# sourceMappingURL=zoeSeat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zoeSeat.d.ts","sourceRoot":"","sources":["zoeSeat.js"],"names":[],"mappings":"AAkEO;;;;;QAgIC,wCAAwC;8DAA5B,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;QAA7B,wCAAwC;8DAA5B,iBAAiB;;;;;;;;;;;;;;;;;;;;;GAmJpC"}