@agoric/zoe 0.26.3-dev-d61be8d.0 → 0.26.3-dev-624ac4a.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-624ac4a.0+624ac4a",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/assert": "0.6.1-dev-
|
|
47
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
48
|
-
"@agoric/internal": "0.3.3-dev-
|
|
49
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-dev-
|
|
51
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
52
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
53
|
-
"@agoric/time": "0.3.3-dev-
|
|
54
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
46
|
+
"@agoric/assert": "0.6.1-dev-624ac4a.0+624ac4a",
|
|
47
|
+
"@agoric/ertp": "0.16.3-dev-624ac4a.0+624ac4a",
|
|
48
|
+
"@agoric/internal": "0.3.3-dev-624ac4a.0+624ac4a",
|
|
49
|
+
"@agoric/notifier": "0.6.3-dev-624ac4a.0+624ac4a",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-624ac4a.0+624ac4a",
|
|
51
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-624ac4a.0+624ac4a",
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-624ac4a.0+624ac4a",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-624ac4a.0+624ac4a",
|
|
54
|
+
"@agoric/vat-data": "0.5.3-dev-624ac4a.0+624ac4a",
|
|
55
55
|
"@endo/bundle-source": "^2.7.0",
|
|
56
56
|
"@endo/captp": "^3.1.4",
|
|
57
57
|
"@endo/eventual-send": "^0.17.5",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"yargs-parser": "^21.1.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
67
|
+
"@agoric/kmarshal": "0.1.1-dev-624ac4a.0+624ac4a",
|
|
68
68
|
"@endo/init": "^0.5.59",
|
|
69
69
|
"ava": "^5.3.0",
|
|
70
70
|
"c8": "^7.13.0",
|
|
@@ -137,5 +137,5 @@
|
|
|
137
137
|
"typeCoverage": {
|
|
138
138
|
"atLeast": 81.5
|
|
139
139
|
},
|
|
140
|
-
"gitHead": "
|
|
140
|
+
"gitHead": "624ac4ada84ea24a4d30428bde7a0bfa1d7b12bb"
|
|
141
141
|
}
|
package/src/typeGuards.js
CHANGED
|
@@ -276,10 +276,12 @@ export const ZoeStorageManagerIKit = harden({
|
|
|
276
276
|
getBundleIDFromInstallation: M.call(InstallationShape).returns(
|
|
277
277
|
M.eref(M.string()),
|
|
278
278
|
),
|
|
279
|
-
installBundle: M.call(M.or(InstanceHandleShape, BundleShape))
|
|
280
|
-
M.
|
|
281
|
-
|
|
282
|
-
installBundleID: M.call(M.string())
|
|
279
|
+
installBundle: M.call(M.or(InstanceHandleShape, BundleShape))
|
|
280
|
+
.optional(M.string())
|
|
281
|
+
.returns(M.promise()),
|
|
282
|
+
installBundleID: M.call(M.string())
|
|
283
|
+
.optional(M.string())
|
|
284
|
+
.returns(M.promise()),
|
|
283
285
|
|
|
284
286
|
getPublicFacet: M.call(InstanceHandleShape).returns(
|
|
285
287
|
M.eref(M.remotable('PublicFacet')),
|
|
@@ -310,6 +312,7 @@ export const ZoeStorageManagerIKit = harden({
|
|
|
310
312
|
IssuerPKeywordRecordShape,
|
|
311
313
|
M.or(InstanceHandleShape, BundleShape),
|
|
312
314
|
M.or(BundleCapShape, BundleShape),
|
|
315
|
+
M.string(),
|
|
313
316
|
).returns(M.promise()),
|
|
314
317
|
unwrapInstallation: M.callWhen(M.eref(InstallationShape)).returns(
|
|
315
318
|
UnwrappedInstallationShape,
|
|
@@ -321,10 +324,10 @@ export const ZoeStorageManagerIKit = harden({
|
|
|
321
324
|
});
|
|
322
325
|
|
|
323
326
|
export const ZoeServiceI = M.interface('ZoeService', {
|
|
324
|
-
install: M.call(M.any()).returns(M.promise()),
|
|
325
|
-
installBundleID: M.call(M.string()).returns(M.promise()),
|
|
327
|
+
install: M.call(M.any()).optional(M.string()).returns(M.promise()),
|
|
328
|
+
installBundleID: M.call(M.string()).optional(M.string()).returns(M.promise()),
|
|
326
329
|
startInstance: M.call(M.eref(InstallationShape))
|
|
327
|
-
.optional(IssuerPKeywordRecordShape, M.
|
|
330
|
+
.optional(IssuerPKeywordRecordShape, M.record(), M.record(), M.string())
|
|
328
331
|
.returns(M.promise()),
|
|
329
332
|
offer: M.call(M.eref(InvitationShape))
|
|
330
333
|
.optional(ProposalShape, PaymentPKeywordRecordShape, M.any())
|
|
@@ -84,8 +84,12 @@ export const makeInstallationStorage = (getBundleCapForID, zoeBaggage) => {
|
|
|
84
84
|
InstanceHandleShape,
|
|
85
85
|
M.recordOf(M.string(), M.string({ stringLengthLimit: Infinity })),
|
|
86
86
|
),
|
|
87
|
-
)
|
|
88
|
-
|
|
87
|
+
)
|
|
88
|
+
.optional(M.string())
|
|
89
|
+
.returns(M.promise()),
|
|
90
|
+
installBundleID: M.call(M.string())
|
|
91
|
+
.optional(M.string())
|
|
92
|
+
.returns(M.promise()),
|
|
89
93
|
unwrapInstallation: M.callWhen(M.await(InstallationShape)).returns(
|
|
90
94
|
UnwrappedInstallationShape,
|
|
91
95
|
),
|