@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/bundles/bundle-auctioneer-js-meta.json +117 -117
- package/bundles/bundle-econCommitteeCharter-js-meta.json +83 -83
- package/bundles/bundle-feeDistributor-js-meta.json +56 -56
- package/bundles/bundle-feeDistributor.js +1 -1
- package/bundles/bundle-fluxAggregator-js-meta.json +108 -108
- package/bundles/bundle-psm-js-meta.json +106 -106
- package/bundles/bundle-reserve-js-meta.json +104 -104
- package/bundles/bundle-scaledPriceAuthority-js-meta.json +75 -75
- package/bundles/bundle-stakeFactory-js-meta.json +112 -112
- package/bundles/bundle-vaultFactory-js-meta.json +129 -129
- package/package.json +17 -17
- package/src/feeDistributor.js +1 -1
- package/src/proposals/econ-behaviors.js +14 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/inter-protocol",
|
|
3
|
-
"version": "0.13.2-dev-
|
|
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-
|
|
33
|
-
"@agoric/ertp": "0.15.4-dev-
|
|
34
|
-
"@agoric/governance": "0.9.2-dev-
|
|
35
|
-
"@agoric/internal": "0.2.2-dev-
|
|
36
|
-
"@agoric/notifier": "0.5.2-dev-
|
|
37
|
-
"@agoric/store": "0.8.4-dev-
|
|
38
|
-
"@agoric/time": "0.2.2-dev-
|
|
39
|
-
"@agoric/vat-data": "0.4.4-dev-
|
|
40
|
-
"@agoric/vats": "0.13.1-dev-
|
|
41
|
-
"@agoric/zoe": "0.25.4-dev-
|
|
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-
|
|
47
|
+
"agoric": "0.18.3-dev-470ca41.0+470ca41"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@agoric/deploy-script-support": "0.9.5-dev-
|
|
51
|
-
"@agoric/smart-wallet": "0.4.3-dev-
|
|
52
|
-
"@agoric/swingset-liveslots": "0.9.1-dev-
|
|
53
|
-
"@agoric/swingset-vat": "0.30.3-dev-
|
|
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": "
|
|
79
|
+
"gitHead": "470ca4121d46170665958cd713ec9d22dac5eb9a"
|
|
80
80
|
}
|
package/src/feeDistributor.js
CHANGED
|
@@ -316,7 +316,7 @@ export const makeFeeDistributor = (feeIssuer, terms) => {
|
|
|
316
316
|
},
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
|
-
* @param {Record<Keyword, FeeDestination
|
|
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:
|
|
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
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
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',
|