@agoric/zoe 0.26.3-upgrade-16-dev-8879538.0 → 0.26.3-upgrade-16-dev-24665a9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/zoe",
3
- "version": "0.26.3-upgrade-16-dev-8879538.0+8879538",
3
+ "version": "0.26.3-upgrade-16-dev-24665a9.0+24665a9",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
@@ -43,17 +43,17 @@
43
43
  },
44
44
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
45
45
  "dependencies": {
46
- "@agoric/assert": "0.6.1-upgrade-16-dev-8879538.0+8879538",
47
- "@agoric/base-zone": "0.1.1-upgrade-16-dev-8879538.0+8879538",
48
- "@agoric/ertp": "0.16.3-upgrade-16-dev-8879538.0+8879538",
49
- "@agoric/internal": "0.3.3-upgrade-16-dev-8879538.0+8879538",
50
- "@agoric/notifier": "0.6.3-upgrade-16-dev-8879538.0+8879538",
51
- "@agoric/store": "0.9.3-upgrade-16-dev-8879538.0+8879538",
52
- "@agoric/swingset-liveslots": "0.10.3-upgrade-16-dev-8879538.0+8879538",
53
- "@agoric/swingset-vat": "0.32.3-upgrade-16-dev-8879538.0+8879538",
54
- "@agoric/time": "0.3.3-upgrade-16-dev-8879538.0+8879538",
55
- "@agoric/vat-data": "0.5.3-upgrade-16-dev-8879538.0+8879538",
56
- "@agoric/zone": "0.2.3-upgrade-16-dev-8879538.0+8879538",
46
+ "@agoric/assert": "0.6.1-upgrade-16-dev-24665a9.0+24665a9",
47
+ "@agoric/base-zone": "0.1.1-upgrade-16-dev-24665a9.0+24665a9",
48
+ "@agoric/ertp": "0.16.3-upgrade-16-dev-24665a9.0+24665a9",
49
+ "@agoric/internal": "0.3.3-upgrade-16-dev-24665a9.0+24665a9",
50
+ "@agoric/notifier": "0.6.3-upgrade-16-dev-24665a9.0+24665a9",
51
+ "@agoric/store": "0.9.3-upgrade-16-dev-24665a9.0+24665a9",
52
+ "@agoric/swingset-liveslots": "0.10.3-upgrade-16-dev-24665a9.0+24665a9",
53
+ "@agoric/swingset-vat": "0.32.3-upgrade-16-dev-24665a9.0+24665a9",
54
+ "@agoric/time": "0.3.3-upgrade-16-dev-24665a9.0+24665a9",
55
+ "@agoric/vat-data": "0.5.3-upgrade-16-dev-24665a9.0+24665a9",
56
+ "@agoric/zone": "0.2.3-upgrade-16-dev-24665a9.0+24665a9",
57
57
  "@endo/bundle-source": "^3.2.3",
58
58
  "@endo/captp": "^4.2.0",
59
59
  "@endo/common": "^1.2.2",
@@ -68,7 +68,7 @@
68
68
  "yargs-parser": "^21.1.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@agoric/kmarshal": "0.1.1-upgrade-16-dev-8879538.0+8879538",
71
+ "@agoric/kmarshal": "0.1.1-upgrade-16-dev-24665a9.0+24665a9",
72
72
  "@endo/init": "^1.1.2",
73
73
  "ava": "^5.3.0",
74
74
  "c8": "^9.1.0",
@@ -141,5 +141,5 @@
141
141
  "typeCoverage": {
142
142
  "atLeast": 84.92
143
143
  },
144
- "gitHead": "8879538cd1d125a08346f02dd5701d0d70c90bb8"
144
+ "gitHead": "24665a97248b854fcb01185d360429301470ed57"
145
145
  }
@@ -217,9 +217,20 @@ type OfferHandler<OR extends unknown = unknown, OA = never> =
217
217
  | {
218
218
  handle: HandleOffer<OR, OA>;
219
219
  };
