@agoric/pegasus 0.7.13-other-dev-fbe72e7.0.fbe72e7 → 0.7.13-other-dev-d15096d.0.d15096d
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/contract.js +4 -2
- package/src/courier.js +2 -1
- package/src/pegasus.js +2 -1
- package/src/proposals/core-proposal.js +2 -1
- package/src/types.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/pegasus",
|
|
3
|
-
"version": "0.7.13-other-dev-
|
|
3
|
+
"version": "0.7.13-other-dev-d15096d.0.d15096d",
|
|
4
4
|
"description": "Peg-as-us contract",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/pegasus.js",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@agoric/ertp": "0.16.3-other-dev-
|
|
32
|
-
"@agoric/internal": "0.3.3-other-dev-
|
|
33
|
-
"@agoric/network": "0.1.1-other-dev-
|
|
34
|
-
"@agoric/notifier": "0.6.3-other-dev-
|
|
35
|
-
"@agoric/store": "0.9.3-other-dev-
|
|
36
|
-
"@agoric/swingset-vat": "0.32.3-other-dev-
|
|
37
|
-
"@agoric/vats": "0.15.2-other-dev-
|
|
38
|
-
"@agoric/vow": "0.1.1-other-dev-
|
|
39
|
-
"@agoric/zoe": "0.26.3-other-dev-
|
|
40
|
-
"@agoric/zone": "0.2.3-other-dev-
|
|
31
|
+
"@agoric/ertp": "0.16.3-other-dev-d15096d.0.d15096d",
|
|
32
|
+
"@agoric/internal": "0.3.3-other-dev-d15096d.0.d15096d",
|
|
33
|
+
"@agoric/network": "0.1.1-other-dev-d15096d.0.d15096d",
|
|
34
|
+
"@agoric/notifier": "0.6.3-other-dev-d15096d.0.d15096d",
|
|
35
|
+
"@agoric/store": "0.9.3-other-dev-d15096d.0.d15096d",
|
|
36
|
+
"@agoric/swingset-vat": "0.32.3-other-dev-d15096d.0.d15096d",
|
|
37
|
+
"@agoric/vats": "0.15.2-other-dev-d15096d.0.d15096d",
|
|
38
|
+
"@agoric/vow": "0.1.1-other-dev-d15096d.0.d15096d",
|
|
39
|
+
"@agoric/zoe": "0.26.3-other-dev-d15096d.0.d15096d",
|
|
40
|
+
"@agoric/zone": "0.2.3-other-dev-d15096d.0.d15096d",
|
|
41
41
|
"@endo/bundle-source": "^4.1.2",
|
|
42
42
|
"@endo/captp": "^4.4.8",
|
|
43
43
|
"@endo/errors": "^1.2.13",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@endo/promise-kit": "^1.1.13"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@agoric/vat-data": "0.5.3-other-dev-
|
|
50
|
+
"@agoric/vat-data": "0.5.3-other-dev-d15096d.0.d15096d",
|
|
51
51
|
"ava": "^5.3.0",
|
|
52
52
|
"c8": "^10.1.3",
|
|
53
53
|
"import-meta-resolve": "^4.1.0"
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"typeCoverage": {
|
|
73
73
|
"atLeast": 91.21
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "d15096dc4ff8b96e9b6cd11954c20d3a9efbb393"
|
|
76
76
|
}
|
package/src/contract.js
CHANGED
|
@@ -6,12 +6,14 @@ 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';
|
|
9
11
|
*/
|
|
10
12
|
|
|
11
13
|
/**
|
|
12
|
-
* @type {ContractStartFn<
|
|
14
|
+
* @type {ContractStartFn<Pegasus, never, {}, {
|
|
13
15
|
* board: Remote<BoardDepositFacet>,
|
|
14
|
-
* namesByAddress: Remote<
|
|
16
|
+
* namesByAddress: Remote<NameHub>
|
|
15
17
|
* }>}
|
|
16
18
|
*/
|
|
17
19
|
export const start = (zcf, privateArgs, baggage) => {
|
package/src/courier.js
CHANGED
|
@@ -10,6 +10,7 @@ import { makeOncePromiseKit } from './once-promise-kit.js';
|
|
|
10
10
|
* @import {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';
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -46,7 +47,7 @@ export const getCourierPK = (key, keyToCourierPK) => {
|
|
|
46
47
|
* @property {(zcfSeat: ZCFSeat, amounts: AmountKeywordRecord) => void} retain
|
|
47
48
|
* @property {(zcfSeat: ZCFSeat, amounts: AmountKeywordRecord) => void} redeem
|
|
48
49
|
* @property {Remote<TransferProtocol>} transferProtocol
|
|
49
|
-
* @property {ReturnType<
|
|
50
|
+
* @property {ReturnType<typeof prepareVowTools>['when']} when
|
|
50
51
|
* @param {Remote<Connection>} connection
|
|
51
52
|
* @returns {(args: CourierArgs) => Courier}
|
|
52
53
|
*/
|
package/src/pegasus.js
CHANGED
|
@@ -16,6 +16,7 @@ import { makeCourierMaker, getCourierPK } from './courier.js';
|
|
|
16
16
|
/**
|
|
17
17
|
* @import {CloseReason, Connection} from '@agoric/network';
|
|
18
18
|
* @import {Remote} from '@agoric/vow';
|
|
19
|
+
* @import {prepareVowTools} from '@agoric/vow';
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
const DEFAULT_DENOM_TRANSFORMER = IBCSourceTraceDenomTransformer;
|
|
@@ -34,7 +35,7 @@ const TRANSFER_PROPOSAL_SHAPE = {
|
|
|
34
35
|
* @param {ZCF} powers.zcf the Zoe Contract Facet
|
|
35
36
|
* @param {Remote<BoardDepositFacet>} powers.board where to find depositFacets by boardID
|
|
36
37
|
* @param {Remote<NameHub>} powers.namesByAddress where to find depositFacets by bech32
|
|
37
|
-
* @param {ReturnType<
|
|
38
|
+
* @param {ReturnType<typeof prepareVowTools>['when']} powers.when
|
|
38
39
|
*
|
|
39
40
|
* @import {NameHub} from '@agoric/vats'
|
|
40
41
|
*/
|
|
@@ -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 {
|
|
65
|
+
* @param {NameAdmin} pegasusConnectionsAdmin
|
|
65
66
|
*/
|
|
66
67
|
export const addPegasusTransferPort = async (
|
|
67
68
|
port,
|
package/src/types.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/// <reference types="ses" />
|
|
4
4
|
/**
|
|
5
5
|
* @import {Bytes, ConnectionHandler} from '@agoric/network';
|
|
6
|
+
* @import {AmountValue} from '@agoric/ertp/src/types.js';
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* @typedef {object} PacketParts
|
|
15
|
-
* @property {
|
|
16
|
+
* @property {AmountValue} value
|
|
16
17
|
* @property {Denom} remoteDenom
|
|
17
18
|
* @property {DepositAddress} depositAddress
|
|
18
19
|
* @property {string} memo
|