@agoric/zoe 0.26.3-dev-fbb1e85.0.fbb1e85 → 0.26.3-dev-486919f.0.486919f
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 +15 -17
- package/source-spec-registry.d.ts +25 -0
- package/source-spec-registry.d.ts.map +1 -0
- package/source-spec-registry.js +23 -0
- package/tools/fakeVatAdmin.d.ts.map +1 -1
- package/tools/fakeVatAdmin.js +5 -2
- package/bundles/bundle-contractFacet-js-meta.json +0 -1075
- package/bundles/bundle-contractFacet.js +0 -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-486919f.0.486919f",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
"node": "^20.9 || ^22.11"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "yarn build:bundles",
|
|
12
|
-
"build:bundles": "node scripts/build-bundles.js",
|
|
13
11
|
"prepack": "yarn run -T prepack-package",
|
|
14
12
|
"postpack": "yarn run -T postpack-package",
|
|
15
13
|
"test": "ava --verbose",
|
|
@@ -19,7 +17,6 @@
|
|
|
19
17
|
"test:xs": "yarn test:xs-worker",
|
|
20
18
|
"test:xs-unit": "exit 0",
|
|
21
19
|
"test:xs-worker": "SWINGSET_WORKER_TYPE=xs-worker ava -c 2 'test/swingsetTests'",
|
|
22
|
-
"build-zcfBundle": "yarn build:bundles",
|
|
23
20
|
"lint-fix": "yarn lint:eslint --fix",
|
|
24
21
|
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
25
22
|
"lint:eslint": "yarn run -T eslint .",
|
|
@@ -43,17 +40,17 @@
|
|
|
43
40
|
},
|
|
44
41
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
42
|
"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-
|
|
43
|
+
"@agoric/base-zone": "0.1.1-dev-486919f.0.486919f",
|
|
44
|
+
"@agoric/ertp": "0.16.3-dev-486919f.0.486919f",
|
|
45
|
+
"@agoric/internal": "0.3.3-dev-486919f.0.486919f",
|
|
46
|
+
"@agoric/notifier": "0.6.3-dev-486919f.0.486919f",
|
|
47
|
+
"@agoric/store": "0.9.3-dev-486919f.0.486919f",
|
|
48
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-486919f.0.486919f",
|
|
49
|
+
"@agoric/swingset-vat": "0.32.3-dev-486919f.0.486919f",
|
|
50
|
+
"@agoric/time": "0.3.3-dev-486919f.0.486919f",
|
|
51
|
+
"@agoric/vat-data": "0.5.3-dev-486919f.0.486919f",
|
|
52
|
+
"@agoric/vow": "0.1.1-dev-486919f.0.486919f",
|
|
53
|
+
"@agoric/zone": "0.2.3-dev-486919f.0.486919f",
|
|
57
54
|
"@endo/bundle-source": "^4.1.2",
|
|
58
55
|
"@endo/captp": "^4.4.8",
|
|
59
56
|
"@endo/common": "^1.2.13",
|
|
@@ -70,7 +67,7 @@
|
|
|
70
67
|
"yargs-parser": "^21.1.1"
|
|
71
68
|
},
|
|
72
69
|
"devDependencies": {
|
|
73
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
70
|
+
"@agoric/kmarshal": "0.1.1-dev-486919f.0.486919f",
|
|
74
71
|
"@endo/init": "^1.1.12",
|
|
75
72
|
"ava": "^6.4.1",
|
|
76
73
|
"c8": "^10.1.3",
|
|
@@ -80,6 +77,7 @@
|
|
|
80
77
|
"files": [
|
|
81
78
|
"bundles/",
|
|
82
79
|
"src/",
|
|
80
|
+
"source-spec-registry.*",
|
|
83
81
|
"tools/",
|
|
84
82
|
"contractFacet.js",
|
|
85
83
|
"NEWS.md"
|
|
@@ -99,5 +97,5 @@
|
|
|
99
97
|
"typeCoverage": {
|
|
100
98
|
"atLeast": 84.84
|
|
101
99
|
},
|
|
102
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "486919f1291219236846e56cb4544d24972302c4"
|
|
103
101
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export namespace zoeSourceSpecRegistry {
|
|
2
|
+
namespace zcf {
|
|
3
|
+
let bundleName: string;
|
|
4
|
+
let packagePath: string;
|
|
5
|
+
let sourceSpec: string;
|
|
6
|
+
}
|
|
7
|
+
namespace automaticRefund {
|
|
8
|
+
let bundleName_1: string;
|
|
9
|
+
export { bundleName_1 as bundleName };
|
|
10
|
+
let packagePath_1: string;
|
|
11
|
+
export { packagePath_1 as packagePath };
|
|
12
|
+
let sourceSpec_1: string;
|
|
13
|
+
export { sourceSpec_1 as sourceSpec };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function getZoeSourceSpec(name: keyof typeof zoeSourceSpecRegistry): {
|
|
17
|
+
bundleName: string;
|
|
18
|
+
packagePath: string;
|
|
19
|
+
sourceSpec: string;
|
|
20
|
+
} | {
|
|
21
|
+
bundleName: string;
|
|
22
|
+
packagePath: string;
|
|
23
|
+
sourceSpec: string;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=source-spec-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-spec-registry.d.ts","sourceRoot":"","sources":["source-spec-registry.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAsBO,uCADK,MAAM,OAAO,qBAAqB;;;;;;;;EACqB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { fileURLToPath } from 'url';
|
|
2
|
+
|
|
3
|
+
/** @param {string} packagePath */
|
|
4
|
+
const resolveSourceSpec = packagePath =>
|
|
5
|
+
fileURLToPath(import.meta.resolve(packagePath));
|
|
6
|
+
|
|
7
|
+
export const zoeSourceSpecRegistry = {
|
|
8
|
+
zcf: {
|
|
9
|
+
bundleName: 'contractFacet',
|
|
10
|
+
packagePath: '@agoric/zoe/contractFacet.js',
|
|
11
|
+
sourceSpec: resolveSourceSpec('@agoric/zoe/contractFacet.js'),
|
|
12
|
+
},
|
|
13
|
+
automaticRefund: {
|
|
14
|
+
bundleName: 'automaticRefund',
|
|
15
|
+
packagePath: '@agoric/zoe/src/contracts/automaticRefund.js',
|
|
16
|
+
sourceSpec: resolveSourceSpec(
|
|
17
|
+
'@agoric/zoe/src/contracts/automaticRefund.js',
|
|
18
|
+
),
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @param {keyof typeof zoeSourceSpecRegistry} name */
|
|
23
|
+
export const getZoeSourceSpec = name => zoeSourceSpecRegistry[name];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fakeVatAdmin.d.ts","sourceRoot":"","sources":["fakeVatAdmin.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fakeVatAdmin.d.ts","sourceRoot":"","sources":["fakeVatAdmin.js"],"names":[],"mappings":"AA4BA,+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;yCAxLsE,sBAAsB;gCAAtB,sBAAsB"}
|
package/tools/fakeVatAdmin.js
CHANGED
|
@@ -7,8 +7,8 @@ import { makePromiseKit } from '@endo/promise-kit';
|
|
|
7
7
|
import { Far } from '@endo/marshal';
|
|
8
8
|
import { makeScalarMapStore } from '@agoric/store';
|
|
9
9
|
import { makeScalarBigMapStore } from '@agoric/vat-data';
|
|
10
|
-
|
|
11
|
-
import
|
|
10
|
+
import { unsafeSharedBundleCache } from '@agoric/swingset-vat/tools/bundleTool.js';
|
|
11
|
+
import { zoeSourceSpecRegistry } from '../source-spec-registry.js';
|
|
12
12
|
|
|
13
13
|
import { evalContractBundle } from '../src/contractFacet/evalContractCode.js';
|
|
14
14
|
import { handlePKitWarning } from '../src/handleWarning.js';
|
|
@@ -19,6 +19,9 @@ import { makeHandle } from '../src/makeHandle.js';
|
|
|
19
19
|
* @import {BundleCap, BundleID, EndoZipBase64Bundle, TestBundle} from '@agoric/swingset-vat';
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
+
const bundleCache = await unsafeSharedBundleCache;
|
|
23
|
+
const { zcfBundle } = await bundleCache.loadRegistry(zoeSourceSpecRegistry);
|
|
24
|
+
|
|
22
25
|
// this simulates a bundlecap, which is normally a swingset "device node"
|
|
23
26
|
/** @type {() => BundleCap} */
|
|
24
27
|
const fakeBundleCap = () => makeHandle('FakeBundleCap');
|