@agoric/zoe 0.26.3-dev-16f149c.0 → 0.26.3-dev-7e4a2e1.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.26.3-dev-
|
|
3
|
+
"version": "0.26.3-dev-7e4a2e1.0+7e4a2e1",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -43,21 +43,22 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/assert": "0.6.1-dev-
|
|
47
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
48
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
49
|
-
"@agoric/internal": "0.3.3-dev-
|
|
50
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
51
|
-
"@agoric/store": "0.9.3-dev-
|
|
52
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
53
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
54
|
-
"@agoric/time": "0.3.3-dev-
|
|
55
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
46
|
+
"@agoric/assert": "0.6.1-dev-7e4a2e1.0+7e4a2e1",
|
|
47
|
+
"@agoric/base-zone": "0.1.1-dev-7e4a2e1.0+7e4a2e1",
|
|
48
|
+
"@agoric/ertp": "0.16.3-dev-7e4a2e1.0+7e4a2e1",
|
|
49
|
+
"@agoric/internal": "0.3.3-dev-7e4a2e1.0+7e4a2e1",
|
|
50
|
+
"@agoric/notifier": "0.6.3-dev-7e4a2e1.0+7e4a2e1",
|
|
51
|
+
"@agoric/store": "0.9.3-dev-7e4a2e1.0+7e4a2e1",
|
|
52
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-7e4a2e1.0+7e4a2e1",
|
|
53
|
+
"@agoric/swingset-vat": "0.32.3-dev-7e4a2e1.0+7e4a2e1",
|
|
54
|
+
"@agoric/time": "0.3.3-dev-7e4a2e1.0+7e4a2e1",
|
|
55
|
+
"@agoric/vat-data": "0.5.3-dev-7e4a2e1.0+7e4a2e1",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-7e4a2e1.0+7e4a2e1",
|
|
57
57
|
"@endo/bundle-source": "^3.1.0",
|
|
58
58
|
"@endo/captp": "^4.0.4",
|
|
59
59
|
"@endo/common": "^1.1.0",
|
|
60
60
|
"@endo/eventual-send": "^1.1.2",
|
|
61
|
+
"@endo/exo": "^1.2.1",
|
|
61
62
|
"@endo/far": "^1.0.4",
|
|
62
63
|
"@endo/import-bundle": "^1.0.4",
|
|
63
64
|
"@endo/marshal": "^1.3.0",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"yargs-parser": "^21.1.1"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
71
|
+
"@agoric/kmarshal": "0.1.1-dev-7e4a2e1.0+7e4a2e1",
|
|
71
72
|
"@endo/init": "^1.0.4",
|
|
72
73
|
"ava": "^5.3.0",
|
|
73
74
|
"c8": "^9.1.0",
|
|
@@ -140,5 +141,5 @@
|
|
|
140
141
|
"typeCoverage": {
|
|
141
142
|
"atLeast": 84.73
|
|
142
143
|
},
|
|
143
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "7e4a2e141e00cd3a47185591b57188c8d98c2310"
|
|
144
145
|
}
|
|
@@ -18,7 +18,7 @@ const TransferProposalShape = M.splitRecord({
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @template {
|
|
21
|
+
* @template {(string | symbol)[]} MN Method names
|
|
22
22
|
* @param {import('@agoric/base-zone').Zone} zone
|
|
23
23
|
* @param {MakeInvitation} makeInvitation
|
|
24
24
|
* A function with the same behavior as `zcf.makeInvitation`.
|
|
@@ -30,11 +30,11 @@ const TransferProposalShape = M.splitRecord({
|
|
|
30
30
|
* See ownable-counter.js for the canonical example.
|
|
31
31
|
* @param {string} uKindName
|
|
32
32
|
* The `kindName` of the underlying exo class
|
|
33
|
-
* @param {
|
|
33
|
+
* @param {MN} uMethodNames
|
|
34
34
|
* The method names of the underlying exo class that should be represented
|
|
35
35
|
* by transparently-forwarding methods of the wrapping ownable object.
|
|
36
36
|
* @param {OwnableOptions} [options]
|
|
37
|
-
* @returns {(underlying: U) => U}
|
|
37
|
+
* @returns {<U>(underlying: U) => Pick<U, MN[number]> & {makeTransferInvitation: () => Invitation}}
|
|
38
38
|
*/
|
|
39
39
|
export const prepareOwnable = (
|
|
40
40
|
zone,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
|
|
3
|
-
import { assert, details as X } from '@agoric/assert';
|
|
3
|
+
import { assert, details as X, Fail, quote as q } from '@agoric/assert';
|
|
4
4
|
import { E } from '@endo/eventual-send';
|
|
5
5
|
|
|
6
6
|
export const makeInvitationQueryFns = invitationIssuer => {
|
|
@@ -13,10 +13,12 @@ export const makeInvitationQueryFns = invitationIssuer => {
|
|
|
13
13
|
assert.note(err, X`Due to ${reason}`);
|
|
14
14
|
throw err;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
)
|
|
16
|
+
const invAmount = await E(invitationIssuer)
|
|
17
|
+
.getAmountOf(invitationP)
|
|
18
|
+
.catch(onRejected);
|
|
19
|
+
(Array.isArray(invAmount.value) && invAmount.value.length === 1) ||
|
|
20
|
+
Fail`Expected exactly 1 invitation, not ${q(invAmount.value.length)}`;
|
|
21
|
+
return invAmount.value[0];
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
/** @type {GetInstance} */
|