@agoric/pegasus 0.8.0 → 0.8.1-upgrade-23-dev-bd79330.0.bd79330

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",
3
+ "version": "0.8.1-upgrade-23-dev-bd79330.0.bd79330",
4
4
  "description": "Peg-as-us contract",
5
5
  "type": "module",
6
6
  "main": "./src/pegasus.js",
@@ -14,7 +14,7 @@
14
14
  "test:xs": "exit 0",
15
15
  "lint-fix": "yarn lint:eslint --fix",
16
16
  "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
17
- "lint:eslint": "yarn run -T eslint .",
17
+ "lint:eslint": "node ../../scripts/eslint-repo.mjs .",
18
18
  "lint:types": "yarn run -T tsc"
19
19
  },
20
20
  "repository": {
@@ -28,16 +28,16 @@
28
28
  },
29
29
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
30
30
  "dependencies": {
31
- "@agoric/ertp": "0.17.0",
32
- "@agoric/internal": "0.4.0",
33
- "@agoric/network": "0.2.0",
34
- "@agoric/notifier": "0.7.0",
35
- "@agoric/store": "0.10.0",
36
- "@agoric/swingset-vat": "0.33.0",
37
- "@agoric/vats": "0.16.0",
38
- "@agoric/vow": "0.2.0",
39
- "@agoric/zoe": "0.27.0",
40
- "@agoric/zone": "0.3.0",
31
+ "@agoric/ertp": "0.17.1-upgrade-23-dev-bd79330.0.bd79330",
32
+ "@agoric/internal": "0.4.1-upgrade-23-dev-bd79330.0.bd79330",
33
+ "@agoric/network": "0.2.1-upgrade-23-dev-bd79330.0.bd79330",
34
+ "@agoric/notifier": "0.7.1-upgrade-23-dev-bd79330.0.bd79330",
35
+ "@agoric/store": "0.10.1-upgrade-23-dev-bd79330.0.bd79330",
36
+ "@agoric/swingset-vat": "0.33.1-upgrade-23-dev-bd79330.0.bd79330",
37
+ "@agoric/vats": "0.16.1-upgrade-23-dev-bd79330.0.bd79330",
38
+ "@agoric/vow": "0.2.1-upgrade-23-dev-bd79330.0.bd79330",
39
+ "@agoric/zoe": "0.27.1-upgrade-23-dev-bd79330.0.bd79330",
40
+ "@agoric/zone": "0.3.1-upgrade-23-dev-bd79330.0.bd79330",
41
41
  "@endo/bundle-source": "^4.1.2",
42
42
  "@endo/captp": "^4.4.8",
43
43
  "@endo/errors": "^1.2.13",
@@ -47,8 +47,8 @@
47
47
  "@endo/promise-kit": "^1.1.13"
48
48
  },
49
49
  "devDependencies": {
50
- "@agoric/vat-data": "0.6.0",
51
- "ava": "^5.3.0",
50
+ "@agoric/vat-data": "0.6.1-upgrade-23-dev-bd79330.0.bd79330",
51
+ "ava": "^6.4.1",
52
52
  "c8": "^10.1.3",
53
53
  "import-meta-resolve": "^4.1.0"
54
54
  },
@@ -72,5 +72,5 @@
72
72
  "typeCoverage": {
73
73
  "atLeast": 91.21
74
74
  },
75
- "gitHead": "0922d0447ab8fae9d2d87415964403330b5ca313"
75
+ "gitHead": "bd79330f78dae2faf9cc3d8b10063567700da07b"
76
76
  }
package/src/contract.js CHANGED
@@ -6,12 +6,15 @@ import { makePegasus } from './pegasus.js';
6
6
  /**
7
7
  * @import {Remote} from '@agoric/vow';
8
8
  * @import {ContractStartFn} from '@agoric/zoe';
9
+ * @import {Pegasus} from './pegasus.js';
10
+ * @import {NameHub} from '@agoric/vats';
11
+ * @import {BoardDepositFacet} from './types.js';
9
12
  */
10
13
 
11
14
  /**
12
- * @type {ContractStartFn<import('./pegasus.js').Pegasus, never, {}, {
15
+ * @type {ContractStartFn<Pegasus, never, {}, {
13
16
  * board: Remote<BoardDepositFacet>,
14
- * namesByAddress: Remote<import('@agoric/vats').NameHub>
17
+ * namesByAddress: Remote<NameHub>
15
18
  * }>}
16
19
  */
