@agoric/zoe 0.26.3-dev-7cead9c.0 → 0.26.3-dev-386dc7c.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/bundles/bundle-contractFacet-js-meta.json +185 -315
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +11 -11
- package/src/contractSupport/priceAuthorityTransform.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityTransform.js +2 -3
- package/src/zoeService/offer/offer.d.ts.map +1 -1
- package/src/zoeService/offer/offer.js +2 -3
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +4 -6
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-386dc7c.0+386dc7c",
|
|
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-386dc7c.0+386dc7c",
|
|
47
|
+
"@agoric/ertp": "0.16.3-dev-386dc7c.0+386dc7c",
|
|
48
|
+
"@agoric/internal": "0.3.3-dev-386dc7c.0+386dc7c",
|
|
49
|
+
"@agoric/notifier": "0.6.3-dev-386dc7c.0+386dc7c",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-386dc7c.0+386dc7c",
|
|
51
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-386dc7c.0+386dc7c",
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-386dc7c.0+386dc7c",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-386dc7c.0+386dc7c",
|
|
54
|
+
"@agoric/vat-data": "0.5.3-dev-386dc7c.0+386dc7c",
|
|
55
55
|
"@endo/bundle-source": "^2.7.0",
|
|
56
56
|
"@endo/captp": "^3.1.4",
|
|
57
57
|
"@endo/eventual-send": "^0.17.5",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"publishConfig": {
|
|
134
134
|
"access": "public"
|
|
135
135
|
},
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "386dc7cf179bf610841dec4a0b1f55d5d5c50878"
|
|
137
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthorityTransform.d.ts","sourceRoot":"","sources":["priceAuthorityTransform.js"],"names":[],"mappings":"AAiBO,sCARI,MAAM,KAAK,CAAC,YACZ,OAAO,KAAK,CAAC,aACb,OAAO,KAAK,CAAC,SACb,KAAK,OAAO,wBAAwB,EAAE,YAAY,CAAC,aACnD,OAAO,cAAc,EAAE,SAAS,aAChC,KAAK,KAAK,KAAK,CAAC,CAAC,GACf,QAAQ,UAAU,CAAC,CAmB/B;AAeM;IAX4B,SAAS,EAAjC,KAAK,KAAK,KAAK,CAAC,CAAC;IACU,oBAAoB,EAA/C,KAAK,cAAc,CAAC;IACD,aAAa,EAAhC,MAAM,KAAK,CAAC;IACO,cAAc,EAAjC,MAAM,KAAK,CAAC;IACQ,aAAa;IACb,cAAc;IACgB,kBAAkB,eAAzD,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACS,mBAAmB,gBAA1D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACa,uBAAuB,qBAA9D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACS,wBAAwB,sBAA/D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"priceAuthorityTransform.d.ts","sourceRoot":"","sources":["priceAuthorityTransform.js"],"names":[],"mappings":"AAiBO,sCARI,MAAM,KAAK,CAAC,YACZ,OAAO,KAAK,CAAC,aACb,OAAO,KAAK,CAAC,SACb,KAAK,OAAO,wBAAwB,EAAE,YAAY,CAAC,aACnD,OAAO,cAAc,EAAE,SAAS,aAChC,KAAK,KAAK,KAAK,CAAC,CAAC,GACf,QAAQ,UAAU,CAAC,CAmB/B;AAeM;IAX4B,SAAS,EAAjC,KAAK,KAAK,KAAK,CAAC,CAAC;IACU,oBAAoB,EAA/C,KAAK,cAAc,CAAC;IACD,aAAa,EAAhC,MAAM,KAAK,CAAC;IACO,cAAc,EAAjC,MAAM,KAAK,CAAC;IACQ,aAAa;IACb,cAAc;IACgB,kBAAkB,eAAzD,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACS,mBAAmB,gBAA1D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACa,uBAAuB,qBAA9D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;IACS,wBAAwB,sBAA/D,OAAO,KAAK,CAAC,KAAK,OAAO,KAAK,CAAC;4BA4N3D;uBArQyB,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC"}
|
|
@@ -87,9 +87,8 @@ export const makePriceAuthorityTransform = async ({
|
|
|
87
87
|
sourceBrandOut,
|
|
88
88
|
);
|
|
89
89
|
|
|
90
|
-
const { value: sourceQuoteValue } =
|
|
91
|
-
sourceQuotePayment
|
|
92
|
-
);
|
|
90
|
+
const { value: sourceQuoteValue } =
|
|
91
|
+
await E(sourceQuoteIssuer).getAmountOf(sourceQuotePayment);
|
|
93
92
|
|
|
94
93
|
sourceQuoteValue.length === 1 ||
|
|
95
94
|
Fail`sourceQuoteValue.length ${sourceQuoteValue.length} is not 1`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["offer.js"],"names":[],"mappings":"AAgBO,
|
|
1
|
+
{"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["offer.js"],"names":[],"mappings":"AAgBO,6DA0DN"}
|
|
@@ -24,9 +24,8 @@ export const makeOfferMethod = offerDataAccess => {
|
|
|
24
24
|
) => {
|
|
25
25
|
const invitationIssuer = offerDataAccess.getInvitationIssuer();
|
|
26
26
|
const query = makeInvitationQueryFns(invitationIssuer);
|
|
27
|
-
const { instance, description } =
|
|
28
|
-
invitation
|
|
29
|
-
);
|
|
27
|
+
const { instance, description } =
|
|
28
|
+
await query.getInvitationDetails(invitation);
|
|
30
29
|
// AWAIT ///
|
|
31
30
|
|
|
32
31
|
const instanceAdmin = await offerDataAccess.getInstanceAdmin(instance);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AA2BO,uDANI,KAAK,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,KAAK,SAAS,CAAC,4BAChB,MAAM,KAAK,SAAS,sCAEvB,OAAO,SAAS,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AA2BO,uDANI,KAAK,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,KAAK,SAAS,CAAC,4BAChB,MAAM,KAAK,SAAS,sCAEvB,OAAO,SAAS,EAAE,aAAa,CA+T3C;sBAzUa,OAAO,kBAAkB,EAAE,OAAO;wBACjC,OAAO,sBAAsB,EAAE,SAAS"}
|
|
@@ -212,9 +212,8 @@ export const makeStartInstance = (
|
|
|
212
212
|
async upgradeContract(contractBundleId, newPrivateArgs = undefined) {
|
|
213
213
|
const { state } = this;
|
|
214
214
|
|
|
215
|
-
const newContractBundleCap =
|
|
216
|
-
contractBundleId
|
|
217
|
-
);
|
|
215
|
+
const newContractBundleCap =
|
|
216
|
+
await getBundleCapByIdNow(contractBundleId);
|
|
218
217
|
const vatParameters = {
|
|
219
218
|
contractBundleCap: newContractBundleCap,
|
|
220
219
|
privateArgs: newPrivateArgs,
|
|
@@ -233,9 +232,8 @@ export const makeStartInstance = (
|
|
|
233
232
|
privateArgs = undefined,
|
|
234
233
|
instanceLabel = '',
|
|
235
234
|
) => {
|
|
236
|
-
const { installation, bundle, bundleCap } =
|
|
237
|
-
startInstanceAccess
|
|
238
|
-
).unwrapInstallation(installationP);
|
|
235
|
+
const { installation, bundle, bundleCap } =
|
|
236
|
+
await E(startInstanceAccess).unwrapInstallation(installationP);
|
|
239
237
|
// AWAIT ///
|
|
240
238
|
|
|
241
239
|
const contractBundleCap = bundle || bundleCap;
|