220
- type ContractMeta = {
221
- customTermsShape?: import('@endo/pass-style').CopyRecord<any> | undefined;
222
- privateArgsShape?: import('@endo/pass-style').CopyRecord<any> | undefined;
220
+ type ContractMeta<
221
+ SF extends // import inline to maintain ambient mode
222
+ import('../zoeService/utils').ContractStartFunction = import('../zoeService/utils').ContractStartFunction,
223
+ > = {
224
+ customTermsShape?: Record<
225
+ Parameters<SF>[0] extends ZCF<infer CT> ? keyof CT : never,
226
+ Pattern
227
+ >;
228
+ privateArgsShape?: { [K in keyof Parameters<SF>[1]]: Pattern };
229
+ /**
230
+ * - `none` means that the contract is not upgradable.
231
+ * - `canUpgrade` means this code can perform an upgrade
232
+ * - `canBeUpgraded` means that the contract stores kinds durably such that the next version can upgrade
233
+ */
223
234
  upgradability?: 'none' | 'canBeUpgraded' | 'canUpgrade' | undefined;
224
235
  };
225
236
  /**
@@ -244,7 +255,8 @@ type ContractStartFnResult<PF, CF> = {
244
255
  };
245
256
 
246
257
  // XXX redef, losing documentation
247
- type ContractOf<S> = import('../zoeService/utils').ContractOf<S>;
258
+ type ContractOf<S extends (...args: any) => any> =
259
+ import('../zoeService/utils').ContractOf<S>;
248
260
  type AdminFacet = import('../zoeService/utils').AdminFacet<any>;
249
261
 
250
262
  declare const OfferReturn: unique symbol;
@@ -106,7 +106,7 @@ export const prepareZcMint = (
106
106
  // committed atomically, but it is not a disaster if they are
107
107
  // not. If we minted only, no one would ever get those
108
108
  // invisibly-minted assets.
109
- E(zoeMint).mintAndEscrow(totalToMint);
109
+ void E(zoeMint).mintAndEscrow(totalToMint);
110
110
  reallocator.reallocate(zcfSeat, allocationPlusGains);
111
111
  return zcfSeat;
112
112
  },
@@ -143,7 +143,7 @@ export const prepareZcMint = (
143
143
  // not. If we only commit the allocationMinusLosses no one would
144
144
  // ever get the unburned assets.
145
145
  reallocator.reallocate(zcfSeat, allocationMinusLosses);
146
- E(zoeMint).withdrawAndBurn(totalToBurn);
146
+ void E(zoeMint).withdrawAndBurn(totalToBurn);
147
147
  },
148
148
  },
149
149
  );
@@ -1 +1 @@
1
- {"version":3,"file":"zcfSeat.d.ts","sourceRoot":"","sources":["zcfSeat.js"],"names":[],"mappings":"AAqCO,oDANI,IAAI,CAAC,gBAAgB,CAAC,uBACtB,mBAAmB,uBACnB,OAAO,sBAAsB,EAAE,mBAAmB,cAClD,OAAO,kBAAkB,EAAE,OAAO,GAChC;IAAE,WAAW,EAAE,cAAc,CAAC;IAAC,kBAAkB,EAAE,kBAAkB,CAAA;CAAE,CAmenF"}
1
+ {"version":3,"file":"zcfSeat.d.ts","sourceRoot":"","sources":["zcfSeat.js"],"names":[],"mappings":"AAqCO,oDANI,IAAI,CAAC,gBAAgB,CAAC,uBACtB,mBAAmB,uBACnB,OAAO,sBAAsB,EAAE,mBAAmB,cAClD,OAAO,kBAAkB,EAAE,OAAO,GAChC;IAAE,WAAW,EAAE,cAAc,CAAC;IAAC,kBAAkB,EAAE,kBAAkB,CAAA;CAAE,CAsenF"}
@@ -167,7 +167,10 @@ export const createSeatManager = (
167
167
  assertActive(self);
168
168
  assertNoStagedAllocation(self);
169
169
  doExitSeat(self);
170
- E(zoeInstanceAdmin).exitSeat(zcfSeatToSeatHandle.get(self), completion);
170
+ void E(zoeInstanceAdmin).exitSeat(
171
+ zcfSeatToSeatHandle.get(self),
172
+ completion,
173
+ );
171
174
  zcfSeatToSeatHandle.delete(self);
172
175
  },
173
176
  fail(
@@ -185,7 +188,7 @@ export const createSeatManager = (
185
188
  }
186
189
  if (!hasExited(self)) {
187
190
  doExitSeat(self);
188
- E(zoeInstanceAdmin).failSeat(
191
+ void E(zoeInstanceAdmin).failSeat(
189
192
  zcfSeatToSeatHandle.get(self),
190
193
  harden(reason),
191
194
  );
@@ -78,7 +78,7 @@ export const makeZCFZygote = async (
78
78
 
79
79
  /** @type {import('@agoric/swingset-vat').ShutdownWithFailure} */
80
80
  const shutdownWithFailure = reason => {
81
- E(zoeInstanceAdmin).failAllSeats(reason);
81
+ void E(zoeInstanceAdmin).failAllSeats(reason);
82
82
  seatManager.dropAllReferences();
83
83
  // https://github.com/Agoric/agoric-sdk/issues/3239
84
84
  powers.exitVatWithFailure(reason);
@@ -114,7 +114,7 @@ export const makeZCFZygote = async (
114
114
  const zcfSeat = seatManager.makeZCFSeat(seatData);
115
115
 
116
116
  const exiter = makeExiter(seatData.proposal, zcfSeat);
117
- E(zoeInstanceAdmin)
117
+ void E(zoeInstanceAdmin)
118
118
  .makeNoEscrowSeat(initialAllocation, proposal, exiter, seatHandle)
119
119
  .then(userSeat => userSeatPromiseKit.resolve(userSeat));
120
120
 
@@ -326,7 +326,7 @@ export const makeZCFZygote = async (
326
326
  },
327
327
  // Shutdown the entire vat and give payouts
328
328
  shutdown: completion => {
329
- E(zoeInstanceAdmin).exitAllSeats(completion);
329
+ void E(zoeInstanceAdmin).exitAllSeats(completion);
330
330
  seatManager.dropAllReferences();
331
331
  powers.exitVat(completion);
332
332
  },
@@ -199,7 +199,7 @@ export const makeOnewayPriceAuthorityKit = opts => {
199
199
  );
200
200
  amountIn = coercedAmountIn;
201
201
  amountOutLimit = coercedAmountOutLimit;
202
- fireTriggers(createQuote);
202
+ void fireTriggers(createQuote);
203
203
  },
204
204
  getPromise: () => triggerPK.promise,
205
205
  });
