@agoric/zoe 0.26.3-dev-b95c1c8.0.b95c1c8 → 0.26.3-dev-a0b2d38.0.a0b2d38
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 +212 -212
- package/package.json +14 -14
- package/tools/fakeVatAdmin.d.ts +10 -0
- package/tools/fakeVatAdmin.d.ts.map +1 -1
- package/tools/fakeVatAdmin.js +30 -1
- package/tools/setup-zoe.d.ts +2 -0
- package/tools/setup-zoe.d.ts.map +1 -1
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-a0b2d38.0.a0b2d38",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/base-zone": "0.1.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-
|
|
55
|
-
"@agoric/vow": "0.1.1-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
46
|
+
"@agoric/base-zone": "0.1.1-dev-a0b2d38.0.a0b2d38",
|
|
47
|
+
"@agoric/ertp": "0.16.3-dev-a0b2d38.0.a0b2d38",
|
|
48
|
+
"@agoric/internal": "0.3.3-dev-a0b2d38.0.a0b2d38",
|
|
49
|
+
"@agoric/notifier": "0.6.3-dev-a0b2d38.0.a0b2d38",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-a0b2d38.0.a0b2d38",
|
|
51
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-a0b2d38.0.a0b2d38",
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-a0b2d38.0.a0b2d38",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-a0b2d38.0.a0b2d38",
|
|
54
|
+
"@agoric/vat-data": "0.5.3-dev-a0b2d38.0.a0b2d38",
|
|
55
|
+
"@agoric/vow": "0.1.1-dev-a0b2d38.0.a0b2d38",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-a0b2d38.0.a0b2d38",
|
|
57
57
|
"@endo/bundle-source": "^4.1.2",
|
|
58
58
|
"@endo/captp": "^4.4.8",
|
|
59
59
|
"@endo/common": "^1.2.13",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"yargs-parser": "^21.1.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
73
|
+
"@agoric/kmarshal": "0.1.1-dev-a0b2d38.0.a0b2d38",
|
|
74
74
|
"@endo/init": "^1.1.12",
|
|
75
75
|
"ava": "^5.3.0",
|
|
76
76
|
"c8": "^10.1.3",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"typeCoverage": {
|
|
101
101
|
"atLeast": 84.74
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "a0b2d383831a6afc602a2215892ecacc8b106a20"
|
|
104
104
|
}
|
package/tools/fakeVatAdmin.d.ts
CHANGED
|
@@ -87,6 +87,16 @@ export function makeFakeVatAdmin(testContextSetter?: (...args: any) => unknown,
|
|
|
87
87
|
getExitMessage: () => any;
|
|
88
88
|
getHasExited: () => boolean;
|
|
89
89
|
getExitWithFailure: () => any;
|
|
90
|
+
/**
|
|
91
|
+
* @param {string} base
|
|
92
|
+
* @param {EndoZipBase64Bundle | TestBundle} bundle
|
|
93
|
+
*/
|
|
94
|
+
getBundleID: (base: string, bundle: EndoZipBase64Bundle | TestBundle) => string;
|
|
95
|
+
/**
|
|
96
|
+
* @param {string} base
|
|
97
|
+
* @param {EndoZipBase64Bundle | TestBundle} bundle
|
|
98
|
+
*/
|
|
99
|
+
registerBundle: (base: string, bundle: EndoZipBase64Bundle | TestBundle) => string;
|
|
90
100
|
/**
|
|
91
101
|
* @param {string} id
|
|
92
102
|
* @param {EndoZipBase64Bundle | TestBundle} bundle
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fakeVatAdmin.d.ts","sourceRoot":"","sources":["fakeVatAdmin.js"],"names":[],"mappings":"AAwBA,+BAA4C;;
|
|
1
|
+
{"version":3,"file":"fakeVatAdmin.d.ts","sourceRoot":"","sources":["fakeVatAdmin.js"],"names":[],"mappings":"AAwBA,+BAA4C;;AAqL5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA8C;AAnL9C;;;GAGG;AACH,qDAHW,CAAC,GAAG,IAAI,KAAA,KAAK,OAAO,eACpB,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgH9B;;;WAGG;4BAFQ,MAAM,UACN,mBAAmB,GAAG,UAAU;QAW3C;;;WAGG;+BAFQ,MAAM,UACN,mBAAmB,GAAG,UAAU;QAO3C;;;WAGG;4BAFQ,MAAM,UACN,mBAAmB,GAAG,UAAU;;;;;;kCA9HkB,MAAM;;;;;EAgKtE;yCArLsE,sBAAsB;gCAAtB,sBAAsB"}
|
package/tools/fakeVatAdmin.js
CHANGED
|
@@ -138,6 +138,28 @@ function makeFakeVatAdmin(testContextSetter = undefined, makeRemote = x => x) {
|
|
|
138
138
|
getExitMessage: () => exitMessage,
|
|
139
139
|
getHasExited: () => hasExited,
|
|
140
140
|
getExitWithFailure: () => exitWithFailure,
|
|
141
|
+
/**
|
|
142
|
+
* @param {string} base
|
|
143
|
+
* @param {EndoZipBase64Bundle | TestBundle} bundle
|
|
144
|
+
*/
|
|
145
|
+
getBundleID: (base, bundle) => {
|
|
146
|
+
if (bundle.moduleFormat !== 'endoZipBase64') {
|
|
147
|
+
return base;
|
|
148
|
+
}
|
|
149
|
+
if (base === `b1-${bundle.endoZipBase64Sha512}`) {
|
|
150
|
+
return base;
|
|
151
|
+
}
|
|
152
|
+
return `${base}-${bundle.endoZipBase64Sha512}`;
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* @param {string} base
|
|
156
|
+
* @param {EndoZipBase64Bundle | TestBundle} bundle
|
|
157
|
+
*/
|
|
158
|
+
registerBundle: (base, bundle) => {
|
|
159
|
+
const bid = vatAdminState.getBundleID(base, bundle);
|
|
160
|
+
vatAdminState.installBundle(bid, bundle);
|
|
161
|
+
return bid;
|
|
162
|
+
},
|
|
141
163
|
/**
|
|
142
164
|
* @param {string} id
|
|
143
165
|
* @param {EndoZipBase64Bundle | TestBundle} bundle
|
|
@@ -150,7 +172,14 @@ function makeFakeVatAdmin(testContextSetter = undefined, makeRemote = x => x) {
|
|
|
150
172
|
if (extant.moduleFormat === 'endoZipBase64') {
|
|
151
173
|
// Narrow bundle.moduleFormat now that extant.moduleFormat is narrowed
|
|
152
174
|
assert.equal(bundle.moduleFormat, extant.moduleFormat);
|
|
153
|
-
|
|
175
|
+
// Make the error message managable by only showing the length,
|
|
176
|
+
// beginning and end of the huge base64 strings.
|
|
177
|
+
const summarize = s =>
|
|
178
|
+
`${s.length} chars (${s.slice(0, 10)}...${s.slice(-10)})`;
|
|
179
|
+
assert(
|
|
180
|
+
bundle.endoZipBase64 === extant.endoZipBase64,
|
|
181
|
+
`bundle ${id} ${summarize(bundle.endoZipBase64)} differs from extant ${summarize(extant.endoZipBase64)}`,
|
|
182
|
+
);
|
|
154
183
|
}
|
|
155
184
|
return idToBundleCap.get(id);
|
|
156
185
|
}
|
package/tools/setup-zoe.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export function setUpZoeForTest<T extends unknown = any>({ setJig, feeIssuerConf
|
|
|
21
21
|
getExitMessage: () => any;
|
|
22
22
|
getHasExited: () => boolean;
|
|
23
23
|
getExitWithFailure: () => any;
|
|
24
|
+
getBundleID: (base: string, bundle: EndoZipBase64Bundle | TestBundle) => string;
|
|
25
|
+
registerBundle: (base: string, bundle: EndoZipBase64Bundle | TestBundle) => string;
|
|
24
26
|
installBundle: (id: string, bundle: EndoZipBase64Bundle | TestBundle) => any;
|
|
25
27
|
installNamedBundle: (name: any, id: any, bundle: any) => any;
|
|
26
28
|
getCriticalVatKey: () => {};
|
package/tools/setup-zoe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAgBO,gDAFI,WAAW;;;;;;;EAOrB;AAKM,6CAFI,WAAW,sDAGqB;AAapC,gCAPgB,CAAC,mFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;sCAoD9B,MAAM,aACN,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAgBO,gDAFI,WAAW;;;;;;;EAOrB;AAKM,6CAFI,WAAW,sDAGqB;AAapC,gCAPgB,CAAC,mFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;sCAoD9B,MAAM,aACN,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;GAoBnC;iCAvG8D,sBAAsB;qCACrC,uBAAuB;kCAAvB,uBAAuB;yCADR,sBAAsB;gCAAtB,sBAAsB"}
|