@agoric/pegasus 0.7.13-other-dev-3eb1a1d.0 → 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 +27 -27
- package/src/contract.js +5 -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,21 +1,21 @@
|
|
|
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",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^20.9 || ^22.11"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "exit 0",
|
|
12
12
|
"test": "ava",
|
|
13
|
-
"test:c8": "c8 --all $C8_OPTIONS ava",
|
|
13
|
+
"test:c8": "c8 --all ${C8_OPTIONS:-} ava",
|
|
14
14
|
"test:xs": "exit 0",
|
|
15
15
|
"lint-fix": "yarn lint:eslint --fix",
|
|
16
|
-
"lint": "run-s --continue-on-error lint:*",
|
|
17
|
-
"lint:eslint": "eslint .",
|
|
18
|
-
"lint:types": "tsc"
|
|
16
|
+
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
17
|
+
"lint:eslint": "yarn run -T eslint .",
|
|
18
|
+
"lint:types": "yarn run -T tsc"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
@@ -28,29 +28,29 @@
|
|
|
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-
|
|
41
|
-
"@endo/bundle-source": "^
|
|
42
|
-
"@endo/captp": "^4.4.
|
|
43
|
-
"@endo/errors": "^1.2.
|
|
44
|
-
"@endo/far": "^1.1.
|
|
45
|
-
"@endo/init": "^1.1.
|
|
46
|
-
"@endo/nat": "^5.
|
|
47
|
-
"@endo/promise-kit": "^1.1.
|
|
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
|
+
"@endo/bundle-source": "^4.1.2",
|
|
42
|
+
"@endo/captp": "^4.4.8",
|
|
43
|
+
"@endo/errors": "^1.2.13",
|
|
44
|
+
"@endo/far": "^1.1.14",
|
|
45
|
+
"@endo/init": "^1.1.12",
|
|
46
|
+
"@endo/nat": "^5.1.3",
|
|
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
|
-
"c8": "^10.1.
|
|
53
|
-
"import-meta-resolve": "^
|
|
52
|
+
"c8": "^10.1.3",
|
|
53
|
+
"import-meta-resolve": "^4.1.0"
|
|
54
54
|
},
|
|
55
55
|
"files": [
|
|
56
56
|
"scripts/",
|
|
@@ -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
|
@@ -5,12 +5,15 @@ import { makePegasus } from './pegasus.js';
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @import {Remote} from '@agoric/vow';
|
|
8
|
+
* @import {ContractStartFn} from '@agoric/zoe';
|
|
9
|
+
* @import {Pegasus} from './pegasus.js';
|
|
10
|
+
* @import {NameHub} from '@agoric/vats';
|
|
8
11
|
*/
|
|
9
12
|
|
|
10
13
|
/**
|
|
11
|
-
* @type {ContractStartFn<
|
|
14
|
+
* @type {ContractStartFn<Pegasus, never, {}, {
|
|
12
15
|
* board: Remote<BoardDepositFacet>,
|
|
13
|
-
* namesByAddress: Remote<
|
|
16
|
+
* namesByAddress: Remote<NameHub>
|
|
14
17
|
* }>}
|
|
15
18
|
*/
|
|
16
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
|