@agoric/inter-protocol 0.13.2-dev-1d8923b.0 → 0.13.2-dev-b71d61c.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-1d8923b.0+1d8923b",
3
+ "version": "0.13.2-dev-b71d61c.0+b71d61c",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -29,18 +29,18 @@
29
29
  },
30
30
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
31
31
  "dependencies": {
32
- "@agoric/assert": "0.5.2-dev-1d8923b.0+1d8923b",
33
- "@agoric/ertp": "0.15.4-dev-1d8923b.0+1d8923b",
34
- "@agoric/governance": "0.9.2-dev-1d8923b.0+1d8923b",
35
- "@agoric/internal": "0.2.2-dev-1d8923b.0+1d8923b",
36
- "@agoric/notifier": "0.5.2-dev-1d8923b.0+1d8923b",
37
- "@agoric/store": "0.8.4-dev-1d8923b.0+1d8923b",
38
- "@agoric/swingset-liveslots": "0.9.1-dev-1d8923b.0+1d8923b",
39
- "@agoric/swingset-vat": "0.30.3-dev-1d8923b.0+1d8923b",
40
- "@agoric/time": "0.2.2-dev-1d8923b.0+1d8923b",
41
- "@agoric/vat-data": "0.4.4-dev-1d8923b.0+1d8923b",
42
- "@agoric/vats": "0.13.1-dev-1d8923b.0+1d8923b",
43
- "@agoric/zoe": "0.25.4-dev-1d8923b.0+1d8923b",
32
+ "@agoric/assert": "0.5.2-dev-b71d61c.0+b71d61c",
33
+ "@agoric/ertp": "0.15.4-dev-b71d61c.0+b71d61c",
34
+ "@agoric/governance": "0.9.2-dev-b71d61c.0+b71d61c",
35
+ "@agoric/internal": "0.2.2-dev-b71d61c.0+b71d61c",
36
+ "@agoric/notifier": "0.5.2-dev-b71d61c.0+b71d61c",
37
+ "@agoric/store": "0.8.4-dev-b71d61c.0+b71d61c",
38
+ "@agoric/swingset-liveslots": "0.9.1-dev-b71d61c.0+b71d61c",
39
+ "@agoric/swingset-vat": "0.30.3-dev-b71d61c.0+b71d61c",
40
+ "@agoric/time": "0.2.2-dev-b71d61c.0+b71d61c",
41
+ "@agoric/vat-data": "0.4.4-dev-b71d61c.0+b71d61c",
42
+ "@agoric/vats": "0.13.1-dev-b71d61c.0+b71d61c",
43
+ "@agoric/zoe": "0.25.4-dev-b71d61c.0+b71d61c",
44
44
  "@endo/bundle-source": "^2.4.2",
45
45
  "@endo/captp": "^2.0.18",
46
46
  "@endo/eventual-send": "^0.16.8",
@@ -50,8 +50,8 @@
50
50
  "@endo/promise-kit": "^0.2.52"
51
51
  },
52
52
  "devDependencies": {
53
- "@agoric/deploy-script-support": "0.9.5-dev-1d8923b.0+1d8923b",
54
- "@agoric/smart-wallet": "0.4.3-dev-1d8923b.0+1d8923b",
53
+ "@agoric/deploy-script-support": "0.9.5-dev-b71d61c.0+b71d61c",
54
+ "@agoric/smart-wallet": "0.4.3-dev-b71d61c.0+b71d61c",
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": "1d8923b97d65c6699ea4e3d91925379fca6be281"
81
+ "gitHead": "b71d61c60027c0400c288c5324b572cae20eb089"
82
82
  }
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @jessie.js/no-nested-await -- demo file */
2
2
  import { AmountMath, AssetKind } from '@agoric/ertp';
3
- import { objectMap } from '@agoric/internal';
3
+ import { allValues, objectMap } from '@agoric/internal';
4
4
  import {
5
5
  makeRatio,
6
6
  natSafeMath,
@@ -8,7 +8,6 @@ import {
8
8
  import { E, Far } from '@endo/far';
9
9
  import { Stake, Stable } from '@agoric/vats/src/tokens.js';
10
10
  import { Nat } from '@endo/nat';
11
- import * as Collect from '../collect.js';
12
11
 
13
12
  const { Fail, quote: q } = assert;
14
13
  const { multiply, floorDivide } = natSafeMath;
@@ -491,7 +490,7 @@ export const fundAMM = async ({
491
490
 
492
491
  const vats = { mints, priceAuthority: priceAuthorityVat };
493
492
 
494
- const kits = await Collect.allValues(
493
+ const kits = await allValues(
495
494
  objectMap(
496
495
  fromEntries([Stable.symbol, ...keys(AMMDemoState)].map(n => [n, n])),
497
496
  async issuerName => {
package/src/collect.js DELETED
@@ -1,11 +0,0 @@
1
- const { fromEntries, keys, values } = Object;
2
-
3
- /** @type { <X, Y>(xs: X[], ys: Y[]) => [X, Y][]} */
4
- export const zip = (xs, ys) => harden(xs.map((x, i) => [x, ys[+i]]));
5
-
6
- /** @type { <T extends Record<string, ERef<any>>>(obj: T) => Promise<{ [K in keyof T]: Awaited<T[K]>}> } */
7
- export const allValues = async obj => {
8
- const resolved = await Promise.all(values(obj));
9
- // @ts-expect-error cast
10
- return harden(fromEntries(zip(keys(obj), resolved)));
11
- };