@agoric/inter-protocol 0.13.2-dev-da96c7c.0 → 0.13.2-dev-aec4e2e.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-amm-meta.js +126 -126
- package/bundles/bundle-amm.js +1 -1
- package/bundles/bundle-econCommitteeCharter-meta.js +69 -69
- package/bundles/bundle-econCommitteeCharter.js +1 -1
- package/bundles/bundle-feeDistributor-meta.js +52 -52
- package/bundles/bundle-feeDistributor.js +1 -1
- package/bundles/bundle-interchainPool-meta.js +102 -102
- package/bundles/bundle-interchainPool.js +1 -1
- package/bundles/bundle-liquidateIncrementally-meta.js +66 -66
- package/bundles/bundle-liquidateIncrementally.js +1 -1
- package/bundles/bundle-liquidateMinimum-meta.js +66 -66
- package/bundles/bundle-liquidateMinimum.js +1 -1
- package/bundles/bundle-priceAggregatorChainlink-meta.js +71 -71
- package/bundles/bundle-priceAggregatorChainlink.js +1 -1
- package/bundles/bundle-psm-meta.js +105 -105
- package/bundles/bundle-psm.js +1 -1
- package/bundles/bundle-reserve-meta.js +103 -103
- package/bundles/bundle-reserve.js +1 -1
- package/bundles/bundle-scaledPriceAuthority-meta.js +67 -67
- package/bundles/bundle-scaledPriceAuthority.js +1 -1
- package/bundles/bundle-stakeFactory-meta.js +112 -112
- package/bundles/bundle-stakeFactory.js +1 -1
- package/bundles/bundle-vaultFactory-meta.js +126 -126
- package/bundles/bundle-vaultFactory.js +1 -1
- package/package.json +15 -15
- package/src/stakeFactory/attestation.js +11 -5
- package/src/vaultFactory/vaultDirector.js +4 -4
- package/src/vpool-xyk-amm/multipoolMarketMaker.js +1 -1
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-aec4e2e.0+aec4e2e",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -29,17 +29,17 @@
|
|
|
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-
|
|
32
|
+
"@agoric/assert": "0.5.2-dev-aec4e2e.0+aec4e2e",
|
|
33
|
+
"@agoric/ertp": "0.15.4-dev-aec4e2e.0+aec4e2e",
|
|
34
|
+
"@agoric/governance": "0.9.2-dev-aec4e2e.0+aec4e2e",
|
|
35
|
+
"@agoric/internal": "0.2.2-dev-aec4e2e.0+aec4e2e",
|
|
36
36
|
"@agoric/nat": "^4.1.0",
|
|
37
|
-
"@agoric/notifier": "0.5.2-dev-
|
|
38
|
-
"@agoric/store": "0.8.4-dev-
|
|
39
|
-
"@agoric/swingset-vat": "0.30.3-dev-
|
|
40
|
-
"@agoric/vat-data": "0.4.4-dev-
|
|
41
|
-
"@agoric/vats": "0.13.1-dev-
|
|
42
|
-
"@agoric/zoe": "0.25.4-dev-
|
|
37
|
+
"@agoric/notifier": "0.5.2-dev-aec4e2e.0+aec4e2e",
|
|
38
|
+
"@agoric/store": "0.8.4-dev-aec4e2e.0+aec4e2e",
|
|
39
|
+
"@agoric/swingset-vat": "0.30.3-dev-aec4e2e.0+aec4e2e",
|
|
40
|
+
"@agoric/vat-data": "0.4.4-dev-aec4e2e.0+aec4e2e",
|
|
41
|
+
"@agoric/vats": "0.13.1-dev-aec4e2e.0+aec4e2e",
|
|
42
|
+
"@agoric/zoe": "0.25.4-dev-aec4e2e.0+aec4e2e",
|
|
43
43
|
"@endo/bundle-source": "^2.4.2",
|
|
44
44
|
"@endo/captp": "^2.0.18",
|
|
45
45
|
"@endo/eventual-send": "^0.16.8",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"@endo/promise-kit": "^0.2.52"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@agoric/cosmic-swingset": "0.39.3-dev-
|
|
53
|
-
"@agoric/deploy-script-support": "0.9.5-dev-
|
|
54
|
-
"@agoric/smart-wallet": "0.4.3-dev-
|
|
52
|
+
"@agoric/cosmic-swingset": "0.39.3-dev-aec4e2e.0+aec4e2e",
|
|
53
|
+
"@agoric/deploy-script-support": "0.9.5-dev-aec4e2e.0+aec4e2e",
|
|
54
|
+
"@agoric/smart-wallet": "0.4.3-dev-aec4e2e.0+aec4e2e",
|
|
55
55
|
"@endo/init": "^0.5.52",
|
|
56
56
|
"@fast-check/ava": "^1.1.3",
|
|
57
57
|
"ava": "^5.1.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "aec4e2eb59631c23531160c7879cbd4ae31cceeb"
|
|
82
82
|
}
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { AmountMath, AssetKind } from '@agoric/ertp';
|
|
4
4
|
import { E, Far } from '@endo/far';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
fit,
|
|
7
|
+
M,
|
|
8
|
+
makeCopyBag,
|
|
9
|
+
makeScalarMapStore,
|
|
10
|
+
provideLazy,
|
|
11
|
+
} from '@agoric/store';
|
|
6
12
|
import { assertProposalShape } from '@agoric/zoe/src/contractSupport/index.js';
|
|
7
13
|
import { AttKW as KW } from './constants.js';
|
|
8
14
|
import { makeAttestationTool } from './attestationTool.js';
|
|
@@ -85,9 +91,9 @@ const makeAttestationIssuerKit = async (zcf, stakeBrand, lienBridge) => {
|
|
|
85
91
|
/**
|
|
86
92
|
* Non-authoritative store of nonzero lien amounts.
|
|
87
93
|
*
|
|
88
|
-
* @type {
|
|
94
|
+
* @type {MapStore<Address, Amount<'nat'>>}
|
|
89
95
|
*/
|
|
90
|
-
const amountByAddress =
|
|
96
|
+
const amountByAddress = makeScalarMapStore('amount');
|
|
91
97
|
|
|
92
98
|
/**
|
|
93
99
|
* Get non-authoritative liened amount from the JS store, without using the lienBridge.
|
|
@@ -226,8 +232,8 @@ const makeAttestationIssuerKit = async (zcf, stakeBrand, lienBridge) => {
|
|
|
226
232
|
* The keyword for use in returnAttestation offers is `Attestation`.
|
|
227
233
|
*/
|
|
228
234
|
export const makeAttestationFacets = async (zcf, stakeBrand, lienBridge) => {
|
|
229
|
-
/** @type {
|
|
230
|
-
const attMakerByAddress =
|
|
235
|
+
/** @type {MapStore<Address, AttestationTool>} */
|
|
236
|
+
const attMakerByAddress = makeScalarMapStore('address');
|
|
231
237
|
|
|
232
238
|
const { issuer, brand, lienMint } = await makeAttestationIssuerKit(
|
|
233
239
|
zcf,
|
|
@@ -4,7 +4,7 @@ import '@agoric/zoe/src/contracts/exported.js';
|
|
|
4
4
|
import '@agoric/governance/exported.js';
|
|
5
5
|
import { E } from '@endo/eventual-send';
|
|
6
6
|
|
|
7
|
-
import { fit, keyEQ, M,
|
|
7
|
+
import { fit, keyEQ, M, makeScalarMapStore } from '@agoric/store';
|
|
8
8
|
import {
|
|
9
9
|
assertProposalShape,
|
|
10
10
|
getAmountIn,
|
|
@@ -48,7 +48,7 @@ const { details: X, quote: q, Fail } = assert;
|
|
|
48
48
|
* shortfallReporter: import('../reserve/assetReserve.js').ShortfallReporter,
|
|
49
49
|
* storedMetricsSubscriber: StoredSubscriber<MetricsNotification>,
|
|
50
50
|
* storageNode: ERef<StorageNode>,
|
|
51
|
-
* vaultParamManagers:
|
|
51
|
+
* vaultParamManagers: MapStore<Brand, import('./params.js').VaultParamManager>,
|
|
52
52
|
* zcf: import('./vaultFactory.js').VaultFactoryZCF,
|
|
53
53
|
* }} Ephemera
|
|
54
54
|
*/
|
|
@@ -71,7 +71,7 @@ const ephemera = {};
|
|
|
71
71
|
* }} MetricsNotification
|
|
72
72
|
*
|
|
73
73
|
* @typedef {Readonly<{
|
|
74
|
-
* collateralTypes:
|
|
74
|
+
* collateralTypes: MapStore<Brand,VaultManager>,
|
|
75
75
|
* metricsPublisher: Publisher<MetricsNotification>
|
|
76
76
|
* metricsSubscriber: Subscriber<MetricsNotification>
|
|
77
77
|
* mintSeat: ZCFSeat,
|
|
@@ -182,7 +182,7 @@ const initState = (
|
|
|
182
182
|
|
|
183
183
|
// Non-durable map because param managers aren't durable.
|
|
184
184
|
// In the event they're needed they can be reconstructed from contract terms and off-chain data.
|
|
185
|
-
const vaultParamManagers =
|
|
185
|
+
const vaultParamManagers = makeScalarMapStore('vaultParamManagers');
|
|
186
186
|
|
|
187
187
|
const { publisher: metricsPublisher, subscriber: metricsSubscriber } =
|
|
188
188
|
makeVaultDirectorMetricsPublishKit();
|
|
@@ -185,7 +185,7 @@ const start = async (zcf, privateArgs, baggage) => {
|
|
|
185
185
|
)}`,
|
|
186
186
|
);
|
|
187
187
|
|
|
188
|
-
/** @type {
|
|
188
|
+
/** @type {MapStore<Brand,PoolFacets>} */
|
|
189
189
|
const secondaryBrandToPool = provideDurableMapStore(
|
|
190
190
|
baggage,
|
|
191
191
|
'secondaryBrandToPool',
|