Skip to content

Commit

Permalink
feat: move liveslots and specific tests to a new package
Browse files Browse the repository at this point in the history
This creates a new `@agoric/swingset-liveslots` package, which owns
the old `packages/SwingSet/src/liveslots/` code. Several tests which
specifically exercised liveslots (but not the rest of the kernel) were
moved over, along with some helper files. The "fake virtual stuff"
tools in SwingSet/tools/ were moved over too.

No file contents were changed, so the new files won't work yet (and
this breaks SwingSet itself), until we modify them in the next
commit. This "move, then modify" approach should help with git
rebasing and history management in the future, as well as code review.

New files were created for the metadata: package.json,
jsconfig.json. The agoric-cli `sdk-package-names.js` file was
regenerated to include the new package.

refs #6596
  • Loading branch information
warner committed Jan 27, 2023
1 parent 1e47de0 commit 1216b2b
Show file tree
Hide file tree
Showing 36 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/agoric-cli/src/sdk-package-names.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default [
"@agoric/stat-logger",
"@agoric/store",
"@agoric/swing-store",
"@agoric/swingset-liveslots",
"@agoric/swingset-runner",
"@agoric/swingset-vat",
"@agoric/telemetry",
Expand Down
18 changes: 18 additions & 0 deletions packages/swingset-liveslots/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"noEmit": true,
"downlevelIteration": true,
"strictNullChecks": true,
"noImplicitThis": true,
"moduleResolution": "node",
},
"include": [
"*.js",
"scripts/**/*.js",
"src/**/*.js",
"test/**/*.js",
"tools/**/*.js",
],
}
60 changes: 60 additions & 0 deletions packages/swingset-liveslots/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "@agoric/swingset-liveslots",
"version": "0.9.0",
"description": "SwingSet ocap support layer",
"type": "module",
"main": "src/index.js",
"engines": {
"node": ">=14.15.0"
},
"scripts": {
"build": "exit 0",
"test": "ava",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
"lint": "yarn lint:types&&yarn lint:eslint",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint ."
},
"devDependencies": {},
"dependencies": {
"@agoric/assert": "^0.5.1",
"@agoric/internal": "^0.2.1",
"@agoric/nat": "^4.1.0",
"@agoric/store": "^0.8.3",
"@agoric/vat-data": "^0.4.3",
"@endo/eventual-send": "^0.16.8",
"@endo/init": "^0.5.52",
"@endo/marshal": "^0.8.1",
"@endo/promise-kit": "^0.2.52"
},
"peerDependencies": {
"@endo/ses-ava": "^0.2.36",
"ava": "^5.1.0"
},
"files": [
"src/**/*.js",
"src/**/*.d.ts",
"exported.js"
],
"repository": {
"type": "git",
"url": "git+https://github.com/Agoric/agoric-sdk.git"
},
"author": "Agoric",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/Agoric/agoric-sdk/issues"
},
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
"ava": {
"files": [
"test/**/test-*.js"
],
"timeout": "20m",
"workerThreads": false
},
"publishConfig": {
"access": "public"
}
}
1 change: 1 addition & 0 deletions packages/swingset-liveslots/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { makeLiveSlots, makeMarshaller } from './liveslots.js';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1216b2b

Please sign in to comment.