@agoric/pegasus 0.7.13-dev-3d662f8.0 → 0.7.13-dev-1cd6408.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 +13 -13
- package/src/courier.js +4 -4
- package/src/pegasus.js +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/pegasus",
|
|
3
|
-
"version": "0.7.13-dev-
|
|
3
|
+
"version": "0.7.13-dev-1cd6408.0+1cd6408",
|
|
4
4
|
"description": "Peg-as-us contract",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/pegasus.js",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@agoric/assert": "0.6.1-dev-
|
|
32
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
33
|
-
"@agoric/internal": "0.3.3-dev-
|
|
34
|
-
"@agoric/network": "0.1.1-dev-
|
|
35
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
36
|
-
"@agoric/store": "0.9.3-dev-
|
|
37
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
38
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
39
|
-
"@agoric/vats": "0.15.2-dev-
|
|
40
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
41
|
-
"@agoric/zone": "0.2.3-dev-
|
|
31
|
+
"@agoric/assert": "0.6.1-dev-1cd6408.0+1cd6408",
|
|
32
|
+
"@agoric/ertp": "0.16.3-dev-1cd6408.0+1cd6408",
|
|
33
|
+
"@agoric/internal": "0.3.3-dev-1cd6408.0+1cd6408",
|
|
34
|
+
"@agoric/network": "0.1.1-dev-1cd6408.0+1cd6408",
|
|
35
|
+
"@agoric/notifier": "0.6.3-dev-1cd6408.0+1cd6408",
|
|
36
|
+
"@agoric/store": "0.9.3-dev-1cd6408.0+1cd6408",
|
|
37
|
+
"@agoric/swingset-vat": "0.32.3-dev-1cd6408.0+1cd6408",
|
|
38
|
+
"@agoric/vat-data": "0.5.3-dev-1cd6408.0+1cd6408",
|
|
39
|
+
"@agoric/vats": "0.15.2-dev-1cd6408.0+1cd6408",
|
|
40
|
+
"@agoric/zoe": "0.26.3-dev-1cd6408.0+1cd6408",
|
|
41
|
+
"@agoric/zone": "0.2.3-dev-1cd6408.0+1cd6408",
|
|
42
42
|
"@endo/bundle-source": "^3.1.0",
|
|
43
43
|
"@endo/captp": "^4.0.4",
|
|
44
44
|
"@endo/far": "^1.0.4",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"typeCoverage": {
|
|
73
73
|
"atLeast": 91.05
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "1cd6408e27271160227f8aaa12d9771ea73a1da1"
|
|
76
76
|
}
|
package/src/courier.js
CHANGED
|
@@ -33,15 +33,15 @@ export const getCourierPK = (key, keyToCourierPK) => {
|
|
|
33
33
|
*
|
|
34
34
|
* @typedef {object} CourierArgs
|
|
35
35
|
* @property {ZCF} zcf
|
|
36
|
-
* @property {
|
|
37
|
-
* @property {
|
|
36
|
+
* @property {Remote<BoardDepositFacet>} board
|
|
37
|
+
* @property {Remote<NameHub>} namesByAddress
|
|
38
38
|
* @property {Denom} sendDenom
|
|
39
39
|
* @property {Brand} localBrand
|
|
40
40
|
* @property {(zcfSeat: ZCFSeat, amounts: AmountKeywordRecord) => void} retain
|
|
41
41
|
* @property {(zcfSeat: ZCFSeat, amounts: AmountKeywordRecord) => void} redeem
|
|
42
|
-
* @property {
|
|
42
|
+
* @property {Remote<TransferProtocol>} transferProtocol
|
|
43
43
|
* @property {ReturnType<import('@agoric/vow').prepareVowTools>['when']} when
|
|
44
|
-
* @param {
|
|
44
|
+
* @param {Remote<Connection>} connection
|
|
45
45
|
* @returns {(args: CourierArgs) => Courier}
|
|
46
46
|
*/
|
|
47
47
|
export const makeCourierMaker =
|
package/src/pegasus.js
CHANGED
|
@@ -31,8 +31,8 @@ const TRANSFER_PROPOSAL_SHAPE = {
|
|
|
31
31
|
*
|
|
32
32
|
* @param {object} powers
|
|
33
33
|
* @param {ZCF} powers.zcf the Zoe Contract Facet
|
|
34
|
-
* @param {
|
|
35
|
-
* @param {
|
|
34
|
+
* @param {Remote<BoardDepositFacet>} powers.board where to find depositFacets by boardID
|
|
35
|
+
* @param {Remote<NameHub>} powers.namesByAddress where to find depositFacets by bech32
|
|
36
36
|
* @param {ReturnType<import('@agoric/vow').prepareVowTools>['when']} powers.when
|
|
37
37
|
*
|
|
38
38
|
* @typedef {import('@agoric/vats').NameHub} NameHub
|
|
@@ -62,7 +62,7 @@ export const makePegasus = ({ zcf, board, namesByAddress, when }) => {
|
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* @type {LegacyWeakMap<Peg
|
|
65
|
+
* @type {LegacyWeakMap<Remote<Peg>, LocalDenomState>}
|
|
66
66
|
*/
|
|
67
67
|
// Legacy because Mappings mix functions and data
|
|
68
68
|
const pegToDenomState = makeLegacyWeakMap('Peg');
|
|
@@ -105,8 +105,8 @@ export const makePegasus = ({ zcf, board, namesByAddress, when }) => {
|
|
|
105
105
|
* @param {object} param0
|
|
106
106
|
* @param {ReturnType<typeof makeCourierMaker>} param0.makeCourier
|
|
107
107
|
* @param {LocalDenomState} param0.localDenomState
|
|
108
|
-
* @param {
|
|
109
|
-
* @param {
|
|
108
|
+
* @param {Remote<TransferProtocol>} param0.transferProtocol
|
|
109
|
+
* @param {Remote<DenomTransformer>} param0.denomTransformer
|
|
110
110
|
* @returns {PegasusConnectionActions}
|
|
111
111
|
*/
|
|
112
112
|
const makePegasusConnectionActions = ({
|
|
@@ -319,8 +319,8 @@ export const makePegasus = ({ zcf, board, namesByAddress, when }) => {
|
|
|
319
319
|
/**
|
|
320
320
|
* Return a handler that can be used with the Network API.
|
|
321
321
|
*
|
|
322
|
-
* @param {
|
|
323
|
-
* @param {
|
|
322
|
+
* @param {Remote<TransferProtocol>} [transferProtocol]
|
|
323
|
+
* @param {Remote<DenomTransformer>} [denomTransformer]
|
|
324
324
|
* @returns {PegasusConnectionKit}
|
|
325
325
|
*/
|
|
326
326
|
makePegasusConnectionKit(
|
|
@@ -328,7 +328,7 @@ export const makePegasus = ({ zcf, board, namesByAddress, when }) => {
|
|
|
328
328
|
denomTransformer = DEFAULT_DENOM_TRANSFORMER,
|
|
329
329
|
) {
|
|
330
330
|
/**
|
|
331
|
-
* @type {LegacyWeakMap<Connection
|
|
331
|
+
* @type {LegacyWeakMap<Remote<Connection>, LocalDenomState>}
|
|
332
332
|
*/
|
|
333
333
|
// Legacy because the value contains a JS Set
|
|
334
334
|
const connectionToLocalDenomState = makeLegacyWeakMap('Connection');
|
|
@@ -458,7 +458,7 @@ export const makePegasus = ({ zcf, board, namesByAddress, when }) => {
|
|
|
458
458
|
/**
|
|
459
459
|
* Create a Zoe invitation to transfer assets over network to a deposit address.
|
|
460
460
|
*
|
|
461
|
-
* @param {
|
|
461
|
+
* @param {Remote<Peg>} pegP the peg over which to transfer
|
|
462
462
|
* @param {DepositAddress} depositAddress the remote receiver's address
|
|
463
463
|
* @param {string} [memo] the memo to attach to ics transfer packet
|
|
464
464
|
* @param {SenderOptions} [opts] additional sender options
|