-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(solo): fully-working ag-solo package
- Loading branch information
1 parent
3525283
commit 57ea595
Showing
15 changed files
with
140 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// This file can contain .js-specific Typescript compiler config. | ||
{ | ||
"compilerOptions": { | ||
"target": "esnext", | ||
|
||
"noEmit": true, | ||
/* | ||
// The following flags are for creating .d.ts files: | ||
"noEmit": false, | ||
"declaration": true, | ||
"emitDeclarationOnly": true, | ||
*/ | ||
"downlevelIteration": true, | ||
"strictNullChecks": true, | ||
"moduleResolution": "node", | ||
}, | ||
"include": ["src/**/*.js", "exported.js"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"name": "@agoric/solo", | ||
"version": "0.1.0", | ||
"description": "Agoric's Solo vat runner", | ||
"parsers": { | ||
"js": "mjs" | ||
}, | ||
"bin": { | ||
"ag-solo": "./src/entrypoint.cjs" | ||
}, | ||
"main": "src/main.js", | ||
"repository": "https://github.com/Agoric/agoric-sdk", | ||
"scripts": { | ||
"build": "exit 0", | ||
"test": "ava", | ||
"test:nyc": "nyc ava", | ||
"test:xs": "exit 0", | ||
"pretty-fix": "prettier --write '**/*.js'", | ||
"pretty-check": "prettier --check '**/*.js'", | ||
"lint-fix": "yarn lint:eslint --fix && yarn lint:types", | ||
"lint-check": "yarn lint", | ||
"lint": "yarn lint:types && yarn lint:eslint", | ||
"lint:types": "tsc -p jsconfig.json", | ||
"lint:eslint": "eslint '**/*.js'" | ||
}, | ||
"keywords": [], | ||
"author": "Agoric", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@agoric/assert": "^0.2.8", | ||
"@agoric/captp": "^1.7.9", | ||
"@agoric/cosmic-swingset": "^0.29.3", | ||
"@agoric/dapp-svelte-wallet": "^0.9.3", | ||
"@agoric/eventual-send": "^0.13.10", | ||
"@agoric/import-bundle": "^0.2.10", | ||
"@agoric/install-metering-and-ses": "^0.2.9", | ||
"@agoric/marshal": "^0.4.7", | ||
"@agoric/notifier": "^0.3.10", | ||
"@agoric/promise-kit": "^0.2.9", | ||
"@agoric/spawner": "^0.4.10", | ||
"@agoric/store": "^0.4.10", | ||
"@agoric/swing-store-lmdb": "^0.4.8", | ||
"@agoric/swing-store-simple": "^0.3.6", | ||
"@agoric/swingset-vat": "^0.16.3", | ||
"@agoric/vats": "^0.1.0", | ||
"anylogger": "^0.21.0", | ||
"deterministic-json": "^1.0.5", | ||
"esm": "^3.2.25", | ||
"express": "^4.17.1", | ||
"minimist": "^1.2.0", | ||
"morgan": "^1.9.1", | ||
"node-fetch": "^2.6.0", | ||
"node-lmdb": "^0.9.4", | ||
"temp": "^0.9.1", | ||
"ws": "^7.2.0" | ||
}, | ||
"devDependencies": { | ||
"@agoric/bundle-source": "^1.3.3", | ||
"ava": "^3.12.1", | ||
"nyc": "^15.1.0" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"@agoric" | ||
] | ||
}, | ||
"prettier": { | ||
"trailingComma": "all", | ||
"singleQuote": true | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"engines": { | ||
"node": ">=11.0" | ||
}, | ||
"ava": { | ||
"files": [ | ||
"test/**/test-*.js" | ||
], | ||
"require": [ | ||
"esm" | ||
], | ||
"timeout": "20m" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
#! /bin/sh | ||
set -e | ||
PORT=${PORT-8000} | ||
rm -rf t3 | ||
../bin/ag-solo init t3 --egresses=fake --webport=$PORT --defaultManagerType=local | ||
cd t3 | ||
../../bin/ag-solo set-fake-chain --delay=0 mySimGCI | ||
exec ../../bin/ag-solo start | ||
AG_SOLO=$(cd ../src && pwd)/entrypoint.cjs | ||
|
||
TDIR="${TMPDIR-/tmp}/startsolo.$$" | ||
trap 'rm -rf "$TDIR"' EXIT | ||
"$AG_SOLO" init "$TDIR" --egresses=fake --webport=$PORT --defaultManagerType=local | ||
cd "$TDIR" | ||
"$AG_SOLO" set-fake-chain --delay=0 mySimGCI | ||
exec "$AG_SOLO" start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters