Skip to content

Commit

Permalink
Merge pull request #8701 from Agoric/ta/restore-store-types
Browse files Browse the repository at this point in the history
restore 'store' types
  • Loading branch information
mergify[bot] authored Dec 30, 2023
2 parents a0d8229 + 40591bc commit 92855b2
Show file tree
Hide file tree
Showing 30 changed files with 25 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/ERTP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 90.37
"atLeast": 90.6
}
}
2 changes: 1 addition & 1 deletion packages/SwingSet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 75.26
"atLeast": 75.36
}
}
2 changes: 1 addition & 1 deletion packages/agoric-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 77.53
"atLeast": 77.5
}
}
2 changes: 1 addition & 1 deletion packages/base-zone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 86.48
"atLeast": 88.7
}
}
1 change: 0 additions & 1 deletion packages/base-zone/src/heap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// @ts-check
// @jessie-check
/// <reference path="./store-types.d.ts" />

import { Far } from '@endo/far';
import { makeExo, defineExoClass, defineExoClassKit } from '@endo/exo';
Expand Down
3 changes: 0 additions & 3 deletions packages/base-zone/src/store-types.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 85.68
"atLeast": 88.05
}
}
2 changes: 1 addition & 1 deletion packages/builders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 67.19
"atLeast": 67.05
}
}
2 changes: 1 addition & 1 deletion packages/casting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 88.12
"atLeast": 89.5
}
}
2 changes: 1 addition & 1 deletion packages/cosmic-swingset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
"timeout": "20m"
},
"typeCoverage": {
"atLeast": 79.4
"atLeast": 79.32
}
}
2 changes: 1 addition & 1 deletion packages/deploy-script-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 79.84
"atLeast": 80.06
}
}
2 changes: 1 addition & 1 deletion packages/deployment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"readline-transform": "^1.0.0"
},
"typeCoverage": {
"atLeast": 61.49
"atLeast": 60.14
}
}
2 changes: 1 addition & 1 deletion packages/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 83.56
"atLeast": 89.27
}
}
2 changes: 2 additions & 0 deletions packages/governance/test/swingsetTests/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const nullMarshaller = makeMarshal(
);

export const remoteNullMarshaller = makeExo('nullMarshaller', undefined, {
serialize: val => nullMarshaller.toCapData(val),
unserialize: slot => nullMarshaller.fromCapData(slot),
toCapData: val => nullMarshaller.toCapData(val),
fromCapData: slot => nullMarshaller.fromCapData(slot),
});
2 changes: 1 addition & 1 deletion packages/inter-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 93.45
"atLeast": 95.83
}
}
3 changes: 2 additions & 1 deletion packages/inter-protocol/test/auction/test-auctionContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { subscribeEach } from '@agoric/notifier';
import { eventLoopIteration } from '@agoric/internal/src/testing-utils.js';
import { buildManualTimer } from '@agoric/swingset-vat/tools/manual-timer.js';
import { TimeMath } from '@agoric/time';
import { makeScalarMapStore } from '@agoric/vat-data/src/index.js';
import { makeScalarMapStore } from '@agoric/vat-data';
import {
makeRatio,
makeRatioFromAmounts,
Expand Down Expand Up @@ -126,6 +126,7 @@ export const setupServices = async (t, params = defaultParams) => {

void E(reserveCF).addIssuer(collateral.issuer, 'Collateral');

/** @type {import('@agoric/swingset-liveslots').Baggage} */
const paBaggage = makeScalarMapStore();
const { priceAuthority, adminFacet: registry } =
providePriceAuthorityRegistry(paBaggage);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { test as anyTest } from '@agoric/zoe/tools/prepare-test-env-ava.js';

import { AmountMath, makeIssuerKit } from '@agoric/ertp';
import '@agoric/vats/src/core/types-ambient.js';
import { eventLoopIteration } from '@agoric/internal/src/testing-utils.js';
import { E } from '@endo/far';
import { NonNullish } from '@agoric/assert';
Expand Down
2 changes: 1 addition & 1 deletion packages/internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 92.26
"atLeast": 92.28
}
}
2 changes: 1 addition & 1 deletion packages/pegasus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 90.04
"atLeast": 89.97
}
}
2 changes: 1 addition & 1 deletion packages/smart-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 86.97
"atLeast": 94.07
}
}
1 change: 0 additions & 1 deletion packages/smart-wallet/test/supports.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
makeBoard,
} from '@agoric/vats/src/core/basic-behaviors.js';
import { setupClientManager } from '@agoric/vats/src/core/chain-behaviors.js';
import '@agoric/vats/src/core/types-ambient.js';
import { buildRootObject as boardRoot } from '@agoric/vats/src/vat-board.js';
import { buildRootObject as mintsRoot } from '@agoric/vats/src/vat-mints.js';
import { makeFakeBankKit } from '@agoric/vats/tools/bank-utils.js';
Expand Down
2 changes: 0 additions & 2 deletions packages/smart-wallet/test/test-startWalletFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { E } from '@endo/far';
import path from 'path';
import { makeMockTestSpace } from './supports.js';

import '@agoric/vats/src/core/types-ambient.js';

/** @type {import('ava').TestFn<Awaited<ReturnType<typeof makeTestContext>>>} */
const test = anyTest;

Expand Down
2 changes: 0 additions & 2 deletions packages/smart-wallet/test/test-walletFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import {
topicPath,
} from './supports.js';

import '@agoric/vats/src/core/types-ambient.js';

/** @type {import('ava').TestFn<Awaited<ReturnType<makeDefaultTestContext>>>} */
const test = anyTest;

Expand Down
2 changes: 1 addition & 1 deletion packages/solo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 68.59
"atLeast": 68.72
}
}
2 changes: 1 addition & 1 deletion packages/swing-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"timeout": "2m"
},
"typeCoverage": {
"atLeast": 75.52
"atLeast": 76.1
}
}
2 changes: 1 addition & 1 deletion packages/swingset-liveslots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 71.48
"atLeast": 75.1
}
}
2 changes: 1 addition & 1 deletion packages/vat-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"node": ">=14.15.0"
},
"typeCoverage": {
"atLeast": 98.23
"atLeast": 99.19
}
}
1 change: 0 additions & 1 deletion packages/vats/src/bridge.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { M } from '@agoric/store';
import '@agoric/store/exported.js';
import { E } from '@endo/far';
import './core/types-ambient.js';

const { Fail, details: X } = assert;

Expand Down
2 changes: 1 addition & 1 deletion packages/zoe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 81.5
"atLeast": 84.82
}
}
2 changes: 1 addition & 1 deletion packages/zone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 96.33
"atLeast": 96.68
}
}

0 comments on commit 92855b2

Please sign in to comment.