From ca321560ea610dd9c7accf35526537fe18f9dfd0 Mon Sep 17 00:00:00 2001 From: Mujahid Khan <106528609+mujahidkay@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:24:53 +0500 Subject: [PATCH 1/7] lint: add/bump packages + config --- contract/package.json | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/contract/package.json b/contract/package.json index f21072c..aef074d 100644 --- a/contract/package.json +++ b/contract/package.json @@ -13,7 +13,7 @@ "start": "yarn docker:make clean start-contract", "build": "agoric run scripts/build-contract-deployer.js", "test": "ava --verbose", - "lint": "eslint '**/*.js'", + "lint": "tsc && eslint '**/*.js'", "lint:fix": "eslint --fix '**/*.js'", "make:waitForBlocks": "make wait-for-blocks" }, @@ -31,21 +31,22 @@ "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-jessie": "^0.0.6", - "eslint-config-prettier": "^9.0.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-ava": "^14.0.0", "eslint-plugin-github": "^4.10.0", - "eslint-plugin-import": "^2.25.3", - "eslint-plugin-jsdoc": "^46.4.3", - "eslint-plugin-prettier": "^5.0.0", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-jsdoc": "^48.5.2", + "eslint-plugin-prettier": "^5.1.3", "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", - "typescript-eslint": "^7.13.1" + "typescript": "^5.5.3", + "typescript-eslint": "^7.2.0" }, "dependencies": { "@agoric/ertp": "^0.16.3-u16.1", + "@agoric/vats": "dev", "@agoric/zoe": "^0.26.3-u16.1", "@endo/far": "^1.1.5", "@endo/marshal": "^1.5.3", @@ -69,13 +70,35 @@ }, "homepage": "https://github.com/Agoric/dapp-offer-up#readme", "eslintConfig": { + "env": { + "node": true + }, + "parser": "@typescript-eslint/parser", "parserOptions": { "sourceType": "module", "ecmaVersion": 2021 }, + "ignorePatterns": "bundles/**.js", "extends": [ + "plugin:@typescript-eslint/recommended", "@agoric" - ] + ], + "plugins": [ + "@typescript-eslint", + "prettier" + ], + "rules": { + "prettier/prettier": "warn", + "@typescript-eslint/no-unused-vars": [ + "error", + { + "vars": "all", + "args": "all", + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_" + } + ] + } }, "prettier": { "trailingComma": "all", From c7fdd1a05faeb8fd553bcd32eb66bae717d99790 Mon Sep 17 00:00:00 2001 From: Mujahid Khan <106528609+mujahidkay@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:25:38 +0500 Subject: [PATCH 2/7] chore: update yarn.lock --- yarn.lock | 667 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 631 insertions(+), 36 deletions(-) diff --git a/yarn.lock b/yarn.lock index d8d00f1..720e4f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -62,6 +62,21 @@ __metadata: languageName: node linkType: hard +"@agoric/base-zone@npm:0.1.1-dev-3656582.0+3656582": + version: 0.1.1-dev-3656582.0 + resolution: "@agoric/base-zone@npm:0.1.1-dev-3656582.0" + dependencies: + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@endo/common": "npm:^1.2.5" + "@endo/errors": "npm:^1.2.5" + "@endo/exo": "npm:^1.5.3" + "@endo/far": "npm:^1.1.5" + "@endo/pass-style": "npm:^1.4.3" + "@endo/patterns": "npm:^1.4.3" + checksum: 10c0/340f7285d53df60c23d8685b045e9e1cf8f91a5ea7d58ddfd7980393611c8191e67b7917e5c5ca87acf720f333de15fe2d259dca5e58399ef72086c2e997f414 + languageName: node + linkType: hard + "@agoric/base-zone@npm:0.1.1-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.1.1-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/base-zone@npm:0.1.1-upgrade-16a-dev-fb592e4.0" @@ -156,6 +171,16 @@ __metadata: languageName: node linkType: hard +"@agoric/cosmic-proto@npm:0.4.1-dev-3656582.0+3656582": + version: 0.4.1-dev-3656582.0 + resolution: "@agoric/cosmic-proto@npm:0.4.1-dev-3656582.0" + dependencies: + "@endo/base64": "npm:^1.0.7" + "@endo/init": "npm:^1.1.4" + checksum: 10c0/5df11a9596b2e248b4add1d182aa6cfa2f859d37cb11ada9fe091af87eb4b745163a24a4a0ccc4351feab075260af881ada225f4c73931348237a9e62b477ed7 + languageName: node + linkType: hard + "@agoric/cosmic-proto@npm:0.4.1-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.4.1-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/cosmic-proto@npm:0.4.1-upgrade-16a-dev-fb592e4.0" @@ -194,6 +219,25 @@ __metadata: languageName: node linkType: hard +"@agoric/ertp@npm:0.16.3-dev-3656582.0+3656582": + version: 0.16.3-dev-3656582.0 + resolution: "@agoric/ertp@npm:0.16.3-dev-3656582.0" + dependencies: + "@agoric/notifier": "npm:0.6.3-dev-3656582.0+3656582" + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@agoric/vat-data": "npm:0.5.3-dev-3656582.0+3656582" + "@agoric/zone": "npm:0.2.3-dev-3656582.0+3656582" + "@endo/errors": "npm:^1.2.5" + "@endo/eventual-send": "npm:^1.2.5" + "@endo/far": "npm:^1.1.5" + "@endo/marshal": "npm:^1.5.3" + "@endo/nat": "npm:^5.0.10" + "@endo/patterns": "npm:^1.4.3" + "@endo/promise-kit": "npm:^1.1.5" + checksum: 10c0/737e95a555641acdaf77aae56b1e943009199c80eaa73a6dfd2acc9eec2bd12079f1f5253eebedeae2a369022146c303a1d0dbffdb163a3791eec9ba12789a75 + languageName: node + linkType: hard + "@agoric/ertp@npm:0.16.3-upgrade-16a-dev-fb592e4.0+fb592e4, @agoric/ertp@npm:^0.16.3-dev-e2e36cc.0, @agoric/ertp@npm:^0.16.3-u16.1": version: 0.16.3-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/ertp@npm:0.16.3-upgrade-16a-dev-fb592e4.0" @@ -251,6 +295,30 @@ __metadata: languageName: node linkType: hard +"@agoric/governance@npm:0.10.4-dev-3656582.0+3656582": + version: 0.10.4-dev-3656582.0 + resolution: "@agoric/governance@npm:0.10.4-dev-3656582.0" + dependencies: + "@agoric/ertp": "npm:0.16.3-dev-3656582.0+3656582" + "@agoric/internal": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/notifier": "npm:0.6.3-dev-3656582.0+3656582" + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@agoric/time": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/vat-data": "npm:0.5.3-dev-3656582.0+3656582" + "@agoric/zoe": "npm:0.26.3-dev-3656582.0+3656582" + "@endo/bundle-source": "npm:^3.4.0" + "@endo/captp": "npm:^4.3.0" + "@endo/errors": "npm:^1.2.5" + "@endo/eventual-send": "npm:^1.2.5" + "@endo/far": "npm:^1.1.5" + "@endo/marshal": "npm:^1.5.3" + "@endo/nat": "npm:^5.0.10" + "@endo/promise-kit": "npm:^1.1.5" + import-meta-resolve: "npm:^2.2.1" + checksum: 10c0/a3edfe64fb21d44c532c07065e611bf4cbe6018c0909f954148750cfcd748d890c1bfc2bb5bb2d249e092c28c030a571b8ff54b9a485db9a5bdd6d38ab7569dc + languageName: node + linkType: hard + "@agoric/governance@npm:0.10.4-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.10.4-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/governance@npm:0.10.4-upgrade-16a-dev-fb592e4.0" @@ -356,6 +424,26 @@ __metadata: languageName: node linkType: hard +"@agoric/internal@npm:0.3.3-dev-3656582.0+3656582": + version: 0.3.3-dev-3656582.0 + resolution: "@agoric/internal@npm:0.3.3-dev-3656582.0" + dependencies: + "@agoric/base-zone": "npm:0.1.1-dev-3656582.0+3656582" + "@endo/common": "npm:^1.2.5" + "@endo/errors": "npm:^1.2.5" + "@endo/far": "npm:^1.1.5" + "@endo/init": "npm:^1.1.4" + "@endo/marshal": "npm:^1.5.3" + "@endo/pass-style": "npm:^1.4.3" + "@endo/patterns": "npm:^1.4.3" + "@endo/promise-kit": "npm:^1.1.5" + "@endo/stream": "npm:^1.2.5" + anylogger: "npm:^0.21.0" + jessie.js: "npm:^0.3.4" + checksum: 10c0/4da8be0b4859423f55384673edefbafb4b508f1407b7f126305050b95d170833664af98f47577261b6b554ad6f7d3bb76a9d43a6ba1dbd07459e937f35eb3909 + languageName: node + linkType: hard + "@agoric/internal@npm:0.4.0-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.4.0-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/internal@npm:0.4.0-upgrade-16a-dev-fb592e4.0" @@ -392,6 +480,17 @@ __metadata: languageName: node linkType: hard +"@agoric/kmarshal@npm:0.1.1-dev-3656582.0+3656582": + version: 0.1.1-dev-3656582.0 + resolution: "@agoric/kmarshal@npm:0.1.1-dev-3656582.0" + dependencies: + "@endo/errors": "npm:^1.2.5" + "@endo/far": "npm:^1.1.5" + "@endo/marshal": "npm:^1.5.3" + checksum: 10c0/6544c0dc0a7defc832b84f7a64a85e8fecfa808d192256ad5b3b340532c82bc8b8d782c4b2df517d8d05dbb7e5f9d619fc6667ed025a4006ed653ad07ef5a98d + languageName: node + linkType: hard + "@agoric/kmarshal@npm:0.1.1-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.1.1-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/kmarshal@npm:0.1.1-upgrade-16a-dev-fb592e4.0" @@ -403,6 +502,23 @@ __metadata: languageName: node linkType: hard +"@agoric/network@npm:0.1.1-dev-3656582.0+3656582": + version: 0.1.1-dev-3656582.0 + resolution: "@agoric/network@npm:0.1.1-dev-3656582.0" + dependencies: + "@agoric/internal": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@agoric/vat-data": "npm:0.5.3-dev-3656582.0+3656582" + "@endo/base64": "npm:^1.0.7" + "@endo/errors": "npm:^1.2.5" + "@endo/far": "npm:^1.1.5" + "@endo/pass-style": "npm:^1.4.3" + "@endo/patterns": "npm:^1.4.3" + "@endo/promise-kit": "npm:^1.1.5" + checksum: 10c0/7ca4078715d1d34cfe67716f1f272b758c5001115a2e51611ed8a59b02e92b6fff2f381a0e5c39b966b1589566180385bc7e320483e172d9ad889ab7d79c238f + languageName: node + linkType: hard + "@agoric/network@npm:0.2.0-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.2.0-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/network@npm:0.2.0-upgrade-16a-dev-fb592e4.0" @@ -515,6 +631,19 @@ __metadata: languageName: node linkType: hard +"@agoric/store@npm:0.9.3-dev-3656582.0+3656582": + version: 0.9.3-dev-3656582.0 + resolution: "@agoric/store@npm:0.9.3-dev-3656582.0" + dependencies: + "@endo/errors": "npm:^1.2.5" + "@endo/exo": "npm:^1.5.3" + "@endo/marshal": "npm:^1.5.3" + "@endo/pass-style": "npm:^1.4.3" + "@endo/patterns": "npm:^1.4.3" + checksum: 10c0/d204d931859be4458f42ffcede73c5bc36ecc3f992095c7d31cee23bfb48e3b10874fee442aa7d179f110856a436becff93dbeea1cd05a1ed39ecf2cd13da9aa + languageName: node + linkType: hard + "@agoric/store@npm:0.9.3-upgrade-16a-dev-fb592e4.0+fb592e4, @agoric/store@npm:^0.9.3-u16.0": version: 0.9.3-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/store@npm:0.9.3-upgrade-16a-dev-fb592e4.0" @@ -545,6 +674,21 @@ __metadata: languageName: node linkType: hard +"@agoric/swing-store@npm:0.9.2-dev-3656582.0+3656582": + version: 0.9.2-dev-3656582.0 + resolution: "@agoric/swing-store@npm:0.9.2-dev-3656582.0" + dependencies: + "@agoric/internal": "npm:0.3.3-dev-3656582.0+3656582" + "@endo/base64": "npm:^1.0.7" + "@endo/bundle-source": "npm:^3.4.0" + "@endo/check-bundle": "npm:^1.0.9" + "@endo/errors": "npm:^1.2.5" + "@endo/nat": "npm:^5.0.10" + better-sqlite3: "npm:^9.1.1" + checksum: 10c0/7ba82904b74e43165f21c75e147f975ec3c1c930dcc3cd127a040d00c888c97face732609efc1e97dbcdc5c55409fd8295bcb95f40ff99214e0faf90e17c24fc + languageName: node + linkType: hard + "@agoric/swing-store@npm:0.9.2-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.9.2-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/swing-store@npm:0.9.2-upgrade-16a-dev-fb592e4.0" @@ -575,6 +719,27 @@ __metadata: languageName: node linkType: hard +"@agoric/swingset-liveslots@npm:0.10.3-dev-3656582.0+3656582": + version: 0.10.3-dev-3656582.0 + resolution: "@agoric/swingset-liveslots@npm:0.10.3-dev-3656582.0" + dependencies: + "@agoric/internal": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@endo/env-options": "npm:^1.1.6" + "@endo/errors": "npm:^1.2.5" + "@endo/eventual-send": "npm:^1.2.5" + "@endo/exo": "npm:^1.5.3" + "@endo/far": "npm:^1.1.5" + "@endo/init": "npm:^1.1.4" + "@endo/marshal": "npm:^1.5.3" + "@endo/nat": "npm:^5.0.10" + "@endo/pass-style": "npm:^1.4.3" + "@endo/patterns": "npm:^1.4.3" + "@endo/promise-kit": "npm:^1.1.5" + checksum: 10c0/7795029b568637e07d236ef3ab18dd7fed1dc1033c49211fb30ffde7f5d83119517c91da853a58be95c1be2f132f9f9824a76a5c18f719ee941c19960941df78 + languageName: node + linkType: hard + "@agoric/swingset-liveslots@npm:0.10.3-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.10.3-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/swingset-liveslots@npm:0.10.3-upgrade-16a-dev-fb592e4.0" @@ -621,6 +786,54 @@ __metadata: languageName: node linkType: hard +"@agoric/swingset-vat@npm:0.32.3-dev-3656582.0+3656582": + version: 0.32.3-dev-3656582.0 + resolution: "@agoric/swingset-vat@npm:0.32.3-dev-3656582.0" + dependencies: + "@agoric/internal": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/kmarshal": "npm:0.1.1-dev-3656582.0+3656582" + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@agoric/swing-store": "npm:0.9.2-dev-3656582.0+3656582" + "@agoric/swingset-liveslots": "npm:0.10.3-dev-3656582.0+3656582" + "@agoric/swingset-xsnap-supervisor": "npm:0.10.3-dev-3656582.0+3656582" + "@agoric/time": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/vat-data": "npm:0.5.3-dev-3656582.0+3656582" + "@agoric/xsnap": "npm:0.14.3-dev-3656582.0+3656582" + "@agoric/xsnap-lockdown": "npm:0.14.1-dev-3656582.0+3656582" + "@endo/base64": "npm:^1.0.7" + "@endo/bundle-source": "npm:^3.4.0" + "@endo/captp": "npm:^4.3.0" + "@endo/check-bundle": "npm:^1.0.9" + "@endo/compartment-mapper": "npm:^1.2.2" + "@endo/errors": "npm:^1.2.5" + "@endo/eventual-send": "npm:^1.2.5" + "@endo/far": "npm:^1.1.5" + "@endo/import-bundle": "npm:^1.2.2" + "@endo/init": "npm:^1.1.4" + "@endo/marshal": "npm:^1.5.3" + "@endo/nat": "npm:^5.0.10" + "@endo/pass-style": "npm:^1.4.3" + "@endo/patterns": "npm:^1.4.3" + "@endo/promise-kit": "npm:^1.1.5" + "@endo/ses-ava": "npm:^1.2.5" + "@endo/stream": "npm:^1.2.5" + "@endo/zip": "npm:^1.0.7" + ansi-styles: "npm:^6.2.1" + anylogger: "npm:^0.21.0" + better-sqlite3: "npm:^9.1.1" + import-meta-resolve: "npm:^2.2.1" + microtime: "npm:^3.1.0" + semver: "npm:^6.3.0" + tmp: "npm:^0.2.1" + yargs-parser: "npm:^21.1.1" + peerDependencies: + ava: ^5.3.0 + bin: + vat: bin/vat + checksum: 10c0/59f214b2fc4ddf3cb9216c1c33723f192c10f81899d40fd94a6a672ea231608ec6b23180e7ce1338ab9f1e25eaea2e5cfe22f2354eac5ac7be1c765e0b699771 + languageName: node + linkType: hard + "@agoric/swingset-vat@npm:0.33.0-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.33.0-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/swingset-vat@npm:0.33.0-upgrade-16a-dev-fb592e4.0" @@ -710,6 +923,13 @@ __metadata: languageName: node linkType: hard +"@agoric/swingset-xsnap-supervisor@npm:0.10.3-dev-3656582.0+3656582": + version: 0.10.3-dev-3656582.0 + resolution: "@agoric/swingset-xsnap-supervisor@npm:0.10.3-dev-3656582.0" + checksum: 10c0/d68bd9bb52d5b83d4718b30980ae334c81625bec74867af3fa2d765009f0a726487bd1acaebc689fe8dad8cb86eb65511da089363ca54f6015d11ca0abf93148 + languageName: node + linkType: hard + "@agoric/swingset-xsnap-supervisor@npm:0.10.3-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.10.3-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/swingset-xsnap-supervisor@npm:0.10.3-upgrade-16a-dev-fb592e4.0" @@ -767,6 +987,18 @@ __metadata: languageName: node linkType: hard +"@agoric/time@npm:0.3.3-dev-3656582.0+3656582": + version: 0.3.3-dev-3656582.0 + resolution: "@agoric/time@npm:0.3.3-dev-3656582.0" + dependencies: + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@endo/errors": "npm:^1.2.5" + "@endo/nat": "npm:^5.0.10" + "@endo/patterns": "npm:^1.4.3" + checksum: 10c0/caa0ed777deb33808d9822a3d12fd02c9a1772df6341196065a90a6267440bce8fceedc592c40738fa31deadeb4cb9eed69a182d029c9d4e6d2dc24babb3e847 + languageName: node + linkType: hard + "@agoric/time@npm:0.3.3-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.3.3-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/time@npm:0.3.3-upgrade-16a-dev-fb592e4.0" @@ -803,6 +1035,20 @@ __metadata: languageName: node linkType: hard +"@agoric/vat-data@npm:0.5.3-dev-3656582.0+3656582": + version: 0.5.3-dev-3656582.0 + resolution: "@agoric/vat-data@npm:0.5.3-dev-3656582.0" + dependencies: + "@agoric/base-zone": "npm:0.1.1-dev-3656582.0+3656582" + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@agoric/swingset-liveslots": "npm:0.10.3-dev-3656582.0+3656582" + "@endo/errors": "npm:^1.2.5" + "@endo/exo": "npm:^1.5.3" + "@endo/patterns": "npm:^1.4.3" + checksum: 10c0/ad05b79b42b5b747d2f38c542590a2b2bedc24d1e6ee19fae2a52083b51aff3ea00bc121b2e62600611b13a3e7a7f645ba8e34f97c4c45c0e1856ee5575caf9a + languageName: node + linkType: hard + "@agoric/vat-data@npm:0.5.3-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.5.3-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/vat-data@npm:0.5.3-upgrade-16a-dev-fb592e4.0" @@ -887,6 +1133,53 @@ __metadata: languageName: node linkType: hard +"@agoric/vats@npm:dev": + version: 0.15.2-dev-3656582.0 + resolution: "@agoric/vats@npm:0.15.2-dev-3656582.0" + dependencies: + "@agoric/cosmic-proto": "npm:0.4.1-dev-3656582.0+3656582" + "@agoric/ertp": "npm:0.16.3-dev-3656582.0+3656582" + "@agoric/governance": "npm:0.10.4-dev-3656582.0+3656582" + "@agoric/internal": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/network": "npm:0.1.1-dev-3656582.0+3656582" + "@agoric/notifier": "npm:0.6.3-dev-3656582.0+3656582" + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@agoric/swingset-vat": "npm:0.32.3-dev-3656582.0+3656582" + "@agoric/time": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/vat-data": "npm:0.5.3-dev-3656582.0+3656582" + "@agoric/vow": "npm:0.1.1-dev-3656582.0+3656582" + "@agoric/zoe": "npm:0.26.3-dev-3656582.0+3656582" + "@agoric/zone": "npm:0.2.3-dev-3656582.0+3656582" + "@endo/errors": "npm:^1.2.5" + "@endo/far": "npm:^1.1.5" + "@endo/import-bundle": "npm:^1.2.2" + "@endo/marshal": "npm:^1.5.3" + "@endo/nat": "npm:^5.0.10" + "@endo/pass-style": "npm:^1.4.3" + "@endo/patterns": "npm:^1.4.3" + "@endo/promise-kit": "npm:^1.1.5" + import-meta-resolve: "npm:^2.2.1" + jessie.js: "npm:^0.3.4" + checksum: 10c0/a7964b8cbf60084ef467cab30180cfee1837ef84fd7ebf690efe29498d4ede27e85ae3f98c1fcd20ab2000ff4ba805a99a74211f31db845874145381a28bb35a + languageName: node + linkType: hard + +"@agoric/vow@npm:0.1.1-dev-3656582.0+3656582": + version: 0.1.1-dev-3656582.0 + resolution: "@agoric/vow@npm:0.1.1-dev-3656582.0" + dependencies: + "@agoric/base-zone": "npm:0.1.1-dev-3656582.0+3656582" + "@agoric/internal": "npm:0.3.3-dev-3656582.0+3656582" + "@endo/env-options": "npm:^1.1.6" + "@endo/errors": "npm:^1.2.5" + "@endo/eventual-send": "npm:^1.2.5" + "@endo/pass-style": "npm:^1.4.3" + "@endo/patterns": "npm:^1.4.3" + "@endo/promise-kit": "npm:^1.1.5" + checksum: 10c0/dbafd8faef90546ecab457ffb0d0658072ec154f7d3999950db613bcdf25ec9a61f4ecf0abd797a4425ad62ee2754eea97e9f2e497a248f9a9a7ece48e1cde0c + languageName: node + linkType: hard + "@agoric/vow@npm:0.2.0-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.2.0-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/vow@npm:0.2.0-upgrade-16a-dev-fb592e4.0" @@ -920,6 +1213,13 @@ __metadata: languageName: node linkType: hard +"@agoric/xsnap-lockdown@npm:0.14.1-dev-3656582.0+3656582": + version: 0.14.1-dev-3656582.0 + resolution: "@agoric/xsnap-lockdown@npm:0.14.1-dev-3656582.0" + checksum: 10c0/002097556407ff7c7ea8bb689746ecd7ee53655cdcbf5dac215943824068aa2940df4b441e342b18e423d370a6b285afc3d5047ad7bcd62a72d80bab3eb515f6 + languageName: node + linkType: hard + "@agoric/xsnap-lockdown@npm:0.14.1-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.14.1-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/xsnap-lockdown@npm:0.14.1-upgrade-16a-dev-fb592e4.0" @@ -934,6 +1234,29 @@ __metadata: languageName: node linkType: hard +"@agoric/xsnap@npm:0.14.3-dev-3656582.0+3656582": + version: 0.14.3-dev-3656582.0 + resolution: "@agoric/xsnap@npm:0.14.3-dev-3656582.0" + dependencies: + "@agoric/internal": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/xsnap-lockdown": "npm:0.14.1-dev-3656582.0+3656582" + "@endo/bundle-source": "npm:^3.4.0" + "@endo/errors": "npm:^1.2.5" + "@endo/eventual-send": "npm:^1.2.5" + "@endo/init": "npm:^1.1.4" + "@endo/netstring": "npm:^1.0.10" + "@endo/promise-kit": "npm:^1.1.5" + "@endo/stream": "npm:^1.2.5" + "@endo/stream-node": "npm:^1.1.5" + glob: "npm:^7.1.6" + tmp: "npm:^0.2.1" + bin: + ava-xs: src/ava-xs.js + xsrepl: src/xsrepl + checksum: 10c0/b904940a69a5176746241dae1ef123042056c13a55d34fae1acacfb3f5d3499a12b9c9a20cc04e611a85087bce31bd9451c2f38b46acc2f9011bf1323dea6ebb + languageName: node + linkType: hard + "@agoric/xsnap@npm:0.14.3-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.14.3-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/xsnap@npm:0.14.3-upgrade-16a-dev-fb592e4.0" @@ -980,6 +1303,39 @@ __metadata: languageName: node linkType: hard +"@agoric/zoe@npm:0.26.3-dev-3656582.0+3656582": + version: 0.26.3-dev-3656582.0 + resolution: "@agoric/zoe@npm:0.26.3-dev-3656582.0" + dependencies: + "@agoric/base-zone": "npm:0.1.1-dev-3656582.0+3656582" + "@agoric/ertp": "npm:0.16.3-dev-3656582.0+3656582" + "@agoric/internal": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/notifier": "npm:0.6.3-dev-3656582.0+3656582" + "@agoric/store": "npm:0.9.3-dev-3656582.0+3656582" + "@agoric/swingset-liveslots": "npm:0.10.3-dev-3656582.0+3656582" + "@agoric/swingset-vat": "npm:0.32.3-dev-3656582.0+3656582" + "@agoric/time": "npm:0.3.3-dev-3656582.0+3656582" + "@agoric/vat-data": "npm:0.5.3-dev-3656582.0+3656582" + "@agoric/vow": "npm:0.1.1-dev-3656582.0+3656582" + "@agoric/zone": "npm:0.2.3-dev-3656582.0+3656582" + "@endo/bundle-source": "npm:^3.4.0" + "@endo/captp": "npm:^4.3.0" + "@endo/common": "npm:^1.2.5" + "@endo/errors": "npm:^1.2.5" + "@endo/eventual-send": "npm:^1.2.5" + "@endo/exo": "npm:^1.5.3" + "@endo/far": "npm:^1.1.5" + "@endo/import-bundle": "npm:^1.2.2" + "@endo/marshal": "npm:^1.5.3" + "@endo/nat": "npm:^5.0.10" + "@endo/pass-style": "npm:^1.4.3" + "@endo/patterns": "npm:^1.4.3" + "@endo/promise-kit": "npm:^1.1.5" + yargs-parser: "npm:^21.1.1" + checksum: 10c0/62f7e58787103b691f81fe5018ad736fe52ba7c3e4ff70ff84d0197493584978e63363bb5c612b7653c2792821735be2e5deb2809a7491278ae8fcf4be730534 + languageName: node + linkType: hard + "@agoric/zoe@npm:0.26.3-upgrade-16a-dev-fb592e4.0+fb592e4, @agoric/zoe@npm:^0.26.3-u16.1": version: 0.26.3-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/zoe@npm:0.26.3-upgrade-16a-dev-fb592e4.0" @@ -1036,6 +1392,19 @@ __metadata: languageName: node linkType: hard +"@agoric/zone@npm:0.2.3-dev-3656582.0+3656582": + version: 0.2.3-dev-3656582.0 + resolution: "@agoric/zone@npm:0.2.3-dev-3656582.0" + dependencies: + "@agoric/base-zone": "npm:0.1.1-dev-3656582.0+3656582" + "@agoric/vat-data": "npm:0.5.3-dev-3656582.0+3656582" + "@endo/errors": "npm:^1.2.5" + "@endo/far": "npm:^1.1.5" + "@endo/pass-style": "npm:^1.4.3" + checksum: 10c0/07d7d4594bb6a88dacb26fad073d1b790c152676f0ffb508f690293600731c553998c422b9a8bf15b451adf2a506c2bfa0c3be441b16ffd5564dffb0a65e16cb + languageName: node + linkType: hard + "@agoric/zone@npm:0.3.0-upgrade-16a-dev-fb592e4.0+fb592e4": version: 0.3.0-upgrade-16a-dev-fb592e4.0 resolution: "@agoric/zone@npm:0.3.0-upgrade-16a-dev-fb592e4.0" @@ -2140,14 +2509,14 @@ __metadata: languageName: node linkType: hard -"@es-joy/jsdoccomment@npm:~0.41.0": - version: 0.41.0 - resolution: "@es-joy/jsdoccomment@npm:0.41.0" +"@es-joy/jsdoccomment@npm:~0.46.0": + version: 0.46.0 + resolution: "@es-joy/jsdoccomment@npm:0.46.0" dependencies: comment-parser: "npm:1.4.1" - esquery: "npm:^1.5.0" + esquery: "npm:^1.6.0" jsdoc-type-pratt-parser: "npm:~4.0.0" - checksum: 10c0/1fa27531eba32e4699664da53a0865aeeda1f7e83ac156fe53b7a6b09d2f3816baa94a34845ff019c10289b09572bda5519ec917e3e241088975477fa880f72d + checksum: 10c0/a7a67936ebf6d9aaf74af018c3ac744769af3552b05ad9b88fca96b2ffdca16e724b0ff497f53634ec4cca81e98d8c471b6b6bde0fa5b725af4222ad9a0707f0 languageName: node linkType: hard @@ -3064,6 +3433,13 @@ __metadata: languageName: node linkType: hard +"@rtsao/scc@npm:^1.1.0": + version: 1.1.0 + resolution: "@rtsao/scc@npm:1.1.0" + checksum: 10c0/b5bcfb0d87f7d1c1c7c0f7693f53b07866ed9fec4c34a97a8c948fb9a7c0082e416ce4d3b60beb4f5e167cbe04cdeefbf6771320f3ede059b9ce91188c409a5b + languageName: node + linkType: hard + "@scure/base@npm:~1.1.0, @scure/base@npm:~1.1.2": version: 1.1.6 resolution: "@scure/base@npm:1.1.6" @@ -4193,7 +4569,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.10.0, acorn@npm:^8.11.3, acorn@npm:^8.2.4, acorn@npm:^8.5.0, acorn@npm:^8.8.2, acorn@npm:^8.9.0": +"acorn@npm:^8.10.0, acorn@npm:^8.11.3, acorn@npm:^8.12.0, acorn@npm:^8.2.4, acorn@npm:^8.5.0, acorn@npm:^8.8.2, acorn@npm:^8.9.0": version: 8.12.1 resolution: "acorn@npm:8.12.1" bin: @@ -4603,6 +4979,20 @@ __metadata: languageName: node linkType: hard +"array-includes@npm:^3.1.8": + version: 3.1.8 + resolution: "array-includes@npm:3.1.8" + dependencies: + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.2" + es-object-atoms: "npm:^1.0.0" + get-intrinsic: "npm:^1.2.4" + is-string: "npm:^1.0.7" + checksum: 10c0/5b1004d203e85873b96ddc493f090c9672fd6c80d7a60b798da8a14bff8a670ff95db5aafc9abc14a211943f05220dacf8ea17638ae0af1a6a47b8c0b48ce370 + languageName: node + linkType: hard + "array-union@npm:^1.0.1": version: 1.0.2 resolution: "array-union@npm:1.0.2" @@ -4639,6 +5029,20 @@ __metadata: languageName: node linkType: hard +"array.prototype.findlastindex@npm:^1.2.5": + version: 1.2.5 + resolution: "array.prototype.findlastindex@npm:1.2.5" + dependencies: + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.2" + es-errors: "npm:^1.3.0" + es-object-atoms: "npm:^1.0.0" + es-shim-unscopables: "npm:^1.0.2" + checksum: 10c0/962189487728b034f3134802b421b5f39e42ee2356d13b42d2ddb0e52057ffdcc170b9524867f4f0611a6f638f4c19b31e14606e8bcbda67799e26685b195aa3 + languageName: node + linkType: hard + "array.prototype.flat@npm:^1.3.1, array.prototype.flat@npm:^1.3.2": version: 1.3.2 resolution: "array.prototype.flat@npm:1.3.2" @@ -6474,6 +6878,18 @@ __metadata: languageName: node linkType: hard +"debug@npm:^4.3.5": + version: 4.3.7 + resolution: "debug@npm:4.3.7" + dependencies: + ms: "npm:^2.1.3" + peerDependenciesMeta: + supports-color: + optional: true + checksum: 10c0/1471db19c3b06d485a622d62f65947a19a23fbd0dd73f7fd3eafb697eec5360cde447fb075919987899b1a2096e85d35d4eb5a4de09a57600ac9cf7e6c8e768b + languageName: node + linkType: hard + "decamelize@npm:^1.2.0": version: 1.2.0 resolution: "decamelize@npm:1.2.0" @@ -7217,6 +7633,13 @@ __metadata: languageName: node linkType: hard +"es-module-lexer@npm:^1.5.3": + version: 1.5.4 + resolution: "es-module-lexer@npm:1.5.4" + checksum: 10c0/300a469488c2f22081df1e4c8398c78db92358496e639b0df7f89ac6455462aaf5d8893939087c1a1cbcbf20eed4610c70e0bcb8f3e4b0d80a5d2611c539408c + languageName: node + linkType: hard + "es-object-atoms@npm:^1.0.0": version: 1.0.0 resolution: "es-object-atoms@npm:1.0.0" @@ -7237,7 +7660,7 @@ __metadata: languageName: node linkType: hard -"es-shim-unscopables@npm:^1.0.0": +"es-shim-unscopables@npm:^1.0.0, es-shim-unscopables@npm:^1.0.2": version: 1.0.2 resolution: "es-shim-unscopables@npm:1.0.2" dependencies: @@ -7505,7 +7928,7 @@ __metadata: languageName: node linkType: hard -"eslint-config-prettier@npm:>=8.0.0, eslint-config-prettier@npm:^9.0.0, eslint-config-prettier@npm:^9.1.0": +"eslint-config-prettier@npm:>=8.0.0, eslint-config-prettier@npm:^9.1.0": version: 9.1.0 resolution: "eslint-config-prettier@npm:9.1.0" peerDependencies: @@ -7550,6 +7973,18 @@ __metadata: languageName: node linkType: hard +"eslint-module-utils@npm:^2.9.0": + version: 2.11.0 + resolution: "eslint-module-utils@npm:2.11.0" + dependencies: + debug: "npm:^3.2.7" + peerDependenciesMeta: + eslint: + optional: true + checksum: 10c0/c1b02e83429878ab22596f17a5ac138e51a520e96a5ef89a5a6698769a2d174ab28302d45eb563c0fc418d21a5842e328c37a6e8f294bf2e64e675ba55203dd7 + languageName: node + linkType: hard + "eslint-plugin-ava@npm:^14.0.0": version: 14.0.0 resolution: "eslint-plugin-ava@npm:14.0.0" @@ -7663,7 +8098,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import@npm:^2.25.2, eslint-plugin-import@npm:^2.25.3": +"eslint-plugin-import@npm:^2.25.2": version: 2.29.0 resolution: "eslint-plugin-import@npm:2.29.0" dependencies: @@ -7690,22 +8125,52 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-jsdoc@npm:^46.4.3": - version: 46.9.0 - resolution: "eslint-plugin-jsdoc@npm:46.9.0" +"eslint-plugin-import@npm:^2.29.1": + version: 2.30.0 + resolution: "eslint-plugin-import@npm:2.30.0" + dependencies: + "@rtsao/scc": "npm:^1.1.0" + array-includes: "npm:^3.1.8" + array.prototype.findlastindex: "npm:^1.2.5" + array.prototype.flat: "npm:^1.3.2" + array.prototype.flatmap: "npm:^1.3.2" + debug: "npm:^3.2.7" + doctrine: "npm:^2.1.0" + eslint-import-resolver-node: "npm:^0.3.9" + eslint-module-utils: "npm:^2.9.0" + hasown: "npm:^2.0.2" + is-core-module: "npm:^2.15.1" + is-glob: "npm:^4.0.3" + minimatch: "npm:^3.1.2" + object.fromentries: "npm:^2.0.8" + object.groupby: "npm:^1.0.3" + object.values: "npm:^1.2.0" + semver: "npm:^6.3.1" + tsconfig-paths: "npm:^3.15.0" + peerDependencies: + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + checksum: 10c0/4c9dcb1f27505c4d5dd891d2b551f56c70786d136aa3992a77e785bdc67c9f60200a2c7fb0ce55b7647fe550b12bc433d5dfa59e2c00ab44227791c5ab86badf + languageName: node + linkType: hard + +"eslint-plugin-jsdoc@npm:^48.5.2": + version: 48.11.0 + resolution: "eslint-plugin-jsdoc@npm:48.11.0" dependencies: - "@es-joy/jsdoccomment": "npm:~0.41.0" + "@es-joy/jsdoccomment": "npm:~0.46.0" are-docs-informative: "npm:^0.0.2" comment-parser: "npm:1.4.1" - debug: "npm:^4.3.4" + debug: "npm:^4.3.5" escape-string-regexp: "npm:^4.0.0" - esquery: "npm:^1.5.0" - is-builtin-module: "npm:^3.2.1" - semver: "npm:^7.5.4" - spdx-expression-parse: "npm:^3.0.1" + espree: "npm:^10.1.0" + esquery: "npm:^1.6.0" + parse-imports: "npm:^2.1.1" + semver: "npm:^7.6.3" + spdx-expression-parse: "npm:^4.0.0" + synckit: "npm:^0.9.1" peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - checksum: 10c0/4566b0f9bda54b446c813cf5ea93ae6d5866cbc4d448cb957b9ce2563f934d3ed2ed4e665e5a870750860a57137a1714c38599c35c60be16dce0f8e5a75b6ff6 + eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 + checksum: 10c0/f78bac109e62f838c14f90ebd572a06a865f2896a16201c9324cb92be25b5ba8deb54ee1d8ea36232ee53a41c177d5d5ac80662c0fe2479d1e1e1e7633385659 languageName: node linkType: hard @@ -7865,6 +8330,13 @@ __metadata: languageName: node linkType: hard +"eslint-visitor-keys@npm:^4.0.0": + version: 4.0.0 + resolution: "eslint-visitor-keys@npm:4.0.0" + checksum: 10c0/76619f42cf162705a1515a6868e6fc7567e185c7063a05621a8ac4c3b850d022661262c21d9f1fc1d144ecf0d5d64d70a3f43c15c3fc969a61ace0fb25698cf5 + languageName: node + linkType: hard + "eslint@npm:^8.57.0": version: 8.57.0 resolution: "eslint@npm:8.57.0" @@ -7920,6 +8392,17 @@ __metadata: languageName: node linkType: hard +"espree@npm:^10.1.0": + version: 10.1.0 + resolution: "espree@npm:10.1.0" + dependencies: + acorn: "npm:^8.12.0" + acorn-jsx: "npm:^5.3.2" + eslint-visitor-keys: "npm:^4.0.0" + checksum: 10c0/52e6feaa77a31a6038f0c0e3fce93010a4625701925b0715cd54a2ae190b3275053a0717db698697b32653788ac04845e489d6773b508d6c2e8752f3c57470a0 + languageName: node + linkType: hard + "espree@npm:^9.0.0, espree@npm:^9.6.0, espree@npm:^9.6.1": version: 9.6.1 resolution: "espree@npm:9.6.1" @@ -7948,7 +8431,7 @@ __metadata: languageName: node linkType: hard -"esquery@npm:^1.4.2, esquery@npm:^1.5.0": +"esquery@npm:^1.4.2": version: 1.5.0 resolution: "esquery@npm:1.5.0" dependencies: @@ -7957,6 +8440,15 @@ __metadata: languageName: node linkType: hard +"esquery@npm:^1.6.0": + version: 1.6.0 + resolution: "esquery@npm:1.6.0" + dependencies: + estraverse: "npm:^5.1.0" + checksum: 10c0/cb9065ec605f9da7a76ca6dadb0619dfb611e37a81e318732977d90fab50a256b95fee2d925fba7c2f3f0523aa16f91587246693bc09bc34d5a59575fe6e93d2 + languageName: node + linkType: hard + "esrecurse@npm:^4.3.0": version: 4.3.0 resolution: "esrecurse@npm:4.3.0" @@ -9820,7 +10312,7 @@ __metadata: languageName: node linkType: hard -"is-builtin-module@npm:^3.1.0, is-builtin-module@npm:^3.2.1": +"is-builtin-module@npm:^3.1.0": version: 3.2.1 resolution: "is-builtin-module@npm:3.2.1" dependencies: @@ -9856,6 +10348,15 @@ __metadata: languageName: node linkType: hard +"is-core-module@npm:^2.15.1": + version: 2.15.1 + resolution: "is-core-module@npm:2.15.1" + dependencies: + hasown: "npm:^2.0.2" + checksum: 10c0/53432f10c69c40bfd2fa8914133a68709ff9498c86c3bf5fca3cdf3145a56fd2168cbf4a43b29843a6202a120a5f9c5ffba0a4322e1e3441739bc0b641682612 + languageName: node + linkType: hard + "is-data-view@npm:^1.0.1": version: 1.0.1 resolution: "is-data-view@npm:1.0.1" @@ -12100,6 +12601,18 @@ __metadata: languageName: node linkType: hard +"object.fromentries@npm:^2.0.8": + version: 2.0.8 + resolution: "object.fromentries@npm:2.0.8" + dependencies: + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.2" + es-object-atoms: "npm:^1.0.0" + checksum: 10c0/cd4327e6c3369cfa805deb4cbbe919bfb7d3aeebf0bcaba291bb568ea7169f8f8cdbcabe2f00b40db0c20cd20f08e11b5f3a5a36fb7dd3fe04850c50db3bf83b + languageName: node + linkType: hard + "object.getownpropertydescriptors@npm:^2.0.3": version: 2.1.8 resolution: "object.getownpropertydescriptors@npm:2.1.8" @@ -12127,6 +12640,17 @@ __metadata: languageName: node linkType: hard +"object.groupby@npm:^1.0.3": + version: 1.0.3 + resolution: "object.groupby@npm:1.0.3" + dependencies: + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.2" + checksum: 10c0/60d0455c85c736fbfeda0217d1a77525956f76f7b2495edeca9e9bbf8168a45783199e77b894d30638837c654d0cc410e0e02cbfcf445bc8de71c3da1ede6a9c + languageName: node + linkType: hard + "object.values@npm:^1.1.6, object.values@npm:^1.1.7": version: 1.1.7 resolution: "object.values@npm:1.1.7" @@ -12138,6 +12662,17 @@ __metadata: languageName: node linkType: hard +"object.values@npm:^1.2.0": + version: 1.2.0 + resolution: "object.values@npm:1.2.0" + dependencies: + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-object-atoms: "npm:^1.0.0" + checksum: 10c0/15809dc40fd6c5529501324fec5ff08570b7d70fb5ebbe8e2b3901afec35cf2b3dc484d1210c6c642cd3e7e0a5e18dd1d6850115337fef46bdae14ab0cb18ac3 + languageName: node + linkType: hard + "obuf@npm:^1.0.0, obuf@npm:^1.1.2": version: 1.1.2 resolution: "obuf@npm:1.1.2" @@ -12152,6 +12687,7 @@ __metadata: "@agoric/deploy-script-support": "npm:^0.10.4-u16.2" "@agoric/ertp": "npm:^0.16.3-u16.1" "@agoric/eslint-config": "npm:^0.4.1-u16.0" + "@agoric/vats": "npm:dev" "@agoric/zoe": "npm:^0.26.3-u16.1" "@endo/bundle-source": "npm:^3.4.0" "@endo/eslint-plugin": "npm:^2.2.1" @@ -12167,18 +12703,18 @@ __metadata: eslint: "npm:^8.57.0" eslint-config-airbnb-base: "npm:^15.0.0" eslint-config-jessie: "npm:^0.0.6" - eslint-config-prettier: "npm:^9.0.0" + eslint-config-prettier: "npm:^9.1.0" eslint-plugin-ava: "npm:^14.0.0" eslint-plugin-github: "npm:^4.10.0" - eslint-plugin-import: "npm:^2.25.3" - eslint-plugin-jsdoc: "npm:^46.4.3" - eslint-plugin-prettier: "npm:^5.0.0" + eslint-plugin-import: "npm:^2.29.1" + eslint-plugin-jsdoc: "npm:^48.5.2" + eslint-plugin-prettier: "npm:^5.1.3" import-meta-resolve: "npm:^2.2.1" prettier: "npm:^3.0.3" prettier-plugin-jsdoc: "npm:^1.0.0" type-coverage: "npm:^2.26.3" - typescript: "npm:~5.2.2" - typescript-eslint: "npm:^7.13.1" + typescript: "npm:^5.5.3" + typescript-eslint: "npm:^7.2.0" languageName: unknown linkType: soft @@ -12594,6 +13130,16 @@ __metadata: languageName: node linkType: hard +"parse-imports@npm:^2.1.1": + version: 2.1.1 + resolution: "parse-imports@npm:2.1.1" + dependencies: + es-module-lexer: "npm:^1.5.3" + slashes: "npm:^3.0.12" + checksum: 10c0/c9bb0b4e1823f84f034d2d7bd2b37415b1715a5c963fda14968c706186b48b02c10e97d04bce042b9dcd679b42f29c391ea120799ddf581c7f54786edd99e3a9 + languageName: node + linkType: hard + "parse-json@npm:^5.2.0": version: 5.2.0 resolution: "parse-json@npm:5.2.0" @@ -13914,7 +14460,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0": +"semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.3": version: 7.6.3 resolution: "semver@npm:7.6.3" bin: @@ -14193,6 +14739,13 @@ __metadata: languageName: node linkType: hard +"slashes@npm:^3.0.12": + version: 3.0.12 + resolution: "slashes@npm:3.0.12" + checksum: 10c0/71ca2a1fcd1ab6814b0fdb8cf9c33a3d54321deec2aa8d173510f0086880201446021a9b9e6a18561f7c472b69a2145977c6a8fb9c53a8ff7be31778f203d175 + languageName: node + linkType: hard + "slice-ansi@npm:^3.0.0": version: 3.0.0 resolution: "slice-ansi@npm:3.0.0" @@ -14357,13 +14910,13 @@ __metadata: languageName: node linkType: hard -"spdx-expression-parse@npm:^3.0.1": - version: 3.0.1 - resolution: "spdx-expression-parse@npm:3.0.1" +"spdx-expression-parse@npm:^4.0.0": + version: 4.0.0 + resolution: "spdx-expression-parse@npm:4.0.0" dependencies: spdx-exceptions: "npm:^2.1.0" spdx-license-ids: "npm:^3.0.0" - checksum: 10c0/6f8a41c87759fa184a58713b86c6a8b028250f158159f1d03ed9d1b6ee4d9eefdc74181c8ddc581a341aa971c3e7b79e30b59c23b05d2436d5de1c30bdef7171 + checksum: 10c0/965c487e77f4fb173f1c471f3eef4eb44b9f0321adc7f93d95e7620da31faa67d29356eb02523cd7df8a7fc1ec8238773cdbf9e45bd050329d2b26492771b736 languageName: node linkType: hard @@ -14773,6 +15326,16 @@ __metadata: languageName: node linkType: hard +"synckit@npm:^0.9.1": + version: 0.9.1 + resolution: "synckit@npm:0.9.1" + dependencies: + "@pkgr/core": "npm:^0.1.0" + tslib: "npm:^2.6.2" + checksum: 10c0/d8b89e1bf30ba3ffb469d8418c836ad9c0c062bf47028406b4d06548bc66af97155ea2303b96c93bf5c7c0f0d66153a6fbd6924c76521b434e6a9898982abc2e + languageName: node + linkType: hard + "table@npm:^6.7.1": version: 6.8.1 resolution: "table@npm:6.8.1" @@ -15146,6 +15709,18 @@ __metadata: languageName: node linkType: hard +"tsconfig-paths@npm:^3.15.0": + version: 3.15.0 + resolution: "tsconfig-paths@npm:3.15.0" + dependencies: + "@types/json5": "npm:^0.0.29" + json5: "npm:^1.0.2" + minimist: "npm:^1.2.6" + strip-bom: "npm:^3.0.0" + checksum: 10c0/5b4f301a2b7a3766a986baf8fc0e177eb80bdba6e396792ff92dc23b5bca8bb279fc96517dcaaef63a3b49bebc6c4c833653ec58155780bc906bdbcf7dda0ef5 + languageName: node + linkType: hard + "tslib@npm:1 || 2, tslib@npm:^2.0.1, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.1, tslib@npm:^2.6.2": version: 2.6.2 resolution: "tslib@npm:2.6.2" @@ -15343,7 +15918,7 @@ __metadata: languageName: node linkType: hard -"typescript-eslint@npm:^7.13.1, typescript-eslint@npm:^7.3.1": +"typescript-eslint@npm:^7.13.1, typescript-eslint@npm:^7.2.0, typescript-eslint@npm:^7.3.1": version: 7.18.0 resolution: "typescript-eslint@npm:7.18.0" dependencies: @@ -15359,7 +15934,7 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.0.2, typescript@npm:~5.2.2": +"typescript@npm:^5.0.2": version: 5.2.2 resolution: "typescript@npm:5.2.2" bin: @@ -15369,6 +15944,16 @@ __metadata: languageName: node linkType: hard +"typescript@npm:^5.5.3": + version: 5.6.2 + resolution: "typescript@npm:5.6.2" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/3ed8297a8c7c56b7fec282532503d1ac795239d06e7c4966b42d4330c6cf433a170b53bcf93a130a7f14ccc5235de5560df4f1045eb7f3550b46ebed16d3c5e5 + languageName: node + linkType: hard + "typescript@npm:~5.6.1-rc": version: 5.6.1-rc resolution: "typescript@npm:5.6.1-rc" @@ -15379,7 +15964,7 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A^5.0.2#optional!builtin, typescript@patch:typescript@npm%3A~5.2.2#optional!builtin": +"typescript@patch:typescript@npm%3A^5.0.2#optional!builtin": version: 5.2.2 resolution: "typescript@patch:typescript@npm%3A5.2.2#optional!builtin::version=5.2.2&hash=f3b441" bin: @@ -15389,6 +15974,16 @@ __metadata: languageName: node linkType: hard +"typescript@patch:typescript@npm%3A^5.5.3#optional!builtin": + version: 5.6.2 + resolution: "typescript@patch:typescript@npm%3A5.6.2#optional!builtin::version=5.6.2&hash=8c6c40" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/94eb47e130d3edd964b76da85975601dcb3604b0c848a36f63ac448d0104e93819d94c8bdf6b07c00120f2ce9c05256b8b6092d23cf5cf1c6fa911159e4d572f + languageName: node + linkType: hard + "typescript@patch:typescript@npm%3A~5.6.1-rc#optional!builtin": version: 5.6.1-rc resolution: "typescript@patch:typescript@npm%3A5.6.1-rc#optional!builtin::version=5.6.1-rc&hash=8c6c40" From 7f713c97cd7785eaf23566dc62022d7062f722b4 Mon Sep 17 00:00:00 2001 From: Mujahid Khan <106528609+mujahidkay@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:26:01 +0500 Subject: [PATCH 3/7] lint: add base config --- contract/jsconfig.json | 19 ------------------- contract/tsconfig.json | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 19 deletions(-) delete mode 100644 contract/jsconfig.json create mode 100644 contract/tsconfig.json diff --git a/contract/jsconfig.json b/contract/jsconfig.json deleted file mode 100644 index e7dca00..0000000 --- a/contract/jsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -// This file can contain .js-specific Typescript compiler config. -{ - "compilerOptions": { - "target": "esnext", - "module": "ES2022", - - "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", "test/**/*.js", "exported.js", "globals.d.ts"] -} diff --git a/contract/tsconfig.json b/contract/tsconfig.json new file mode 100644 index 0000000..821ccb5 --- /dev/null +++ b/contract/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "lib": [ + "ESNext", + "DOM" + ], + "checkJs": true, + "strict": true, + "noImplicitAny": false, + "useUnknownInCatchVariables": false, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "outDir": "./dist" + }, + "include": [ + "src", + "test" + ], + "exclude": [ + "node_modules" + ] + } From 0dd57d7c953f38036b8885c6c0961c9028357d32 Mon Sep 17 00:00:00 2001 From: Mujahid Khan <106528609+mujahidkay@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:26:26 +0500 Subject: [PATCH 4/7] lint: ignore bundles and dist --- contract/.eslintignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 contract/.eslintignore diff --git a/contract/.eslintignore b/contract/.eslintignore new file mode 100644 index 0000000..48e24ea --- /dev/null +++ b/contract/.eslintignore @@ -0,0 +1,2 @@ +bundles +dist From 3aca84bdac7340520f3c7dfca1c1f68cd2e686f7 Mon Sep 17 00:00:00 2001 From: Mujahid Khan <106528609+mujahidkay@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:27:01 +0500 Subject: [PATCH 5/7] fix(lint): tests --- contract/test/mintStable.js | 9 ++++++- contract/test/test-build-proposal.js | 22 ++++++++++++++--- contract/test/test-contract.js | 37 +++++++++++++++++----------- 3 files changed, 49 insertions(+), 19 deletions(-) diff --git a/contract/test/mintStable.js b/contract/test/mintStable.js index 78156fc..09a78d0 100644 --- a/contract/test/mintStable.js +++ b/contract/test/mintStable.js @@ -12,7 +12,14 @@ const centralSupplyPath = myRequire.resolve( '@agoric/vats/src/centralSupply.js', ); -/** @typedef {Installation} CentralSupplyInstallation */ +/** + * @import {ERef} from '@endo/far'; + * @import {Payment} from '@agoric/ertp/src/types.js'; + * @import {start} from '@agoric/vats/src/centralSupply.js' + * @import {makeNodeBundleCache} from '@endo/bundle-source/cache.js'; + */ + +/** @typedef {Installation} CentralSupplyInstallation */ /** @typedef {Awaited>} BundleCache */ /** diff --git a/contract/test/test-build-proposal.js b/contract/test/test-build-proposal.js index 85c3edc..72d5016 100644 --- a/contract/test/test-build-proposal.js +++ b/contract/test/test-build-proposal.js @@ -1,13 +1,27 @@ /* eslint-disable import/order -- https://github.com/endojs/endo/issues/1235 */ -import { test } from './prepare-test-env-ava.js'; +import { test as anyTest } from './prepare-test-env-ava.js'; import { execSync } from 'node:child_process'; import { promises as fs } from 'node:fs'; import { makeCompressFile } from './utils.js'; -test.before(t => (t.context.compressFile = makeCompressFile(fs.readFile))); +/** + * @typedef {{ + * compressFile: (path: string) => Promise, + * }} TestContext + */ -test.only('proposal builder generates compressed bundles less than 1MB', async t => { - const stdout = execSync('agoric run scripts/build-contract-deployer.js', { encoding: 'utf8' }); +const test = /** @type {import('ava').TestFn}} */ (anyTest); + +test.before(t => { + t.context = { + compressFile: makeCompressFile(fs.readFile), + }; +}); + +test('proposal builder generates compressed bundles less than 1MB', async t => { + const stdout = execSync('agoric run scripts/build-contract-deployer.js', { + encoding: 'utf8', + }); t.log('agoric run stdout:', stdout); t.truthy(stdout, 'Proposal successfully bundled.'); diff --git a/contract/test/test-contract.js b/contract/test/test-contract.js index 6dc1f6a..d7197f5 100644 --- a/contract/test/test-contract.js +++ b/contract/test/test-contract.js @@ -13,6 +13,7 @@ import { makeCopyBag } from '@endo/patterns'; import { makeNodeBundleCache } from '@endo/bundle-source/cache.js'; import { makeZoeKitForTest } from '@agoric/zoe/tools/setup-zoe.js'; import { AmountMath, makeIssuerKit } from '@agoric/ertp'; +import '@agoric/zoe/src/zoeService/types-ambient.js'; import { makeStableFaucet } from './mintStable.js'; import { startOfferUpContract } from '../src/offer-up-proposal.js'; @@ -22,20 +23,29 @@ import { startOfferUpContract } from '../src/offer-up-proposal.js'; const myRequire = createRequire(import.meta.url); const contractPath = myRequire.resolve(`../src/offer-up.contract.js`); -/** @type {import('ava').TestFn>>} */ -const test = anyTest; +/** @typedef {Awaited>} BundleCache */ -const UNIT6 = 1_000_000n; -const CENT = UNIT6 / 100n; +/** + * @typedef {{ + * zoe: ZoeService, + * bundle: any, + * bundleCache: BundleCache, + * feeMintAccess: FeeMintAccess + * }} TestContext + */ + +const test = /** @type {import('ava').TestFn}} */ (anyTest); /** - * Tests assume access to the zoe service and that contracts are bundled. - * - * See test-bundle-source.js for basic use of bundleSource(). - * Here we use a bundle cache to optimize running tests multiple times. - * - * @param {unknown} _t + * @import {ERef} from '@endo/far'; + * @import {ExecutionContext} from 'ava'; + * @import {Instance} from '@agoric/zoe/src/zoeService/utils.js'; + * @import {Purse} from '@agoric/ertp/src/types.js'; */ + +const UNIT6 = 1_000_000n; +const CENT = UNIT6 / 100n; + const makeTestContext = async _t => { const { zoeService: zoe, feeMintAccess } = makeZoeKitForTest(); @@ -76,15 +86,14 @@ test('Start the contract', async t => { /** * Alice trades by paying the price from the contract's terms. * - * @param {import('ava').ExecutionContext} t + * @param {ExecutionContext} t * @param {ZoeService} zoe - * @param {ERef} instance - * @param {Purse} purse + * @param {ERef>} instance + * @param {Purse<'nat'>} purse * @param {string[]} choices */ const alice = async (t, zoe, instance, purse, choices = ['map', 'scroll']) => { const publicFacet = E(zoe).getPublicFacet(instance); - // @ts-expect-error Promise seems to work const terms = await E(zoe).getTerms(instance); const { issuers, brands, tradePrice } = terms; From 07b18308c725a93510a276ba623cb94901aa04a1 Mon Sep 17 00:00:00 2001 From: Mujahid Khan <106528609+mujahidkay@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:27:31 +0500 Subject: [PATCH 6/7] fix(lint): offer-up.contract.js --- contract/src/offer-up.contract.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contract/src/offer-up.contract.js b/contract/src/offer-up.contract.js index 537320d..38be08e 100644 --- a/contract/src/offer-up.contract.js +++ b/contract/src/offer-up.contract.js @@ -26,6 +26,11 @@ import { AmountShape } from '@agoric/ertp/src/typeGuards.js'; import { atomicRearrange } from '@agoric/zoe/src/contractSupport/atomicTransfer.js'; import '@agoric/zoe/exported.js'; +/** + * @import {Amount} from '@agoric/ertp/src/types.js'; + * @import {CopyBag} from '@endo/patterns'; + * + */ const { Fail, quote: q } = assert; // #region bag utilities @@ -33,7 +38,7 @@ const { Fail, quote: q } = assert; const sum = xs => xs.reduce((acc, x) => acc + x, 0n); /** - * @param {import('@endo/patterns').CopyBag} bag + * @param {CopyBag} bag * @returns {bigint[]} */ const bagCounts = bag => { From cfc2b77179b88990af169e90b9d2bd4c083a7a46 Mon Sep 17 00:00:00 2001 From: Mujahid Khan <106528609+mujahidkay@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:27:49 +0500 Subject: [PATCH 7/7] fix(lint): offer-up.proposal.js --- contract/src/offer-up-proposal.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/contract/src/offer-up-proposal.js b/contract/src/offer-up-proposal.js index d35e1e3..a65d516 100644 --- a/contract/src/offer-up-proposal.js +++ b/contract/src/offer-up-proposal.js @@ -15,6 +15,12 @@ const marshalData = makeMarshal(_val => Fail`data only`); const IST_UNIT = 1_000_000n; const CENT = IST_UNIT / 100n; +/** + * @import {ERef} from '@endo/far'; + * @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js'; + * @import {BootstrapManifest} from '@agoric/vats/src/core/lib-boot.js'; + */ + /** * Make a storage node for auxilliary data for a value on the board. * @@ -36,7 +42,11 @@ const publishBrandInfo = async (chainStorage, board, brand) => { await E(node).setValue(JSON.stringify(aux)); }; +// TODO get these from agoric-sdk +/** @typedef {Record} BootstrapPowers */ + /** + * * Core eval script to start contract * * @param {BootstrapPowers} permittedPowers @@ -47,19 +57,16 @@ export const startOfferUpContract = async permittedPowers => { consume: { board, chainStorage, startUpgradable, zoe }, brand: { consume: { IST: istBrandP }, - // @ts-expect-error dynamic extension to promise space produce: { Item: produceItemBrand }, }, issuer: { consume: { IST: istIssuerP }, - // @ts-expect-error dynamic extension to promise space produce: { Item: produceItemIssuer }, }, installation: { consume: { offerUp: offerUpInstallationP }, }, instance: { - // @ts-expect-error dynamic extension to promise space produce: { offerUp: produceInstance }, }, } = permittedPowers; @@ -98,7 +105,7 @@ export const startOfferUpContract = async permittedPowers => { console.log('offerUp (re)started'); }; -/** @type { import("@agoric/vats/src/core/lib-boot").BootstrapManifest } */ +/** @type {BootstrapManifest} */ const offerUpManifest = { [startOfferUpContract.name]: { consume: {