@agoric/fast-usdc 0.1.1-dev-ef82fbf.0 → 0.1.1-dev-11c895a.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-ef82fbf.0+ef82fbf",
3
+ "version": "0.1.1-dev-11c895a.0+11c895a",
4
4
  "description": "CLI and library for Fast USDC product",
5
5
  "type": "module",
6
6
  "files": [
@@ -21,9 +21,9 @@
21
21
  "lint:eslint": "eslint ."
22
22
  },
23
23
  "devDependencies": {
24
- "@agoric/swingset-liveslots": "0.10.3-dev-ef82fbf.0+ef82fbf",
25
- "@agoric/vats": "0.15.2-dev-ef82fbf.0+ef82fbf",
26
- "@agoric/zone": "0.2.3-dev-ef82fbf.0+ef82fbf",
24
+ "@agoric/swingset-liveslots": "0.10.3-dev-11c895a.0+11c895a",
25
+ "@agoric/vats": "0.15.2-dev-11c895a.0+11c895a",
26
+ "@agoric/zone": "0.2.3-dev-11c895a.0+11c895a",
27
27
  "@fast-check/ava": "^2.0.1",
28
28
  "ava": "^5.3.0",
29
29
  "c8": "^10.1.2",
@@ -31,15 +31,15 @@
31
31
  "ts-blank-space": "^0.4.1"
32
32
  },
33
33
  "dependencies": {
34
- "@agoric/client-utils": "0.1.1-dev-ef82fbf.0+ef82fbf",
35
- "@agoric/ertp": "0.16.3-dev-ef82fbf.0+ef82fbf",
36
- "@agoric/internal": "0.3.3-dev-ef82fbf.0+ef82fbf",
37
- "@agoric/notifier": "0.6.3-dev-ef82fbf.0+ef82fbf",
38
- "@agoric/orchestration": "0.1.1-dev-ef82fbf.0+ef82fbf",
39
- "@agoric/store": "0.9.3-dev-ef82fbf.0+ef82fbf",
40
- "@agoric/vat-data": "0.5.3-dev-ef82fbf.0+ef82fbf",
41
- "@agoric/vow": "0.1.1-dev-ef82fbf.0+ef82fbf",
42
- "@agoric/zoe": "0.26.3-dev-ef82fbf.0+ef82fbf",
34
+ "@agoric/client-utils": "0.1.1-dev-11c895a.0+11c895a",
35
+ "@agoric/ertp": "0.16.3-dev-11c895a.0+11c895a",
36
+ "@agoric/internal": "0.3.3-dev-11c895a.0+11c895a",
37
+ "@agoric/notifier": "0.6.3-dev-11c895a.0+11c895a",
38
+ "@agoric/orchestration": "0.1.1-dev-11c895a.0+11c895a",
39
+ "@agoric/store": "0.9.3-dev-11c895a.0+11c895a",
40
+ "@agoric/vat-data": "0.5.3-dev-11c895a.0+11c895a",
41
+ "@agoric/vow": "0.1.1-dev-11c895a.0+11c895a",
42
+ "@agoric/zoe": "0.26.3-dev-11c895a.0+11c895a",
43
43
  "@cosmjs/proto-signing": "^0.32.4",
44
44
  "@cosmjs/stargate": "^0.32.4",
45
45
  "@endo/base64": "^1.0.9",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "ef82fbf7466ea1b57c321f735d73fcee2c66fd11"
81
+ "gitHead": "11c895ad99390304e9e202d7c8ec5375d8bfffb9"
82
82
  }
@@ -1,9 +1,5 @@
1
1
  import { AssetKind } from '@agoric/ertp';
2
- import {
3
- assertAllDefined,
4
- deeplyFulfilledObject,
5
- makeTracer,
6
- } from '@agoric/internal';
2
+ import { assertAllDefined, makeTracer } from '@agoric/internal';
7
3
  import { observeIteration, subscribeEach } from '@agoric/notifier';
8
4
  import {
9
5
  CosmosChainInfoShape,
@@ -12,20 +8,19 @@ import {
12
8
  registerChainsAndAssets,
13
9
  withOrchestration,
14
10
  } from '@agoric/orchestration';
11
+ import { makeZoeTools } from '@agoric/orchestration/src/utils/zoe-tools.js';
15
12
  import { provideSingleton } from '@agoric/zoe/src/contractSupport/durability.js';
16
13
  import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/recorder.js';
17
- import { makeZoeTools } from '@agoric/orchestration/src/utils/zoe-tools.js';
18
- import { depositToSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js';
19
14
  import { E } from '@endo/far';
20
- import { M, objectMap } from '@endo/patterns';
15
+ import { M } from '@endo/patterns';
21
16
  import { prepareAdvancer } from './exos/advancer.js';
22
17
  import { prepareLiquidityPoolKit } from './exos/liquidity-pool.js';
23
18
  import { prepareSettler } from './exos/settler.js';
24
19
  import { prepareStatusManager } from './exos/status-manager.js';
25
20
  import { prepareTransactionFeedKit } from './exos/transaction-feed.js';
26
- import { defineInertInvitation } from './utils/zoe.js';
27
- import { FastUSDCTermsShape, FeeConfigShape } from './type-guards.js';
28
21
  import * as flows from './fast-usdc.flows.js';
22
+ import { FastUSDCTermsShape, FeeConfigShape } from './type-guards.js';
23
+ import { defineInertInvitation } from './utils/zoe.js';
29
24
 
30
25
  const trace = makeTracer('FastUsdc');
31
26
 
@@ -151,35 +146,6 @@ export const contract = async (zcf, privateArgs, zone, tools) => {
151
146
  async makeOperatorInvitation(operatorId) {
152
147
  return feedKit.creator.makeOperatorInvitation(operatorId);
153
148
  },
154
- /**
155
- * @param {{ USDC: Amount<'nat'>}} amounts
156
- */
157
- testBorrow(amounts) {
158
- console.log('🚧🚧 UNTIL: borrow is integrated (#10388) 🚧🚧', amounts);
159
- const { zcfSeat: tmpAssetManagerSeat } = zcf.makeEmptySeatKit();
160
- poolKit.borrower.borrow(tmpAssetManagerSeat, amounts);
161
- return tmpAssetManagerSeat.getCurrentAllocation();
162
- },
163
- /**
164
- *
165
- * @param {RepayAmountKWR} amounts
166
- * @param {RepayPaymentKWR} payments
167
- * @returns {Promise<AmountKeywordRecord>}
168
- */
169
- async testRepay(amounts, payments) {
170
- console.log('🚧🚧 UNTIL: repay is integrated (#10388) 🚧🚧', amounts);
171
- const { zcfSeat: tmpAssetManagerSeat } = zcf.makeEmptySeatKit();
172
- await depositToSeat(
173
- zcf,
174
- tmpAssetManagerSeat,
175
- await deeplyFulfilledObject(
176
- objectMap(payments, pmt => E(terms.issuers.USDC).getAmountOf(pmt)),
177
- ),
178
- payments,
179
- );
180
- poolKit.repayer.repay(tmpAssetManagerSeat, amounts);
181
- return tmpAssetManagerSeat.getCurrentAllocation();
182
- },
183
149
  });
184
150
 
185
151
  const publicFacet = zone.exo('Fast USDC Public', undefined, {