From 7a6bb65dd9b279dc8fa47d86c85731cbdcf61039 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Tue, 27 Aug 2024 07:39:38 -0700 Subject: [PATCH] refactor(crabble-start): use 0.1.1 lib --- .../64:crabble-start/core-eval-support.js | 151 ------- proposals/64:crabble-start/package.json | 2 +- .../64:crabble-start/test-crabble-start.js | 39 +- proposals/64:crabble-start/yarn.lock | 379 +++--------------- 4 files changed, 91 insertions(+), 480 deletions(-) delete mode 100644 proposals/64:crabble-start/core-eval-support.js diff --git a/proposals/64:crabble-start/core-eval-support.js b/proposals/64:crabble-start/core-eval-support.js deleted file mode 100644 index 71ecc257..00000000 --- a/proposals/64:crabble-start/core-eval-support.js +++ /dev/null @@ -1,151 +0,0 @@ -// @ts-check -import { - Far, - makeMarshal, - makeTranslationTable, -} from '@agoric/synthetic-chain/src/lib/unmarshal.js'; -import { Fail, NonNullish } from '@agoric/synthetic-chain/src/lib/assert.js'; - -// TODO: factor out ambient authority from these -// or at least allow caller to supply authority. -import { mintIST } from '@agoric/synthetic-chain/src/lib/econHelpers.js'; -import { agoric } from '@agoric/synthetic-chain/src/lib/cliHelper.js'; - -// move to unmarshal.js? -const makeBoardUnmarshal = () => { - const synthesizeRemotable = (_slot, iface) => - Far(iface.replace(/^Alleged: /, ''), {}); - - const { convertValToSlot, convertSlotToVal } = makeTranslationTable( - slot => Fail`unknown id: ${slot}`, - synthesizeRemotable, - ); - - return makeMarshal(convertValToSlot, convertSlotToVal); -}; - -export const getContractInfo = async (path, io = {}) => { - const m = makeBoardUnmarshal(); - const { - agoric: { follow = agoric.follow }, - prefix = 'published.', - } = io; - console.log('@@TODO: prevent agoric follow hang', prefix, path); - const txt = await follow('-lF', `:${prefix}${path}`, '-o', 'text'); - const { body, slots } = JSON.parse(txt); - return m.fromCapData({ body, slots }); -}; - -/** - * Asserts that `haystack` includes `needle` (or when `sense` is false, that it - * does not), providing pretty output in the case of failure. - * - * @param {import('ava').ExecutionContext} t - * @param {unknown} needle - * @param {unknown[]} haystack - * @param {string} label - * @param {boolean} [sense] true to assert inclusion; false for exclusion - * @returns {void} - */ -export const testIncludes = (t, needle, haystack, label, sense = true) => { - const matches = haystack.filter(c => Object.is(c, needle)); - t.deepEqual(matches, sense ? [needle] : [], label); -}; - -/** - * @param {Record} record - e.g. { color: 'blue' } - * @returns {string[]} - e.g. ['--color', 'blue'] - */ -export const flags = record => { - return Object.entries(record) - .map(([k, v]) => [`--${k}`, v]) - .flat(); -}; - -export const txAbbr = tx => { - const { txhash, code, height, gas_used } = tx; - return { txhash, code, height, gas_used }; -}; - -export const loadedBundleIds = swingstore => { - const ids = swingstore`SELECT bundleID FROM bundles`.map(r => r.bundleID); - return ids; -}; - -/** - * @param {string} cacheFn - e.g. /home/me.agoric/cache/b1-DEADBEEF.json - */ -export const bundleDetail = cacheFn => { - const fileName = NonNullish(cacheFn.split('/').at(-1)); - const id = fileName.replace(/\.json$/, ''); - const hash = id.replace(/^b1-/, ''); - return { fileName, endoZipBase64Sha512: hash, id }; -}; - -const importBundleCost = (bytes, price = 0.002) => { - return bytes * price; -}; - -/** - * @typedef {{ - * bundles: string[], - * evals: { permit: string; script: string }[], - * }} ProposalInfo - */ - -const myISTBalance = async (agd, addr, denom = 'uist', unit = 1_000_000) => { - const coins = await agd.query(['bank', 'balances', addr]); - const coin = coins.balances.find(a => a.denom === denom); - return Number(coin.amount) / unit; -}; - -/** - * @param {number} myIST - * @param {number} cost - * @param {{ - * unit?: number, padding?: number, minInitialDebt?: number, - * collateralPrice: number, - * }} opts - * @returns - */ -const mintCalc = (myIST, cost, opts) => { - const { - unit = 1_000_000, - padding = 1, - minInitialDebt = 6, - collateralPrice, - } = opts; - const { round, max } = Math; - const wantMinted = max(round(cost - myIST + padding), minInitialDebt); - const giveCollateral = round(wantMinted / collateralPrice) + 1; - const sendValue = round(giveCollateral * unit); - return { wantMinted, giveCollateral, sendValue }; -}; - -/** - * - * @param {ReturnType} agd - * @param {*} config - * @param {number} bytes total bytes - * @param {{ log: (...args: any[]) => void }} io - * @returns - */ -export const ensureISTForInstall = async (agd, config, bytes, { log }) => { - const cost = importBundleCost(bytes); - log({ totalSize: bytes, cost }); - const { installer } = config; - const addr = agd.lookup(installer); - const istBalance = await myISTBalance(agd, addr); - - if (istBalance > cost) { - log('balance sufficient', { istBalance, cost }); - return; - } - const { sendValue, wantMinted, giveCollateral } = mintCalc( - istBalance, - cost, - config, - ); - log({ wantMinted }); - await mintIST(addr, sendValue, wantMinted, giveCollateral); -}; diff --git a/proposals/64:crabble-start/package.json b/proposals/64:crabble-start/package.json index c89636f1..fe56f14f 100644 --- a/proposals/64:crabble-start/package.json +++ b/proposals/64:crabble-start/package.json @@ -5,7 +5,7 @@ "type": "module", "license": "Apache-2.0", "dependencies": { - "@agoric/synthetic-chain": "^0.0.1-rc0", + "@agoric/synthetic-chain": "^0.2.0", "@endo/zip": "^0.2.35", "ava": "^5.3.1", "better-sqlite3": "^8.5.1", diff --git a/proposals/64:crabble-start/test-crabble-start.js b/proposals/64:crabble-start/test-crabble-start.js index 8a8da349..3363fded 100644 --- a/proposals/64:crabble-start/test-crabble-start.js +++ b/proposals/64:crabble-start/test-crabble-start.js @@ -15,44 +15,55 @@ */ import anyTest from 'ava'; +import dbOpenAmbient from 'better-sqlite3'; import * as cpAmbient from 'child_process'; // TODO: use execa import * as fspAmbient from 'fs/promises'; -import { tmpName as tmpNameAmbient } from 'tmp'; import * as pathAmbient from 'path'; import * as processAmbient from 'process'; -import dbOpenAmbient from 'better-sqlite3'; +import { tmpName as tmpNameAmbient } from 'tmp'; // TODO: factor out ambient authority from these // or at least allow caller to supply authority. import { agoric, - wellKnownIdentities, -} from '@agoric/synthetic-chain/src/lib/cliHelper.js'; -import { provisionSmartWallet, voteLatestProposalAndWait, waitForBlock, -} from '@agoric/synthetic-chain/src/lib/commonUpgradeHelpers.js'; + wellKnownIdentities, +} from '@agoric/synthetic-chain'; -import { makeAgd } from '@agoric/synthetic-chain/src/lib/agd-lib.js'; -import { dbTool } from '@agoric/synthetic-chain/src/lib/vat-status.js'; -import { - makeFileRd, - makeFileRW, -} from '@agoric/synthetic-chain/src/lib/webAsset.js'; import { + dbTool, ensureISTForInstall, flags, getContractInfo, loadedBundleIds, - testIncludes, + makeAgd, + makeFileRd, + makeFileRW, txAbbr, -} from './core-eval-support.js'; +} from '@agoric/synthetic-chain'; /** @typedef {Awaited>} TestContext */ const test = /** @type {import('ava').TestFn}} */ (anyTest); +/** + * Asserts that `haystack` includes `needle` (or when `sense` is false, that it + * does not), providing pretty output in the case of failure. + * + * @param {import('ava').ExecutionContext} t + * @param {unknown} needle + * @param {unknown[]} haystack + * @param {string} label + * @param {boolean} [sense] true to assert inclusion; false for exclusion + * @returns {void} + */ +export const testIncludes = (t, needle, haystack, label, sense = true) => { + const matches = haystack.filter(c => Object.is(c, needle)); + t.deepEqual(matches, sense ? [needle] : [], label); +}; + const assetInfo = { /** @type {Record} */ buildAssets: { diff --git a/proposals/64:crabble-start/yarn.lock b/proposals/64:crabble-start/yarn.lock index ead430ab..a9cd907e 100644 --- a/proposals/64:crabble-start/yarn.lock +++ b/proposals/64:crabble-start/yarn.lock @@ -5,15 +5,18 @@ __metadata: version: 8 cacheKey: 10c0 -"@agoric/synthetic-chain@npm:^0.0.1-rc0": - version: 0.0.1 - resolution: "@agoric/synthetic-chain@npm:0.0.1" +"@agoric/synthetic-chain@npm:^0.2.0": + version: 0.2.0 + resolution: "@agoric/synthetic-chain@npm:0.2.0" dependencies: - tsx: "npm:^3.12.8" - typescript: "npm:^5.3.3" + "@endo/zip": "npm:^1.0.6" + better-sqlite3: "npm:^9.6.0" + chalk: "npm:^5.3.0" + cosmjs-types: "npm:^0.9.0" + execa: "npm:^8.0.1" bin: - synthetic-chain: cli.ts - checksum: 10c0/58310d95f8ec2681423c64c2be6405f37c5512dc798f80e216b40aa3fcdd55746bb629e9898b25f6f979508f9ae55b89aa51c3341fa55be51c7e7a271ee3973b + synthetic-chain: dist/cli/cli.js + checksum: 10c0/cc30befe632a3bbb9225a7aa9abeececb421721c552bb409dc5a6140833444daf8fe5459a9cd5beb672fc55052ba6dbff2d829f22887a8e9cb74e85885f4f5b1 languageName: node linkType: hard @@ -24,157 +27,10 @@ __metadata: languageName: node linkType: hard -"@esbuild/android-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/android-arm64@npm:0.18.20" - conditions: os=android & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/android-arm@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/android-arm@npm:0.18.20" - conditions: os=android & cpu=arm - languageName: node - linkType: hard - -"@esbuild/android-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/android-x64@npm:0.18.20" - conditions: os=android & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/darwin-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/darwin-arm64@npm:0.18.20" - conditions: os=darwin & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/darwin-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/darwin-x64@npm:0.18.20" - conditions: os=darwin & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/freebsd-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/freebsd-arm64@npm:0.18.20" - conditions: os=freebsd & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/freebsd-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/freebsd-x64@npm:0.18.20" - conditions: os=freebsd & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/linux-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-arm64@npm:0.18.20" - conditions: os=linux & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/linux-arm@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-arm@npm:0.18.20" - conditions: os=linux & cpu=arm - languageName: node - linkType: hard - -"@esbuild/linux-ia32@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-ia32@npm:0.18.20" - conditions: os=linux & cpu=ia32 - languageName: node - linkType: hard - -"@esbuild/linux-loong64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-loong64@npm:0.18.20" - conditions: os=linux & cpu=loong64 - languageName: node - linkType: hard - -"@esbuild/linux-mips64el@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-mips64el@npm:0.18.20" - conditions: os=linux & cpu=mips64el - languageName: node - linkType: hard - -"@esbuild/linux-ppc64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-ppc64@npm:0.18.20" - conditions: os=linux & cpu=ppc64 - languageName: node - linkType: hard - -"@esbuild/linux-riscv64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-riscv64@npm:0.18.20" - conditions: os=linux & cpu=riscv64 - languageName: node - linkType: hard - -"@esbuild/linux-s390x@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-s390x@npm:0.18.20" - conditions: os=linux & cpu=s390x - languageName: node - linkType: hard - -"@esbuild/linux-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/linux-x64@npm:0.18.20" - conditions: os=linux & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/netbsd-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/netbsd-x64@npm:0.18.20" - conditions: os=netbsd & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/openbsd-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/openbsd-x64@npm:0.18.20" - conditions: os=openbsd & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/sunos-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/sunos-x64@npm:0.18.20" - conditions: os=sunos & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/win32-arm64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/win32-arm64@npm:0.18.20" - conditions: os=win32 & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/win32-ia32@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/win32-ia32@npm:0.18.20" - conditions: os=win32 & cpu=ia32 - languageName: node - linkType: hard - -"@esbuild/win32-x64@npm:0.18.20": - version: 0.18.20 - resolution: "@esbuild/win32-x64@npm:0.18.20" - conditions: os=win32 & cpu=x64 +"@endo/zip@npm:^1.0.6": + version: 1.0.6 + resolution: "@endo/zip@npm:1.0.6" + checksum: 10c0/70549f380db9b2454875416359348ffabc6eeecd550c8b63016d26e384335e498eb7ebfafb45cd69a0c64d093d89d399dedb37408ca6764f13ebaf0d720d8ad2 languageName: node linkType: hard @@ -453,6 +309,17 @@ __metadata: languageName: node linkType: hard +"better-sqlite3@npm:^9.6.0": + version: 9.6.0 + resolution: "better-sqlite3@npm:9.6.0" + dependencies: + bindings: "npm:^1.5.0" + node-gyp: "npm:latest" + prebuild-install: "npm:^7.1.1" + checksum: 10c0/8db9b38f414e26a56d4c40fc16e94a253118491dae0e2c054338a9e470f1a883c7eb4cb330f2f5737db30f704d4f2e697c59071ca04e03364ee9fe04375aa9c8 + languageName: node + linkType: hard + "binary-extensions@npm:^2.0.0": version: 2.2.0 resolution: "binary-extensions@npm:2.2.0" @@ -515,13 +382,6 @@ __metadata: languageName: node linkType: hard -"buffer-from@npm:^1.0.0": - version: 1.1.2 - resolution: "buffer-from@npm:1.1.2" - checksum: 10c0/124fff9d66d691a86d3b062eff4663fe437a9d9ee4b47b1b9e97f5a5d14f6d5399345db80f796827be7c95e70a8e765dd404b7c3ff3b3324f98e9b0c8826cc34 - languageName: node - linkType: hard - "buffer@npm:^5.5.0": version: 5.7.1 resolution: "buffer@npm:5.7.1" @@ -568,7 +428,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^5.2.0": +"chalk@npm:^5.2.0, chalk@npm:^5.3.0": version: 5.3.0 resolution: "chalk@npm:5.3.0" checksum: 10c0/8297d436b2c0f95801103ff2ef67268d362021b8210daf8ddbe349695333eb3610a71122172ff3b0272f1ef2cf7cc2c41fdaa4715f52e49ffe04c56340feed09 @@ -735,6 +595,13 @@ __metadata: languageName: node linkType: hard +"cosmjs-types@npm:^0.9.0": + version: 0.9.0 + resolution: "cosmjs-types@npm:0.9.0" + checksum: 10c0/bc20f4293fb34629d7c5f96bafe533987f753df957ff68eb078d0128ae5a418320cb945024441769a07bb9bc5dde9d22b972fd40d485933e5706ea191c43727b + languageName: node + linkType: hard + "cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.3": version: 7.0.3 resolution: "cross-spawn@npm:7.0.3" @@ -868,83 +735,6 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:~0.18.20": - version: 0.18.20 - resolution: "esbuild@npm:0.18.20" - dependencies: - "@esbuild/android-arm": "npm:0.18.20" - "@esbuild/android-arm64": "npm:0.18.20" - "@esbuild/android-x64": "npm:0.18.20" - "@esbuild/darwin-arm64": "npm:0.18.20" - "@esbuild/darwin-x64": "npm:0.18.20" - "@esbuild/freebsd-arm64": "npm:0.18.20" - "@esbuild/freebsd-x64": "npm:0.18.20" - "@esbuild/linux-arm": "npm:0.18.20" - "@esbuild/linux-arm64": "npm:0.18.20" - "@esbuild/linux-ia32": "npm:0.18.20" - "@esbuild/linux-loong64": "npm:0.18.20" - "@esbuild/linux-mips64el": "npm:0.18.20" - "@esbuild/linux-ppc64": "npm:0.18.20" - "@esbuild/linux-riscv64": "npm:0.18.20" - "@esbuild/linux-s390x": "npm:0.18.20" - "@esbuild/linux-x64": "npm:0.18.20" - "@esbuild/netbsd-x64": "npm:0.18.20" - "@esbuild/openbsd-x64": "npm:0.18.20" - "@esbuild/sunos-x64": "npm:0.18.20" - "@esbuild/win32-arm64": "npm:0.18.20" - "@esbuild/win32-ia32": "npm:0.18.20" - "@esbuild/win32-x64": "npm:0.18.20" - dependenciesMeta: - "@esbuild/android-arm": - optional: true - "@esbuild/android-arm64": - optional: true - "@esbuild/android-x64": - optional: true - "@esbuild/darwin-arm64": - optional: true - "@esbuild/darwin-x64": - optional: true - "@esbuild/freebsd-arm64": - optional: true - "@esbuild/freebsd-x64": - optional: true - "@esbuild/linux-arm": - optional: true - "@esbuild/linux-arm64": - optional: true - "@esbuild/linux-ia32": - optional: true - "@esbuild/linux-loong64": - optional: true - "@esbuild/linux-mips64el": - optional: true - "@esbuild/linux-ppc64": - optional: true - "@esbuild/linux-riscv64": - optional: true - "@esbuild/linux-s390x": - optional: true - "@esbuild/linux-x64": - optional: true - "@esbuild/netbsd-x64": - optional: true - "@esbuild/openbsd-x64": - optional: true - "@esbuild/sunos-x64": - optional: true - "@esbuild/win32-arm64": - optional: true - "@esbuild/win32-ia32": - optional: true - "@esbuild/win32-x64": - optional: true - bin: - esbuild: bin/esbuild - checksum: 10c0/473b1d92842f50a303cf948a11ebd5f69581cd254d599dd9d62f9989858e0533f64e83b723b5e1398a5b488c0f5fd088795b4235f65ecaf4f007d4b79f04bc88 - languageName: node - linkType: hard - "escalade@npm:^3.1.1": version: 3.1.1 resolution: "escalade@npm:3.1.1" @@ -1000,6 +790,23 @@ __metadata: languageName: node linkType: hard +"execa@npm:^8.0.1": + version: 8.0.1 + resolution: "execa@npm:8.0.1" + dependencies: + cross-spawn: "npm:^7.0.3" + get-stream: "npm:^8.0.1" + human-signals: "npm:^5.0.0" + is-stream: "npm:^3.0.0" + merge-stream: "npm:^2.0.0" + npm-run-path: "npm:^5.1.0" + onetime: "npm:^6.0.0" + signal-exit: "npm:^4.1.0" + strip-final-newline: "npm:^3.0.0" + checksum: 10c0/2c52d8775f5bf103ce8eec9c7ab3059909ba350a5164744e9947ed14a53f51687c040a250bda833f906d1283aa8803975b84e6c8f7a7c42f99dc8ef80250d1af + languageName: node + linkType: hard + "expand-template@npm:^2.0.3": version: 2.0.3 resolution: "expand-template@npm:2.0.3" @@ -1121,7 +928,7 @@ __metadata: languageName: node linkType: hard -"fsevents@npm:~2.3.2, fsevents@npm:~2.3.3": +"fsevents@npm:~2.3.2": version: 2.3.3 resolution: "fsevents@npm:2.3.3" dependencies: @@ -1131,7 +938,7 @@ __metadata: languageName: node linkType: hard -"fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin, fsevents@patch:fsevents@npm%3A~2.3.3#optional!builtin": +"fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin": version: 2.3.3 resolution: "fsevents@patch:fsevents@npm%3A2.3.3#optional!builtin::version=2.3.3&hash=df0bf1" dependencies: @@ -1154,12 +961,10 @@ __metadata: languageName: node linkType: hard -"get-tsconfig@npm:^4.7.2": - version: 4.7.2 - resolution: "get-tsconfig@npm:4.7.2" - dependencies: - resolve-pkg-maps: "npm:^1.0.0" - checksum: 10c0/169b2beababfbb16e8a0ae813ee59d3e14d4960231c816615161ab5be68ec07a394dce59695742ac84295e2efab8d9e89bcf3abaf5e253dfbec3496e01bb9a65 +"get-stream@npm:^8.0.1": + version: 8.0.1 + resolution: "get-stream@npm:8.0.1" + checksum: 10c0/5c2181e98202b9dae0bb4a849979291043e5892eb40312b47f0c22b9414fc9b28a3b6063d2375705eb24abc41ecf97894d9a51f64ff021511b504477b27b4290 languageName: node linkType: hard @@ -1262,6 +1067,13 @@ __metadata: languageName: node linkType: hard +"human-signals@npm:^5.0.0": + version: 5.0.0 + resolution: "human-signals@npm:5.0.0" + checksum: 10c0/5a9359073fe17a8b58e5a085e9a39a950366d9f00217c4ff5878bd312e09d80f460536ea6a3f260b5943a01fe55c158d1cea3fc7bee3d0520aeef04f6d915c82 + languageName: node + linkType: hard + "iconv-lite@npm:^0.6.2": version: 0.6.3 resolution: "iconv-lite@npm:0.6.3" @@ -2111,13 +1923,6 @@ __metadata: languageName: node linkType: hard -"resolve-pkg-maps@npm:^1.0.0": - version: 1.0.0 - resolution: "resolve-pkg-maps@npm:1.0.0" - checksum: 10c0/fb8f7bbe2ca281a73b7ef423a1cbc786fb244bd7a95cbe5c3fba25b27d327150beca8ba02f622baea65919a57e061eb5005204daa5f93ed590d9b77463a567ab - languageName: node - linkType: hard - "retry@npm:^0.12.0": version: 0.12.0 resolution: "retry@npm:0.12.0" @@ -2147,7 +1952,7 @@ __metadata: version: 0.0.0-use.local resolution: "root-workspace-0b6124@workspace:." dependencies: - "@agoric/synthetic-chain": "npm:^0.0.1-rc0" + "@agoric/synthetic-chain": "npm:^0.2.0" "@endo/zip": "npm:^0.2.35" ava: "npm:^5.3.1" better-sqlite3: "npm:^8.5.1" @@ -2222,7 +2027,7 @@ __metadata: languageName: node linkType: hard -"signal-exit@npm:^4.0.1": +"signal-exit@npm:^4.0.1, signal-exit@npm:^4.1.0": version: 4.1.0 resolution: "signal-exit@npm:4.1.0" checksum: 10c0/41602dce540e46d599edba9d9860193398d135f7ff72cab629db5171516cfae628d21e7bfccde1bbfdf11c48726bc2a6d1a8fb8701125852fbfda7cf19c6aa83 @@ -2292,23 +2097,6 @@ __metadata: languageName: node linkType: hard -"source-map-support@npm:^0.5.21": - version: 0.5.21 - resolution: "source-map-support@npm:0.5.21" - dependencies: - buffer-from: "npm:^1.0.0" - source-map: "npm:^0.6.0" - checksum: 10c0/9ee09942f415e0f721d6daad3917ec1516af746a8120bba7bb56278707a37f1eb8642bde456e98454b8a885023af81a16e646869975f06afc1a711fb90484e7d - languageName: node - linkType: hard - -"source-map@npm:^0.6.0": - version: 0.6.1 - resolution: "source-map@npm:0.6.1" - checksum: 10c0/ab55398007c5e5532957cb0beee2368529618ac0ab372d789806f5718123cc4367d57de3904b4e6a4170eb5a0b0f41373066d02ca0735a0c4d75c7d328d3e011 - languageName: node - linkType: hard - "sprintf-js@npm:~1.0.2": version: 1.0.3 resolution: "sprintf-js@npm:1.0.3" @@ -2480,23 +2268,6 @@ __metadata: languageName: node linkType: hard -"tsx@npm:^3.12.8": - version: 3.14.0 - resolution: "tsx@npm:3.14.0" - dependencies: - esbuild: "npm:~0.18.20" - fsevents: "npm:~2.3.3" - get-tsconfig: "npm:^4.7.2" - source-map-support: "npm:^0.5.21" - dependenciesMeta: - fsevents: - optional: true - bin: - tsx: dist/cli.mjs - checksum: 10c0/b6c938bdae9c656aef2aa0130ee6aa8f3487b5d411d5f7934b705c28ff44ab268db3dde123cf5237b4e5e2ab4441a0bad4b1a39e3ff2170d138538e44082f05d - languageName: node - linkType: hard - "tunnel-agent@npm:^0.6.0": version: 0.6.0 resolution: "tunnel-agent@npm:0.6.0" @@ -2513,26 +2284,6 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.3.3": - version: 5.3.3 - resolution: "typescript@npm:5.3.3" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/e33cef99d82573624fc0f854a2980322714986bc35b9cb4d1ce736ed182aeab78e2cb32b385efa493b2a976ef52c53e20d6c6918312353a91850e2b76f1ea44f - languageName: node - linkType: hard - -"typescript@patch:typescript@npm%3A^5.3.3#optional!builtin": - version: 5.3.3 - resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin::version=5.3.3&hash=e012d7" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/1d0a5f4ce496c42caa9a30e659c467c5686eae15d54b027ee7866744952547f1be1262f2d40de911618c242b510029d51d43ff605dba8fb740ec85ca2d3f9500 - languageName: node - linkType: hard - "unique-filename@npm:^3.0.0": version: 3.0.0 resolution: "unique-filename@npm:3.0.0"