@agoric/fast-usdc 0.1.1-dev-fe66674.0 → 0.1.1-dev-85bac81.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/fast-usdc",
3
- "version": "0.1.1-dev-fe66674.0+fe66674",
3
+ "version": "0.1.1-dev-85bac81.0+85bac81",
4
4
  "description": "CLI and library for Fast USDC product",
5
5
  "type": "module",
6
6
  "files": [
@@ -23,9 +23,9 @@
23
23
  "lint:eslint": "eslint ."
24
24
  },
25
25
  "devDependencies": {
26
- "@agoric/swingset-liveslots": "0.10.3-dev-fe66674.0+fe66674",
27
- "@agoric/vats": "0.15.2-dev-fe66674.0+fe66674",
28
- "@agoric/zone": "0.2.3-dev-fe66674.0+fe66674",
26
+ "@agoric/swingset-liveslots": "0.10.3-dev-85bac81.0+85bac81",
27
+ "@agoric/vats": "0.15.2-dev-85bac81.0+85bac81",
28
+ "@agoric/zone": "0.2.3-dev-85bac81.0+85bac81",
29
29
  "@fast-check/ava": "^2.0.1",
30
30
  "ava": "^5.3.0",
31
31
  "c8": "^10.1.2",
@@ -33,16 +33,16 @@
33
33
  "ts-blank-space": "^0.4.4"
34
34
  },
35
35
  "dependencies": {
36
- "@agoric/client-utils": "0.1.1-dev-fe66674.0+fe66674",
37
- "@agoric/cosmic-proto": "0.4.1-dev-fe66674.0+fe66674",
38
- "@agoric/ertp": "0.16.3-dev-fe66674.0+fe66674",
39
- "@agoric/internal": "0.3.3-dev-fe66674.0+fe66674",
40
- "@agoric/notifier": "0.6.3-dev-fe66674.0+fe66674",
41
- "@agoric/orchestration": "0.1.1-dev-fe66674.0+fe66674",
42
- "@agoric/store": "0.9.3-dev-fe66674.0+fe66674",
43
- "@agoric/vat-data": "0.5.3-dev-fe66674.0+fe66674",
44
- "@agoric/vow": "0.1.1-dev-fe66674.0+fe66674",
45
- "@agoric/zoe": "0.26.3-dev-fe66674.0+fe66674",
36
+ "@agoric/client-utils": "0.1.1-dev-85bac81.0+85bac81",
37
+ "@agoric/cosmic-proto": "0.4.1-dev-85bac81.0+85bac81",
38
+ "@agoric/ertp": "0.16.3-dev-85bac81.0+85bac81",
39
+ "@agoric/internal": "0.3.3-dev-85bac81.0+85bac81",
40
+ "@agoric/notifier": "0.6.3-dev-85bac81.0+85bac81",
41
+ "@agoric/orchestration": "0.1.1-dev-85bac81.0+85bac81",
42
+ "@agoric/store": "0.9.3-dev-85bac81.0+85bac81",
43
+ "@agoric/vat-data": "0.5.3-dev-85bac81.0+85bac81",
44
+ "@agoric/vow": "0.1.1-dev-85bac81.0+85bac81",
45
+ "@agoric/zoe": "0.26.3-dev-85bac81.0+85bac81",
46
46
  "@cosmjs/proto-signing": "^0.32.4",
47
47
  "@cosmjs/stargate": "^0.32.4",
48
48
  "@endo/base64": "^1.0.9",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "fe666748e6b4ff8f8152eb77740fb6dd0cef5b83"
85
+ "gitHead": "85bac810ac4684978b3fac16cea9af04996cc9f1"
86
86
  }
@@ -14,7 +14,7 @@ import { assertAllDefined } from '@agoric/internal';
14
14
  * @param {string} opts.offerId
15
15
  * @param {bigint} opts.fastLPAmount
16
16
  * @param {bigint} opts.usdcAmount
17
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
17
+ * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec & {proposal: USDCProposalShapes['deposit']}}
18
18
  */
19
19
  const makeDepositOffer = ({ brand }, { offerId, fastLPAmount, usdcAmount }) => {
20
20
  assertAllDefined({ offerId, fastLPAmount, usdcAmount });
@@ -223,7 +223,8 @@ export const prepareAdvancerKit = (
223
223
  onFulfilled(result, ctx) {
224
224
  const { poolAccount, intermediateRecipient, settlementAddress } =
225
225
  this.state;
226
- const { destination, advanceAmount, tmpSeat: _, ...detail } = ctx;
226
+ const { destination, advanceAmount, tmpSeat, ...detail } = ctx;
227
+ tmpSeat.exit();
227
228
  const amount = harden({
228
229
  denom: usdc.denom,
229
230
  value: advanceAmount.value,
@@ -260,6 +261,7 @@ export const prepareAdvancerKit = (
260
261
  const { borrower, notifier } = this.state;
261
262
  notifier.notifyAdvancingResult(restCtx, false);
262
263
  borrower.returnToPool(tmpSeat, advanceAmount);
264
+ tmpSeat.exit();
263
265
  } catch (e) {
264
266
  log('🚨 deposit to localOrchAccount failure recovery failed', e);
265
267
  }
@@ -192,7 +192,9 @@ export const prepareLiquidityPoolKit = (zone, zcf, USDC, tools) => {
192
192
  zcf.atomicRearrange(
193
193
  harden([[borrowSeat, repaySeat, { USDC: amount }, returnAmounts]]),
194
194
  );
195
- return this.facets.repayer.repay(repaySeat, returnAmounts);
195
+ this.facets.repayer.repay(repaySeat, returnAmounts);
196
+ borrowSeat.exit();
197
+ repaySeat.exit();
196
198
  },
197
199
  },
198
200
  repayer: {
@@ -327,6 +327,7 @@ export const prepareSettler = (
327
327
  harden([[settlingSeat, settlingSeat, { In: received }, split]]),
328
328
  );
329
329
  repayer.repay(settlingSeat, split);
330
+ settlingSeat.exit();
330
331
 
331
332
  // update status manager, marking tx `DISBURSED`
332
333
  statusManager.disbursed(txHash, split);
@@ -193,6 +193,9 @@ export const contract = async (zcf, privateArgs, zone, tools) => {
193
193
  await publishAddresses(storageNode, addresses);
194
194
  return addresses;
195
195
  },
196
+ deleteCompletedTxs() {
197
+ return statusManager.deleteCompletedTxs();
198
+ },
196
199
  });
197
200
 
198
201
  const publicFacet = zone.exo('Fast USDC Public', undefined, {