Skip to content

Commit

Permalink
misc for extracting fast-usdc (#10989)
Browse files Browse the repository at this point in the history
refs: #10811

## Description

While working on #10811 I got errors like,
```
  Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/opt/agoric/fast-usdc/node_modules/@agoric/orchestration/tools/ibc-mocks.ts' imported from /opt/agoric/fast-usdc/packages/fast-usdc/test/fixtures.ts
```

That's because the "tools" path was not in the package.json. This fixes that.

It also brings in some commits from #10480 to support fully using .ts in the new codebase.

### Security Considerations
none

### Scaling Considerations
none

### Documentation Considerations
none

### Testing Considerations
CI suffices

### Upgrade Considerations
no runtime changes
  • Loading branch information
mergify[bot] authored Feb 12, 2025
2 parents 1af1596 + a9b055d commit 5fb1074
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/base-zone/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export {};
* @typedef {object} Stores
* @property {() => Stores} detached obtain store providers which are detached (the stores are anonymous rather than bound to `label` in the zone)
* @property {(specimen: unknown) => boolean} isStorable return true if the specimen can be stored in the zone, whether as exo-object state or in a store
* @property {(label: string, options?: StoreOptions) => MapStore<any, any>} mapStore provide a Map-like store named `label` in the zone
* @property {<K, V>(label: string, options?: StoreOptions) => MapStore<K, V>} mapStore provide a Map-like store named `label` in the zone
* @property {<K>(label: string, options?: StoreOptions) => SetStore<K>} setStore provide a Set-like store named `label` in the zone
* @property {<K, V>(
* label: string, options?: StoreOptions) => WeakMapStore<K, V>
Expand Down
1 change: 0 additions & 1 deletion packages/inter-protocol/src/price/fluxAggregatorKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export const prepareFluxAggregatorKit = async (
const makeOracleAdminKit = prepareOracleAdminKit(baggage);

const makeRecorderKit = defineRecorderKit({
// @ts-expect-error XXX
makeDurablePublishKit,
makeRecorder,
});
Expand Down
4 changes: 1 addition & 3 deletions packages/notifier/src/publish-kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,13 @@ const advanceDurablePublishKit = (context, value, targetStatus = 'live') => {
/**
* @param {import('@agoric/swingset-liveslots').Baggage} baggage
* @param {string} kindName
* @returns {<T>(options?: Parameters<typeof initDurablePublishKitState>[0]) => PublishKit<T>}
*/
export const prepareDurablePublishKit = (baggage, kindName) => {
// TODO: Once we unify with makePublishKit, we will use a Zone-compatible weak
// map for memoization.
const makeMemoizedUpdateRecord = makeUpdateRecordFromPublicationRecord;

/**
* @returns {() => PublishKit<*>}
*/
return prepareExoClassKit(
baggage,
kindName,
Expand Down
3 changes: 2 additions & 1 deletion packages/orchestration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"files": [
"*.js",
"*.ts",
"src"
"src",
"tools"
],
"publishConfig": {
"access": "public"
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"noUncheckedSideEffectImports": true,
"erasableSyntaxOnly": true,
"verbatimModuleSyntax": true,
// .ts and rewriting relative paths allow us to include in bundles
// files that are JS executable (with TS chars blanked) but end in .ts
"allowImportingTsExtensions": true,
"rewriteRelativeImportExtensions": true,
"noEmit": true
},
"include": [
Expand Down

0 comments on commit 5fb1074

Please sign in to comment.