@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/inter-protocol",
3
- "version": "0.13.2-dev-da96c7c.0+da96c7c",
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-da96c7c.0+da96c7c",
33
- "@agoric/ertp": "0.15.4-dev-da96c7c.0+da96c7c",
34
- "@agoric/governance": "0.9.2-dev-da96c7c.0+da96c7c",
35
- "@agoric/internal": "0.2.2-dev-da96c7c.0+da96c7c",
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-da96c7c.0+da96c7c",
38
- "@agoric/store": "0.8.4-dev-da96c7c.0+da96c7c",
39
- "@agoric/swingset-vat": "0.30.3-dev-da96c7c.0+da96c7c",
40
- "@agoric/vat-data": "0.4.4-dev-da96c7c.0+da96c7c",
41
- "@agoric/vats": "0.13.1-dev-da96c7c.0+da96c7c",
42
- "@agoric/zoe": "0.25.4-dev-da96c7c.0+da96c7c",
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-da96c7c.0+da96c7c",
53
- "@agoric/deploy-script-support": "0.9.5-dev-da96c7c.0+da96c7c",
54
- "@agoric/smart-wallet": "0.4.3-dev-da96c7c.0+da96c7c",
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": "da96c7c3c902a5e266baeedf23df02481f2e9c9d"
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 { fit, M, makeCopyBag, makeStore, provideLazy } from '@agoric/store';
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 {Store<Address, Amount<'nat'>>}
94
+ * @type {MapStore<Address, Amount<'nat'>>}
89
95
  */
90
- const amountByAddress = makeStore('amount');
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 {Store<Address, AttestationTool>} */
230
- const attMakerByAddress = makeStore('address');
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, makeScalarMap } from '@agoric/store';
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: Store<Brand, import('./params.js').VaultParamManager>,
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: Store<Brand,VaultManager>,
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 = makeScalarMap('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 {Store<Brand,PoolFacets>} */
188
+ /** @type {MapStore<Brand,PoolFacets>} */
189
189
  const secondaryBrandToPool = provideDurableMapStore(
190
190
  baggage,
191
191
  'secondaryBrandToPool',