@@ -104,7 +104,7 @@ export const makeInitialTransform = (
104
104
  assert.equal(bOut, brandOut);
105
105
 
106
106
  const quoteP = E(priceAuthority).quoteGiven(amountIn, brandOut);
107
- quoteP.then(() => (initialMode = false));
107
+ void quoteP.then(() => (initialMode = false));
108
108
  return initialMode
109
109
  ? mintCurrentQuote(amountIn, multiplyBy(amountIn, priceOutPerIn))
110
110
  : quoteP;
@@ -365,7 +365,7 @@ export const offerTo = async (
365
365
  depositedPromiseKit.resolve(mappedAmounts);
366
366
  };
367
367
 
368
- E(userSeatPromise).getPayouts().then(doDeposit);
368
+ void E(userSeatPromise).getPayouts().then(doDeposit);
369
369
 
370
370
  // TODO rename return key; userSeatPromise is a remote UserSeat
371
371
  return harden({ userSeatPromise, deposited: depositedPromiseKit.promise });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,2BANW,GAAG,CAAC;IACd,aAAe,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;IACrD,iBAAmB,CAAC,EAAE,8BAA0B,CAAC;IACjD,WAAa,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0HJ;AAlJD,wCAAkC;AAClC,0CAAoC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,2BANW,GAAG,CAAC;IACd,aAAe,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;IACrD,iBAAmB,CAAC,EAAE,8BAA0B,CAAC;IACjD,WAAa,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyHJ;AAjJD,wCAAkC;AAClC,0CAAoC"}
@@ -127,8 +127,7 @@ const start = zcf => {
127
127
  });
128
128
  assertBidSeat(zcf, sellSeat, seat);
129
129
 
130
- // XXX await make function hanging
131
- startWakeupTimerIfNeeded();
130
+ void startWakeupTimerIfNeeded();
132
131
 
133
132
  bidSeats.push(seat);
134
133
  return defaultAcceptanceMsg;
@@ -40,7 +40,7 @@ function makePayoffHandler(zcf, seatPromiseKits, collateralSeat) {
40
40
  }
41
41
 
