@agoric/inter-protocol 0.13.2-dev-7cd7bb7.0 → 0.13.2-dev-470ca41.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/inter-protocol",
3
- "version": "0.13.2-dev-7cd7bb7.0+7cd7bb7",
3
+ "version": "0.13.2-dev-470ca41.0+470ca41",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -29,28 +29,28 @@
29
29
  },
30
30
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
31
31
  "dependencies": {
32
- "@agoric/assert": "0.5.2-dev-7cd7bb7.0+7cd7bb7",
33
- "@agoric/ertp": "0.15.4-dev-7cd7bb7.0+7cd7bb7",
34
- "@agoric/governance": "0.9.2-dev-7cd7bb7.0+7cd7bb7",
35
- "@agoric/internal": "0.2.2-dev-7cd7bb7.0+7cd7bb7",
36
- "@agoric/notifier": "0.5.2-dev-7cd7bb7.0+7cd7bb7",
37
- "@agoric/store": "0.8.4-dev-7cd7bb7.0+7cd7bb7",
38
- "@agoric/time": "0.2.2-dev-7cd7bb7.0+7cd7bb7",
39
- "@agoric/vat-data": "0.4.4-dev-7cd7bb7.0+7cd7bb7",
40
- "@agoric/vats": "0.13.1-dev-7cd7bb7.0+7cd7bb7",
41
- "@agoric/zoe": "0.25.4-dev-7cd7bb7.0+7cd7bb7",
32
+ "@agoric/assert": "0.5.2-dev-470ca41.0+470ca41",
33
+ "@agoric/ertp": "0.15.4-dev-470ca41.0+470ca41",
34
+ "@agoric/governance": "0.9.2-dev-470ca41.0+470ca41",
35
+ "@agoric/internal": "0.2.2-dev-470ca41.0+470ca41",
36
+ "@agoric/notifier": "0.5.2-dev-470ca41.0+470ca41",
37
+ "@agoric/store": "0.8.4-dev-470ca41.0+470ca41",
38
+ "@agoric/time": "0.2.2-dev-470ca41.0+470ca41",
39
+ "@agoric/vat-data": "0.4.4-dev-470ca41.0+470ca41",
40
+ "@agoric/vats": "0.13.1-dev-470ca41.0+470ca41",
41
+ "@agoric/zoe": "0.25.4-dev-470ca41.0+470ca41",
42
42
  "@endo/captp": "^3.1.0",
43
43
  "@endo/eventual-send": "^0.17.1",
44
44
  "@endo/far": "^0.2.17",
45
45
  "@endo/marshal": "^0.8.4",
46
46
  "@endo/nat": "^4.1.26",
47
- "agoric": "0.18.3-dev-7cd7bb7.0+7cd7bb7"
47
+ "agoric": "0.18.3-dev-470ca41.0+470ca41"
48
48
  },
49
49
  "devDependencies": {
50
- "@agoric/deploy-script-support": "0.9.5-dev-7cd7bb7.0+7cd7bb7",
51
- "@agoric/smart-wallet": "0.4.3-dev-7cd7bb7.0+7cd7bb7",
52
- "@agoric/swingset-liveslots": "0.9.1-dev-7cd7bb7.0+7cd7bb7",
53
- "@agoric/swingset-vat": "0.30.3-dev-7cd7bb7.0+7cd7bb7",
50
+ "@agoric/deploy-script-support": "0.9.5-dev-470ca41.0+470ca41",
51
+ "@agoric/smart-wallet": "0.4.3-dev-470ca41.0+470ca41",
52
+ "@agoric/swingset-liveslots": "0.9.1-dev-470ca41.0+470ca41",
53
+ "@agoric/swingset-vat": "0.30.3-dev-470ca41.0+470ca41",
54
54
  "@endo/bundle-source": "^2.5.0",
55
55
  "@endo/init": "^0.5.55",
56
56
  "@endo/promise-kit": "^0.2.55",
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "7cd7bb774981620f76b30aca217d8e5428f8987d"
79
+ "gitHead": "470ca4121d46170665958cd713ec9d22dac5eb9a"
80
80
  }
@@ -316,7 +316,7 @@ export const makeFeeDistributor = (feeIssuer, terms) => {
316
316
  },
317
317
 
318
318
  /**
319
- * @param {Record<Keyword, FeeDestination>} newDestinations
319
+ * @param {Record<Keyword, ERef<FeeDestination>>} newDestinations
320
320
  */
321
321
  setDestinations: async newDestinations => {
322
322
  destinations = newDestinations;
@@ -396,7 +396,7 @@ export const startRewardDistributor = async ({
396
396
  timerService,
397
397
  collectionInterval: 60n * 60n, // 1 hour
398
398
  keywordShares: {
399
- RewardDistributor: 1n,
399
+ RewardDistributor: 0n,
400
400
  Reserve: 1n,
401
401
  },
402
402
  }),
@@ -417,6 +417,12 @@ export const startRewardDistributor = async ({
417
417
  return undefined;
418
418
  });
419
419
 
420
+ /**
421
+ * @type {Awaited<
422
+ * ReturnType<typeof import('../feeDistributor.js').makeFeeDistributor>>
423
+ * & { adminFacet: AdminFacet, instance: Instance }
424
+ * }
425
+ */
420
426
  const instanceKit = await E(zoe).startInstance(
421
427
  feeDistributor,
422
428
  { Fee: centralIssuer },
@@ -424,13 +430,15 @@ export const startRewardDistributor = async ({
424
430
  undefined,
425
431
  'feeDistributor',
426
432
  );
433
+ /** @type {ERef<import('../feeDistributor.js').FeeDestination>} */
427
434
  await E(instanceKit.creatorFacet).setDestinations({
428
- RewardDistributor:
429
- rewardDistributorDepositFacet &&
430
- E(instanceKit.creatorFacet).makeDepositFacetDestination(
431
- rewardDistributorDepositFacet,
432
- ),
435
+ ...(rewardDistributorDepositFacet && {
436
+ RewardDistributor: E(
437
+ instanceKit.creatorFacet,
438
+ ).makeDepositFacetDestination(rewardDistributorDepositFacet),
439
+ }),
433
440
  Reserve: E(instanceKit.creatorFacet).makeOfferDestination(
441
+ zoe,
434
442
  'Collateral',
435
443
  E.get(reserveKit).publicFacet,
436
444
  'makeAddCollateralInvitation',