@agoric/vat-data 0.5.3-dev-7244c71.0 → 0.5.3-dev-5dc325b.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/vat-data",
3
- "version": "0.5.3-dev-7244c71.0+7244c71",
3
+ "version": "0.5.3-dev-5dc325b.0+5dc325b",
4
4
  "description": "Safe access to VatData global",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/Agoric/agoric-sdk",
@@ -19,10 +19,10 @@
19
19
  "author": "Agoric",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@agoric/assert": "0.6.1-dev-7244c71.0+7244c71",
23
- "@agoric/internal": "0.3.3-dev-7244c71.0+7244c71",
24
- "@agoric/store": "0.9.3-dev-7244c71.0+7244c71",
25
- "@agoric/swingset-liveslots": "0.10.3-dev-7244c71.0+7244c71"
22
+ "@agoric/assert": "0.6.1-dev-5dc325b.0+5dc325b",
23
+ "@agoric/internal": "0.3.3-dev-5dc325b.0+5dc325b",
24
+ "@agoric/store": "0.9.3-dev-5dc325b.0+5dc325b",
25
+ "@agoric/swingset-liveslots": "0.10.3-dev-5dc325b.0+5dc325b"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@endo/init": "^0.5.59",
@@ -47,5 +47,5 @@
47
47
  "typeCoverage": {
48
48
  "atLeast": 98.23
49
49
  },
50
- "gitHead": "7244c710962174a886903cf039c0fbe18874287f"
50
+ "gitHead": "5dc325b8cc1d94f46ecc18a7c67a14989feade11"
51
51
  }
@@ -6,6 +6,7 @@ import type {
6
6
  KindFacet,
7
7
  FunctionsPlusContext,
8
8
  } from '@agoric/swingset-liveslots';
9
+ import { VirtualObjectManager } from '@agoric/swingset-liveslots/src/virtualObjectManager.js';
9
10
  import {
10
11
  defineKind,
11
12
  defineKindMulti,
@@ -14,6 +15,9 @@ import {
14
15
  partialAssign,
15
16
  } from '.';
16
17
 
18
+ // for use in assignments below
19
+ const anyVal = null as any;
20
+
17
21
  /*
18
22
  export const makePaymentMaker = (allegedName: string, brand: unknown) => {
19
23
  const makePayment = defineKind(
@@ -154,7 +158,13 @@ const someBehavior: FunctionsPlusContext<SomeContext, SomeFacet> = {
154
158
  return b > context.state.a;
155
159
  },
156
160
  };
157
- const someFacet: KindFacet<typeof someBehavior> = null as any;
161
+ const someFacet: KindFacet<typeof someBehavior> = anyVal;
158
162
  // @ts-expect-error
159
163
  someFacet.gt();
160
164
  expectType<boolean>(someFacet.gt(1));
165
+
166
+ const vom: VirtualObjectManager = anyVal;
167
+ // @ts-expect-error
168
+ vom.missingMethod;
169
+ // @ts-expect-error Expected 0-4 arguments but got 5
170
+ vom.defineDurableKind(anyVal, anyVal, anyVal, anyVal, 'extra');