@agoric/pegasus 0.8.0-u16.2 → 0.8.0-u17.1
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 +21 -21
- package/src/courier.js +1 -1
- package/src/ibc-trace.js +1 -1
- package/src/ics20.js +2 -2
- package/src/once-promise-kit.js +11 -1
- package/src/pegasus.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/pegasus",
|
|
3
|
-
"version": "0.8.0-
|
|
3
|
+
"version": "0.8.0-u17.1",
|
|
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/
|
|
32
|
-
"@agoric/
|
|
33
|
-
"@agoric/
|
|
34
|
-
"@agoric/
|
|
35
|
-
"@agoric/
|
|
36
|
-
"@agoric/
|
|
37
|
-
"@agoric/
|
|
38
|
-
"@agoric/
|
|
39
|
-
"@agoric/
|
|
40
|
-
"@agoric/
|
|
41
|
-
"@
|
|
42
|
-
"@endo/
|
|
43
|
-
"@endo/
|
|
44
|
-
"@endo/far": "^1.1.
|
|
45
|
-
"@endo/init": "^1.1.
|
|
46
|
-
"@endo/nat": "^5.0.
|
|
47
|
-
"@endo/promise-kit": "^1.1.
|
|
31
|
+
"@agoric/ertp": "^0.16.3-u17.1",
|
|
32
|
+
"@agoric/internal": "^0.4.0-u17.1",
|
|
33
|
+
"@agoric/network": "^0.2.0-u17.1",
|
|
34
|
+
"@agoric/notifier": "^0.7.0-u17.1",
|
|
35
|
+
"@agoric/store": "^0.9.3-u17.1",
|
|
36
|
+
"@agoric/swingset-vat": "^0.33.0-u17.1",
|
|
37
|
+
"@agoric/vats": "^0.16.0-u17.1",
|
|
38
|
+
"@agoric/vow": "^0.2.0-u17.1",
|
|
39
|
+
"@agoric/zoe": "^0.26.3-u17.1",
|
|
40
|
+
"@agoric/zone": "^0.3.0-u17.1",
|
|
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-
|
|
50
|
+
"@agoric/vat-data": "^0.5.3-u17.1",
|
|
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":
|
|
73
|
+
"atLeast": 91.21
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "5259430561693bfcf58516c3ea54123895859708"
|
|
76
76
|
}
|
package/src/courier.js
CHANGED
package/src/ibc-trace.js
CHANGED
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
|
-
|
|
33
|
+
annotateError(e, X`${s} is not valid JSON`);
|
|
34
34
|
throw e;
|
|
35
35
|
}
|
|
36
36
|
if (typeof obj !== 'object') {
|
package/src/once-promise-kit.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import { assert } from '@
|
|
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,
|
|
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(
|
|
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 =
|
|
430
|
+
const err = makeError(X`pegasusConnectionHandler closed`);
|
|
431
431
|
receiveDenomPublication.fail(err);
|
|
432
432
|
/** @type {PegasusConnection} */
|
|
433
433
|
const state = harden({
|