-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(contract): linting and typedefs #26
Changes from 7 commits
4a7fdbd
a6496a0
7e3d0ed
f2d6dfc
a78ea8f
fdae180
799e40f
647f561
454c8c7
3ce6458
ad81605
f0a60ba
ca54045
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
_agstate/yarn-links |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,26 +11,32 @@ | |
"docker:make": "docker compose exec agd make -C /workspace/contract", | ||
"make:help": "make list", | ||
"start": "yarn docker:make clean start-contract print-key", | ||
"build": "exit 0", | ||
"build": "node_modules/agoric/bin/agoric run scripts/build-game1-start.js", | ||
"test": "ava --verbose", | ||
"lint": "eslint '**/*.{js,ts}'", | ||
"lint-fix": "eslint --fix '**/*.{js,ts}'", | ||
"lint-fix-jessie": "eslint -c '.eslintrc-jessie.js' --fix '**/*.js'", | ||
"lint-jessie": "eslint -c '.eslintrc-jessie.js' '**/*.js'", | ||
"typecheck": "tsc" | ||
"lint": "yarn lint:eslint # && yarn lint:types", | ||
"lint:eslint": "eslint '**/*.{js,ts}'", | ||
"lint:fix": "eslint --fix '**/*.{js,ts}'", | ||
"lint:types": "tsc" | ||
}, | ||
"dependencies": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. moving the |
||
"@agoric/ertp": "0.16.3-u13.0", | ||
"@agoric/zoe": "0.26.3-u13.0", | ||
Comment on lines
+22
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you checked that the resulting bundle is a reasonable size? that we have just 1 version of each endo package? |
||
"@endo/far": "0.2.18", | ||
"@endo/marshal": "0.8.5", | ||
"@endo/patterns": "0.2.2" | ||
}, | ||
"devDependencies": { | ||
"@agoric/deploy-script-support": "^0.10.4-u12.0", | ||
"@agoric/deploy-script-support": "^0.10.4-u13.0", | ||
"@agoric/eslint-config": "dev", | ||
"@endo/bundle-source": "^2.8.0", | ||
"@endo/bundle-source": "2.5.2-upstream-rollup", | ||
"@endo/eslint-plugin": "^0.5.2", | ||
"@endo/init": "^0.5.60", | ||
"@endo/promise-kit": "^1.0.1", | ||
"@endo/promise-kit": "0.2.56", | ||
"@endo/ses-ava": "^0.2.44", | ||
"@jessie.js/eslint-plugin": "^0.4.0", | ||
"@typescript-eslint/eslint-plugin": "^6.7.0", | ||
"@typescript-eslint/parser": "^6.7.0", | ||
"agoric": "^0.21.2-u12.0", | ||
"agoric": "^0.22.0-u13.0", | ||
"ava": "^5.3.0", | ||
"eslint": "^8.47.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
|
@@ -44,20 +50,8 @@ | |
"import-meta-resolve": "^2.2.1", | ||
"prettier": "^3.0.3", | ||
"prettier-plugin-jsdoc": "^1.0.0", | ||
"type-coverage": "^2.26.3", | ||
"typescript": "~5.2.2" | ||
}, | ||
"resolutions": { | ||
"@babel/code-frame": "7.18.6", | ||
"@babel/highlight": "7.22.5" | ||
}, | ||
"dependencies": { | ||
"@agoric/ertp": "^0.16.3-u12.0", | ||
"@agoric/zoe": "^0.26.3-u12.0", | ||
"@endo/far": "^0.2.22", | ||
"@endo/marshal": "^0.8.9", | ||
"@endo/patterns": "^0.2.5" | ||
}, | ||
"ava": { | ||
"files": [ | ||
"test/**/test-*.js" | ||
|
@@ -112,11 +106,14 @@ | |
"varsIgnorePattern": "^_" | ||
} | ||
] | ||
} | ||
}, | ||
"ignorePatterns": [ | ||
"bundles" | ||
] | ||
}, | ||
"prettier": { | ||
"trailingComma": "all", | ||
"arrowParens": "avoid", | ||
"singleQuote": true | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// @ts-check | ||
import { E } from '@endo/eventual-send'; | ||
import { E } from '@endo/far'; | ||
import { makeMarshal } from '@endo/marshal'; | ||
import { AmountMath } from '@agoric/ertp/src/amountMath.js'; | ||
import '@agoric/zoe/exported.js'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These bloat bundles. Ugh. Please add an important |
||
|
@@ -122,7 +122,8 @@ harden(gameManifest); | |
|
||
/** | ||
* @param {{restoreRef: (ref: unknown) => Promise<unknown> }} r | ||
* @param {{ game1Ref: unknown }} g */ | ||
* @param {{ game1Ref: unknown }} g | ||
*/ | ||
export const getManifestForGame1 = ({ restoreRef }, { game1Ref }) => { | ||
return harden({ | ||
manifest: gameManifest, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
node_modules/agoric/bin/agoric
necessary? Doesn't yarn arrange foragoric
to work?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scope of this PR seems to be expanding :)
Do you plan to keep the commits separate or squash?