17
20
  export const start = (zcf, privateArgs, baggage) => {
package/src/courier.js CHANGED
@@ -7,9 +7,21 @@ import { E, Far } from '@endo/far';
7
7
  import { makeOncePromiseKit } from './once-promise-kit.js';
8
8
 
9
9
  /**
10
- * @import {DepositFacet} from '@agoric/ertp/src/types.js'
10
+ * @import {Brand, DepositFacet} from '@agoric/ertp/src/types.js'
11
11
  * @import {Connection} from '@agoric/network';
12
12
  * @import {Remote} from '@agoric/vow';
13
+ * @import {prepareVowTools} from '@agoric/vow';
14
+ * @import {Courier} from './types.js';
15
+ * @import {BoardDepositFacet} from './types.js';
16
+ * @import {Denom} from './types.js';
17
+ * @import {TransferProtocol} from './types.js';
18
+ * @import {Sender} from './types.js';
19
+ * @import {Receiver} from './types.js';
20
+ * @import {LegacyMap} from '@agoric/store';
21
+ * @import {ZCF} from '@agoric/zoe';
22
+ * @import {ZCFSeat} from '@agoric/zoe';
23
+ * @import {AmountKeywordRecord} from '@agoric/zoe';
24
+ * @import {PromiseRecord} from '@endo/promise-kit';
13
25
  */
14
26
 
15
27
  /**
@@ -46,7 +58,7 @@ export const getCourierPK = (key, keyToCourierPK) => {
46
58
  * @property {(zcfSeat: ZCFSeat, amounts: AmountKeywordRecord) => void} retain
47
59
  * @property {(zcfSeat: ZCFSeat, amounts: AmountKeywordRecord) => void} redeem
48
60
  * @property {Remote<TransferProtocol>} transferProtocol
49
- * @property {ReturnType<import('@agoric/vow').prepareVowTools>['when']} when
61
+ * @property {ReturnType<typeof prepareVowTools>['when']} when
50
62
  * @param {Remote<Connection>} connection
51
63
  * @returns {(args: CourierArgs) => Courier}
52
64
  */
package/src/ibc-trace.js CHANGED
@@ -4,6 +4,10 @@ import { Far } from '@endo/far';
4
4
 
5
5
  import { parse } from '@agoric/network';
6
6
 
7
+ /**
8
+ * @import {Denom, DenomTransformer} from './types.js';
9
+ */
10
+
7
11
  /**
8
12
  * Return a source-prefixed version of the denomination, as specified in
9
13
  * ICS20-1.
package/src/ics20.js CHANGED
@@ -3,6 +3,14 @@ import { assert, X, Fail, annotateError } from '@endo/errors';
3
3
  import { Nat } from '@endo/nat';
4
4
  import { Far } from '@endo/far';
5
5
 
6
+ /**
7
+ * @import {Denom} from './types.js';
8
+ * @import {DepositAddress} from './types.js';
9
+ * @import {Bytes} from '@agoric/network';
10
+ * @import {PacketParts} from './types.js';
11
+ * @import {TransferProtocol} from './types.js';
12
+ */
13
+
6
14
  /**
7
15
  * @typedef {object} ICS20TransferPacket Packet shape defined at:
8
16
  * https://github.com/cosmos/ibc/tree/HEAD/spec/app/ics-020-fungible-token-transfer#data-structures
@@ -2,6 +2,10 @@
2
2
  import { assert } from '@endo/errors';
3
3
  import { makePromiseKit } from '@endo/promise-kit';
4
4
 
5
+ /**
6
+ * @import {PromiseRecord} from '@endo/promise-kit';
7
+ */
8
+
5
9
  /**
6
10
  * Should be
7
11
  * at-import {DetailsToken} from '@endo/errors'
package/src/pegasus.js CHANGED
@@ -14,8 +14,33 @@ import { ICS20TransferProtocol } from './ics20.js';
14
14
  import { makeCourierMaker, getCourierPK } from './courier.js';
15
15
 
16
16
  /**
17
- * @import {CloseReason, Connection} from '@agoric/network';
17
+ * @import {CloseReason, Connection, ConnectionHandler} from '@agoric/network';
18
18
  * @import {Remote} from '@agoric/vow';
19
+ * @import {prepareVowTools} from '@agoric/vow';
20
+ * @import {BoardDepositFacet} from './types.js';
21
+ * @import {Denom} from './types.js';
22
+ * @import {Courier} from './types.js';
23
+ * @import {Peg} from './types.js';
24
+ * @import {TransferProtocol} from './types.js';
25
+ * @import {DenomTransformer} from './types.js';
26
+ * @import {PegasusConnectionActions} from './types.js';
27
+ * @import {PegasusConnectionKit} from './types.js';
28
+ * @import {PegasusConnection} from './types.js';
29
+ * @import {DepositAddress} from './types.js';
30
+ * @import {SenderOptions} from './types.js';
31
+ * @import {ZCF} from '@agoric/zoe';
32
+ * @import {LegacyMap} from '@agoric/store';
33
+ * @import {IterationObserver} from '@agoric/notifier';
34
+ * @import {Subscription} from '@agoric/notifier';
35
+ * @import {LegacyWeakMap} from '@agoric/store';
36
+ * @import {Brand} from '@agoric/ertp';
37
+ * @import {Amount} from '@agoric/ertp';
38
+ * @import {Keyword} from '@agoric/zoe';
39
+ * @import {ZCFSeat} from '@agoric/zoe';
40
+ * @import {SubscriptionRecord} from '@agoric/notifier';
41
+ * @import {PromiseRecord} from '@endo/promise-kit';
42
+ * @import {Invitation} from '@agoric/zoe';
43
+ * @import {OfferHandler} from '@agoric/zoe';
19
44
  */
20
45
 
21
46
  const DEFAULT_DENOM_TRANSFORMER = IBCSourceTraceDenomTransformer;
@@ -34,7 +59,7 @@ const TRANSFER_PROPOSAL_SHAPE = {
34
59
  * @param {ZCF} powers.zcf the Zoe Contract Facet
35
60
  * @param {Remote<BoardDepositFacet>} powers.board where to find depositFacets by boardID
36
61
  * @param {Remote<NameHub>} powers.namesByAddress where to find depositFacets by bech32
37
- * @param {ReturnType<import('@agoric/vow').prepareVowTools>['when']} powers.when
62
+ * @param {ReturnType<typeof prepareVowTools>['when']} powers.when
38
63
  *
39
64
  * @import {NameHub} from '@agoric/vats'
40
65
  */
@@ -5,6 +5,7 @@ import { observeIteration, subscribeEach } from '@agoric/notifier';
5
5
 
6
6
  /**
7
7
  * @import {Connection, Port, PortAllocator} from '@agoric/network';
8
+ * @import {NameAdmin} from '@agoric/vats';
8
9
  */
9
10
 
10
11
  export const CONTRACT_NAME = 'Pegasus';
@@ -61,7 +62,7 @@ harden(startPegasus);
61
62
  /**
62
63
  * @param {Port} port
63
64
  * @param {*} pegasus
64
- * @param {import('@agoric/vats').NameAdmin} pegasusConnectionsAdmin
65
+ * @param {NameAdmin} pegasusConnectionsAdmin
65
66
  */
66
67
  export const addPegasusTransferPort = async (
67
68
  port,
package/src/types.js CHANGED
@@ -3,6 +3,9 @@
3
3
  /// <reference types="ses" />
4
4
  /**
5
5
  * @import {Bytes, ConnectionHandler} from '@agoric/network';
6
+ * @import {AmountValue, AssetKind, Brand, DisplayInfo, Issuer} from '@agoric/ertp/src/types.js';
7
+ * @import {ZCFSeat} from '@agoric/zoe';
8
+ * @import {Subscription} from '@agoric/notifier';
6
9
  */
7
10
 
8
11
  /**
@@ -12,7 +15,7 @@
12
15
 
13
16
  /**
14
17
  * @typedef {object} PacketParts
15
- * @property {import('@agoric/ertp/src/types.js').AmountValue} value
18
+ * @property {AmountValue} value
16
19
  * @property {Denom} remoteDenom
17
20
  * @property {DepositAddress} depositAddress
18
21
  * @property {string} memo