42
42
  function reallocateToSeat(seatPromise, seatPortion) {
43
- E.when(seatPromise, seat => {
43
+ void E.when(seatPromise, seat => {
44
44
  atomicTransfer(zcf, collateralSeat, seat, { Collateral: seatPortion });
45
45
  seat.exit();
46
46
  seatsExited += 1;
@@ -81,7 +81,7 @@ const start = zcf => {
81
81
  'strikePrice2 must be greater than strikePrice1',
82
82
  );
83
83
 
84
- zcf.saveIssuer(zcf.getInvitationIssuer(), 'Options');
84
+ void zcf.saveIssuer(zcf.getInvitationIssuer(), 'Options');
85
85
 
86
86
  // We will create the two options early and allocate them to this seat.
87
87
  const { zcfSeat: collateralSeat } = zcf.makeEmptySeatKit();
@@ -44,7 +44,7 @@ export const scheduleLiquidation = (zcf, configWithBorrower) => {
44
44
  const currentCollateral = collateralSeat.getAmountAllocated('Collateral');
45
45
  if (AmountMath.isEqual(amountIn, currentCollateral)) {
46
46
  liquidationPromiseKit.resolve(priceQuote);
47
- liquidate(zcf, configWithBorrower);
47
+ void liquidate(zcf, configWithBorrower);
48
48
  }
49
49
  })
50
50
  .catch(err => {
@@ -75,7 +75,7 @@ const start = async zcf => {
75
75
  Fail`Oracle required a fee but the query had none`;
76
76
  return reply;
77
77
  } catch (e) {
78
- E(handler).onError(query, e);
78
+ void E(handler).onError(query, e);
79
79
  throw e;
80
80
  }
81
81
  },
@@ -91,10 +91,10 @@ const start = async zcf => {
91
91
  atomicTransfer(zcf, querySeat, feeSeat, { Fee: requiredFee });
92
92
  }
93
93
  querySeat.exit();
94
- E(handler).onReply(query, reply, requiredFee);
94
+ void E(handler).onReply(query, reply, requiredFee);
95
95
  return reply;
96
96
  } catch (e) {
97
- E(handler).onError(query, e);
97
+ void E(handler).onError(query, e);
98
98
  throw e;
99
99
  }
100
100
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;QAoYhC;;;;;;;;;WASG;;;;mCAYsF,cAAc;;;;;;QA0CvG,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;;;QAhFH;;;;;;;;;WASG;;;;mCAYsF,cAAc;;;;;;QA0CvG,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;;;;;;QAkHH,sBAAsB;;;;;QAAtB,sBAAsB;;;;AAjkB1B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,2BAbW,GAAG,CAAC;IACd,KAAO,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;IAC7C,aAAe,EAAE,MAAM,CAAC;IACxB,OAAS,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,QAAU,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACzB,YAAc,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC3B,CAAC;gBAEU,UAAU;;iBAET,IAAI,CAAC,WAAW,CAAC;;;QA8W7B;;;;;;;;;WASG;;mBAY4B,WAAW,CAAC,KAAK,CAAC;8BAAoB;gBAAC,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;aAAC;;;;;QA0CtI,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;yGADU,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;QA/ExC;;;;;;;;;WASG;;mBAY4B,WAAW,CAAC,KAAK,CAAC;8BAAoB;gBAAC,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;aAAC;;;;;QA0CtI,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;yGADU,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;;;;QAmHxC,sBAAsB;;;;;QAAtB,sBAAsB;;;GAOzB;sCAplB4E,4BAA4B"}
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;;;;;;;;;;;;;;;;;;;;;QAuYhC;;;;;;;;;WASG;;;;mCAYsF,cAAc;;;;;;QA0CvG,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;;;QAhFH;;;;;;;;;WASG;;;;mCAYsF,cAAc;;;;;;QA0CvG,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;;;;;;QAkHH,sBAAsB;;;;;QAAtB,sBAAsB;;;;AApkB1B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,2BAbW,GAAG,CAAC;IACd,KAAO,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;IAC7C,aAAe,EAAE,MAAM,CAAC;IACxB,OAAS,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,QAAU,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACzB,YAAc,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC3B,CAAC;gBAEU,UAAU;;iBAET,IAAI,CAAC,WAAW,CAAC;;;QAiX7B;;;;;;;;;WASG;;mBAY4B,WAAW,CAAC,KAAK,CAAC;8BAAoB;gBAAC,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;aAAC;;;;;QA0CtI,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;yGADU,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;QA/ExC;;;;;;;;;WASG;;mBAY4B,WAAW,CAAC,KAAK,CAAC;8BAAoB;gBAAC,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;aAAC;;;;;QA0CtI,mCAAmC;kCAAvB,SAAS;QAarB;;;;WAIG;yGADU,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;;;;QAmHxC,sBAAsB;;;;;QAAtB,sBAAsB;;;GAOzB;sCAvlB4E,4BAA4B"}
@@ -159,7 +159,7 @@ const start = async (zcf, privateArgs) => {
159
159
  await Promise.all(querierPs).catch(console.error);
160
160
  },
161
161
  });
162
- E(repeaterP).schedule(waker);
162
+ void E(repeaterP).schedule(waker);
163
163
 
164
164
  /**
165
165
  * @param {object} param0
@@ -231,17 +231,20 @@ const start = async (zcf, privateArgs) => {
231
231
  });
232
232
 
233
233
  // for each new quote from the priceAuthority, publish it to off-chain storage
234
- observeNotifier(priceAuthority.makeQuoteNotifier(unitAmountIn, brandOut), {
235
- updateState: quote => {
236
- publisher.publish(priceDescriptionFromQuote(quote));
237
- },
238
- fail: reason => {
239
- throw Error(`priceAuthority observer failed: ${reason}`);
240
- },
241
- finish: done => {
242
- throw Error(`priceAuthority observer died: ${done}`);
234
+ void observeNotifier(
235
+ priceAuthority.makeQuoteNotifier(unitAmountIn, brandOut),
236
+ {
237
+ updateState: quote => {
238
+ publisher.publish(priceDescriptionFromQuote(quote));
239
+ },
240
+ fail: reason => {
241
+ throw Error(`priceAuthority observer failed: ${reason}`);
242
+ },
243
+ finish: done => {
244
+ throw Error(`priceAuthority observer died: ${done}`);
245
+ },
243
246
  },
244
- });
247
+ );
245
248
 
246
249
  /**
247
250
  * @param {Ratio} r
@@ -388,7 +391,7 @@ const start = async (zcf, privateArgs) => {
388
391
  return;
389
392
  }
390
393
  // Queue the next update.
391
- E(oracleNotifier).getUpdateSince(updateCount).then(recurse);
394
+ void E(oracleNotifier).getUpdateSince(updateCount).then(recurse);
392
395
 
393
396
  // See if we have associated parameters or just a raw value.
394
397
  /** @type {Ratio | undefined} */
@@ -424,7 +427,7 @@ const start = async (zcf, privateArgs) => {
424
427
  };
425
428
 
426
429
  // Start the notifier.
427
- E(oracleNotifier).getUpdateSince().then(recurse);
430
+ void E(oracleNotifier).getUpdateSince().then(recurse);
428
431
  };
429
432
 
430
433
  const creatorFacet = Far('PriceAggregatorCreatorFacet', {
@@ -463,7 +466,7 @@ const start = async (zcf, privateArgs) => {
463
466
  assertParsableNumber(price);
464
467
  return zcf.makeInvitation(cSeat => {
465
468
  cSeat.exit();
466
- admin.pushResult(price);
469
+ void admin.pushResult(price);
467
470
  }, 'PushPrice');
468
471
  },
469
472
  });
@@ -52,7 +52,7 @@ const start = zcf => {
52
52
  const sell = seat => {
53
53
  sellerSeat = seat;
54
54
 
55
- observeIteration(
55
+ void observeIteration(
56
56
  subscribeLatest(sellerSeat.getSubscriber()),
57
57
  harden({
58
58
  updateState: sellerSeatAllocation =>
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @template {string} H - the name of the handle
5
- * @typedef {import("@endo/marshal").RemotableObject<H>} Handle Alias for RemotableObject
5
+ * @typedef {import('@endo/marshal').RemotableObject<H>} Handle Alias for RemotableObject
6
6
  */
7
7
 
8
8
  /**
@@ -24,13 +24,13 @@
24
24
  *
25
25
  * @typedef {object} InstanceRecord
26
26
  * @property {import('./zoeService/utils.js').Installation<any>} installation
27
- * @property {import("./zoeService/utils.js").Instance<any>} instance
27
+ * @property {import('./zoeService/utils.js').Instance<any>} instance
28
28
  * @property {AnyTerms} terms - contract parameters
29
29
  */
30
30
 
31
31
  /**
32
32
  * @template {AssetKind} [K=AssetKind]
33
- * @template {import("@endo/patterns").Key} [M=import("@endo/patterns").Key] member kind, for Amounts that have member values
33
+ * @template {import('@endo/patterns').Key} [M=import('@endo/patterns').Key] member kind, for Amounts that have member values
34
34
  * @typedef {object} IssuerRecord
35
35
  * @property {Brand<K>} brand
36
36
  * @property {Issuer<K, M>} issuer
@@ -178,7 +178,7 @@ const makeInstanceAdminBehavior = (zoeBaggage, makeZoeSeatAdminKit) => {
178
178
 
179
179
  state.zoeSeatAdmins.add(zoeSeatAdmin);
180
180
  state.handleOfferObj || Fail`incomplete setup of zoe seat`;
181
- E.when(
181
+ void E.when(
182
182
  E(state.handleOfferObj).handleOffer(invitationHandle, seatData),
183
183
  /** @param {HandleOfferResult} result */
184
184
  result => zoeSeatAdmin.resolveExitAndResult(result),
@@ -169,7 +169,7 @@ export const declareOldZoeSeatAdminKind = (baggage, makeDurablePublishKit) => {
169
169
  assertHasNotExited(this, 'Cannot exit seat. Seat has already exited');
170
170
 
171
171
  state.exiting = true;
172
- E.when(
172
+ void E.when(
173
173
  doExit(
174
174
  facets.zoeSeatAdmin,
175
175
  state.currentAllocation,
@@ -190,7 +190,7 @@ export const declareOldZoeSeatAdminKind = (baggage, makeDurablePublishKit) => {
190
190
  assertHasNotExited(this, 'Cannot fail seat. Seat has already exited');
191
191
 
192
192
  state.exiting = true;
193
- E.when(
193
+ void E.when(
194
194
  doExit(
195
195
  facets.zoeSeatAdmin,
196
196
  state.currentAllocation,
@@ -104,13 +104,16 @@ export type StartInstance = <SF>(
104
104
  issuerKeywordRecord?: Record<Keyword, Issuer<any>>,
105
105
  // 'brands' and 'issuers' need not be passed in; Zoe provides them as StandardTerms
106
106
  terms?: Omit<StartParams<SF>['terms'], 'brands' | 'issuers'>,
107
+ // @ts-expect-error XXX
107
108
  privateArgs?: Parameters<SF>[1],
108
109
  label?: string,
110
+ // @ts-expect-error XXX
109
111
  ) => Promise<StartedInstanceKit<SF>>;
110
112
 
111
113
  // XXX SF should extend ContractStartFunction but doing that triggers a bunch of tech debt type errors
112
114
  export type GetPublicFacet = <SF>(
113
115
  instance: Instance<SF> | PromiseLike<Instance<SF>>,
116
+ // @ts-expect-error XXX
114
117
  ) => Promise<StartResult<SF>['publicFacet']>;
115
118
 
116
119
  export type GetTerms = <SF>(instance: Instance<SF>) => Promise<
@@ -228,7 +228,7 @@ export const makeZoeSeatAdminFactory = baggage => {
228
228
  );
229
229
 
230
230
  state.exiting = true;
231
- E.when(
231
+ void E.when(
232
232
  doExit(
233
233
  facets.zoeSeatAdmin,
234
234
  state.currentAllocation,
@@ -92,7 +92,7 @@ export function makeManualPriceAuthority(options) {
92
92
  setPrice: newPrice => {
93
93
  currentPrice = newPrice;
94
94
  updater.updateState(currentPrice);
95
- fireTriggers(createQuote);
95
+ void fireTriggers(createQuote);
96
96
  },
97
97
  disable: () => {
98
98
  disabled = true;
@@ -1 +1 @@
1
- {"version":3,"file":"scriptedOracle.d.ts","sourceRoot":"","sources":["scriptedOracle.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,2CANW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,sBACnB,YAAY,CAAC,OAAO,4BAA4B,EAAE,WAAW,CAAC,SAC9D,OAAO,cAAc,EAAE,YAAY,OACnC,UAAU,aACV,MAAM;;qBAiCH,WACP;mCAIib,WAAW;;;;;;GADlc"}
1
+ {"version":3,"file":"scriptedOracle.d.ts","sourceRoot":"","sources":["scriptedOracle.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,2CANW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,sBACnB,YAAY,CAAC,OAAO,4BAA4B,EAAE,WAAW,CAAC,SAC9D,OAAO,cAAc,EAAE,YAAY,OACnC,UAAU,aACV,MAAM;;qBAiCH,WACP;mCAIsb,WAAW;;;;;;GADvc"}
@@ -91,10 +91,10 @@ export function makeScriptedPriceAuthority(options) {
91
91
  currentPrice =
92
92
  priceList[Number(Number(t / quoteInterval) % priceList.length)];
93
93
 
94
- fireTriggers(createQuote);
94
+ void fireTriggers(createQuote);
95
95
  },
96
96
  });
97
- observeNotifier(notifier, priceObserver);
97
+ void observeNotifier(notifier, priceObserver);
98
98
 
99
99
  return priceAuthority;
100
100
  }