@agoric/pegasus 0.8.0-u16.1 → 0.8.0-u17.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/pegasus",
3
- "version": "0.8.0-u16.1",
3
+ "version": "0.8.0-u17.0",
4
4
  "description": "Peg-as-us contract",
5
5
  "type": "module",
6
6
  "main": "./src/pegasus.js",
@@ -28,26 +28,26 @@
28
28
  },
29
29
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
30
30
  "dependencies": {
31
- "@agoric/assert": "^0.6.1-u16.0",
32
- "@agoric/ertp": "^0.16.3-u16.1",
33
- "@agoric/internal": "^0.4.0-u16.1",
34
- "@agoric/network": "^0.2.0-u16.1",
35
- "@agoric/notifier": "^0.7.0-u16.1",
36
- "@agoric/store": "^0.9.3-u16.0",
37
- "@agoric/swingset-vat": "^0.33.0-u16.1",
38
- "@agoric/vats": "^0.16.0-u16.1",
39
- "@agoric/vow": "^0.2.0-u16.1",
40
- "@agoric/zoe": "^0.26.3-u16.1",
41
- "@agoric/zone": "^0.3.0-u16.1",
42
- "@endo/bundle-source": "^3.2.3",
43
- "@endo/captp": "^4.2.0",
44
- "@endo/far": "^1.1.2",
45
- "@endo/init": "^1.1.2",
46
- "@endo/nat": "^5.0.7",
47
- "@endo/promise-kit": "^1.1.2"
31
+ "@agoric/ertp": "^0.16.3-u17.0",
32
+ "@agoric/internal": "^0.4.0-u17.0",
33
+ "@agoric/network": "^0.2.0-u17.0",
34
+ "@agoric/notifier": "^0.7.0-u17.0",
35
+ "@agoric/store": "^0.9.3-u17.0",
36
+ "@agoric/swingset-vat": "^0.33.0-u17.0",
37
+ "@agoric/vats": "^0.16.0-u17.0",
38
+ "@agoric/vow": "^0.2.0-u17.0",
39
+ "@agoric/zoe": "^0.26.3-u17.0",
40
+ "@agoric/zone": "^0.3.0-u17.0",
41
+ "@endo/bundle-source": "^3.4.0",
42
+ "@endo/captp": "^4.3.0",
43
+ "@endo/errors": "^1.2.5",
44
+ "@endo/far": "^1.1.5",
45
+ "@endo/init": "^1.1.4",
46
+ "@endo/nat": "^5.0.10",
47
+ "@endo/promise-kit": "^1.1.5"
48
48
  },
49
49
  "devDependencies": {
50
- "@agoric/vat-data": "^0.5.3-u16.1",
50
+ "@agoric/vat-data": "^0.5.3-u17.0",
51
51
  "ava": "^5.3.0",
52
52
  "c8": "^9.1.0",
53
53
  "import-meta-resolve": "^2.2.1"
@@ -70,7 +70,7 @@
70
70
  "access": "public"
71
71
  },
72
72
  "typeCoverage": {
73
- "atLeast": 90.6
73
+ "atLeast": 91.21
74
74
  },
75
- "gitHead": "2eaeab90b4015e355faea534c1c933351d25b1b9"
75
+ "gitHead": "515c4c0efccfc91b97da30037c10fc4b076851e2"
76
76
  }
package/src/courier.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @ts-check
2
- import { details as X } from '@agoric/assert';
2
+ import { X } from '@endo/errors';
3
3
 
4
4
  import { AmountMath } from '@agoric/ertp';
5
5
  import { WalletName } from '@agoric/internal';
package/src/ibc-trace.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
+ import { Fail } from '@endo/errors';
2
3
  import { Far } from '@endo/far';
3
- import { Fail } from '@agoric/assert';
4
4
 
5
5
  import { parse } from '@agoric/network';
6
6
 
package/src/ics20.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-check
2
+ import { assert, X, Fail, annotateError } from '@endo/errors';
2
3
  import { Nat } from '@endo/nat';
3
4
  import { Far } from '@endo/far';
4
- import { assert, details as X, Fail } from '@agoric/assert';
5
5
 
6
6
  /**
7
7
  * @typedef {object} ICS20TransferPacket Packet shape defined at:
@@ -30,7 +30,7 @@ const safeJSONParseObject = s => {
30
30
  try {
31
31
  obj = JSON.parse(s);
32
32
  } catch (e) {
33
- assert.note(e, X`${s} is not valid JSON`);
33
+ annotateError(e, X`${s} is not valid JSON`);
34
34
  throw e;
35
35
  }
36
36
  if (typeof obj !== 'object') {
@@ -1,7 +1,17 @@
1
1
  // @ts-check
2
- import { assert } from '@agoric/assert';
2
+ import { assert } from '@endo/errors';
3
3
  import { makePromiseKit } from '@endo/promise-kit';
4
4
 
5
+ /**
6
+ * Should be
7
+ * at-import {DetailsToken} from '@endo/errors'
8
+ * but somehow @endo/errors is not exporting that type.
9
+ * See https://github.com/endojs/endo/issues/2339
10
+ * In the meantime...
11
+ *
12
+ * @typedef {{}} DetailsToken
13
+ */
14
+
5
15
  /**
6
16
  * Create a promise kit that will throw an exception if it is resolved or
7
17
  * rejected more than once.
package/src/pegasus.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
2
 
3
- import { assert, details as X, Fail } from '@agoric/assert';
3
+ import { assert, X, Fail, makeError } from '@endo/errors';
4
4
  import { makeLegacyWeakMap, makeLegacyMap } from '@agoric/store';
5
5
  import { E, Far } from '@endo/far';
6
6
  import {
@@ -147,7 +147,7 @@ export const makePegasus = ({ zcf, board, namesByAddress, when }) => {
147
147
  // handled it correctly and that flow doesn't need to trigger an
148
148
  // additional UnhandledRejectionWarning in our vat.
149
149
  promise.catch(() => {});
150
- reject(assert.error(X`${receiveDenom} is temporarily unavailable`));
150
+ reject(makeError(X`${receiveDenom} is temporarily unavailable`));
151
151
 
152
152
  // Allow new transfers to be initiated after this rejection.
153
153
  receiveDenomToCourierPK.delete(receiveDenom);
@@ -427,7 +427,7 @@ export const makePegasus = ({ zcf, board, namesByAddress, when }) => {
427
427
  abort,
428
428
  } = connectionToLocalDenomState.get(c);
429
429
  connectionToLocalDenomState.delete(c);
430
- const err = assert.error(X`pegasusConnectionHandler closed`);
430
+ const err = makeError(X`pegasusConnectionHandler closed`);
431
431
  receiveDenomPublication.fail(err);
432
432
  /** @type {PegasusConnection} */
433
433
  const state = harden({