Skip to content
Open
2 changes: 1 addition & 1 deletion packages/ag-trade/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@endo/skel",
"name": "@endo/ag-trade",
"version": "1.0.1",
"private": true,
"description": null,
Expand Down
33 changes: 33 additions & 0 deletions packages/fun-games/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# endo games WIP

goal:

```
playground/packages/fun-games$ endo purge --force

playground/packages/fun-games$ endo make src/rock-paper-scissors.js -n rps
Starting Endo daemon...
Object [Alleged: RockPaperScissors] {}

playground/packages/fun-games$ endo mkhost bob bob-agent
Object [Alleged: EndoHost] {}

playground/packages/fun-games$ endo eval 'E(rps).playAgainst(bob)' bob rps
```

but I get:

```
CapTP cli exception: (RemoteTypeError(error:captp:Endo#20001)#1)
RemoteTypeError(error:captp:Endo#20001)#1: target has no method "accept", has ["__getInterfaceGuard__","__getMethodNames__","open","receive"]

at decodeErrorCommon (packages/marshal/src/marshal.js:303:24)
at decodeErrorFromCapData (packages/marshal/src/marshal.js:331:14)
at decodeFromCapData (packages/marshal/src/encodeToCapData.js:384:27)
at fromCapData (packages/marshal/src/marshal.js:393:23)
at CTP_RETURN (packages/captp/src/captp.js:693:24)
at dispatch (packages/captp/src/captp.js:772:7)
at packages/daemon/src/connection.js:36:7

(RemoteTypeError(error:captp:Endo#20001)#1)
```
74 changes: 74 additions & 0 deletions packages/fun-games/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"name": "@endo/fun-games",
"version": "1.0.1",
"private": true,
"description": null,
"keywords": [],
"author": "Endo contributors",
"license": "Apache-2.0",
"homepage": "https://github.com/endojs/endo/tree/master/packages/skel#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/endojs/endo.git"
},
"bugs": {
"url": "https://github.com/endojs/endo/issues"
},
"type": "module",
"main": "./index.js",
"module": "./index.js",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"scripts": {
"build": "exit 0",
"build:types": "tsc --build tsconfig.build.json",
"clean:types": "git clean -f '*.d.ts*'",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-check": "yarn lint",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0"
},
"dependencies": {
"@endo/daemon": "/home/connolly/projects/endo/packages/daemon/",
"@endo/exo": "^1.4.0",
"@endo/far": "^0.2.21",
"@endo/marshal": "^1.0.1",
"@endo/patterns": "^1.3.1",
"@endo/promise-kit": "^1.1.1"
},
"devDependencies": {
"@endo/init": "^1.0.1",
"@endo/lockdown": "^1.0.1",
"@endo/ses-ava": "^1.0.1",
"ava": "^5.3.0",
"c8": "^7.14.0",
"tsd": "^0.28.1"
},
"files": [
"*.js",
"*.ts",
"LICENSE*",
"SECURITY*",
"src"
],
"publishConfig": {
"access": "public"
},
"eslintConfig": {
"extends": [
"plugin:@endo/internal"
]
},
"ava": {
"files": [
"test/**/test-*.js"
],
"timeout": "2m"
}
}
Loading