diff --git a/packages/deploy-script-support/test/unitTests/test-startInstance.js b/packages/deploy-script-support/test/unitTests/test-startInstance.js index 2f56fc62a24..6cb7c649b56 100644 --- a/packages/deploy-script-support/test/unitTests/test-startInstance.js +++ b/packages/deploy-script-support/test/unitTests/test-startInstance.js @@ -67,7 +67,6 @@ test('startInstance', async t => { creatorFacet, publicFacet, instance, - adminFacet, creatorInvitationDetails, } = await startInstance(startInstanceConfig); @@ -75,5 +74,4 @@ test('startInstance', async t => { t.truthy(creatorFacet); t.is(await E(zoe).getPublicFacet(instance), publicFacet); t.is(creatorInvitationDetails.description, 'getRefund'); - t.is(await E(adminFacet).getVatStats(), undefined); }); diff --git a/packages/pegasus/test/fakeVatAdmin.js b/packages/pegasus/test/fakeVatAdmin.js index b46791ab204..57ec454ba3a 100644 --- a/packages/pegasus/test/fakeVatAdmin.js +++ b/packages/pegasus/test/fakeVatAdmin.js @@ -12,7 +12,6 @@ export default harden({ return makePromiseKit().promise; }, terminate: () => {}, - adminData: () => ({}), }, }); }, diff --git a/packages/zoe/src/internal-types.js b/packages/zoe/src/internal-types.js index da0a729181e..75188a617ef 100644 --- a/packages/zoe/src/internal-types.js +++ b/packages/zoe/src/internal-types.js @@ -216,8 +216,6 @@ * promise will fulfill to the completion value. * @property {(reason: TerminationReason) => void} terminateWithFailure * Terminate the vat in which the contract is running as a failure. - * @property {() => Object} adminData - * returns some statistics about the vat in which the contract is running. */ /** diff --git a/packages/zoe/src/zoeService/startInstance.js b/packages/zoe/src/zoeService/startInstance.js index e180b87fb4c..0ba7b833251 100644 --- a/packages/zoe/src/zoeService/startInstance.js +++ b/packages/zoe/src/zoeService/startInstance.js @@ -208,7 +208,6 @@ export const makeStartInstance = ( } const adminFacet = Far('adminFacet', { getVatShutdownPromise: () => E(adminNode).done(), - getVatStats: () => E(adminNode).adminData(), }); // Actually returned to the user. diff --git a/packages/zoe/src/zoeService/types.js b/packages/zoe/src/zoeService/types.js index 2a1fb9de687..52613cc263c 100644 --- a/packages/zoe/src/zoeService/types.js +++ b/packages/zoe/src/zoeService/types.js @@ -156,7 +156,6 @@ /** * @typedef {Object} AdminFacet * @property {() => Promise} getVatShutdownPromise - * @property {() => any} getVatStats */ /** diff --git a/packages/zoe/test/unitTests/test-zoe.js b/packages/zoe/test/unitTests/test-zoe.js index 4a40b1dfea5..02e50d8d463 100644 --- a/packages/zoe/test/unitTests/test-zoe.js +++ b/packages/zoe/test/unitTests/test-zoe.js @@ -80,7 +80,6 @@ test(`zoe.startInstance no issuerKeywordRecord, no terms`, async t => { isEmptyFacet(t, result.publicFacet); t.deepEqual(Object.getOwnPropertyNames(result.adminFacet).sort(), [ 'getVatShutdownPromise', - 'getVatStats', ]); }); @@ -108,7 +107,6 @@ test(`zoe.startInstance promise for installation`, async t => { isEmptyFacet(t, result.publicFacet); t.deepEqual(Object.getOwnPropertyNames(result.adminFacet).sort(), [ 'getVatShutdownPromise', - 'getVatStats', ]); }); diff --git a/packages/zoe/tools/fakeVatAdmin.js b/packages/zoe/tools/fakeVatAdmin.js index c75c3e50c79..ac8b03c3a12 100644 --- a/packages/zoe/tools/fakeVatAdmin.js +++ b/packages/zoe/tools/fakeVatAdmin.js @@ -47,7 +47,6 @@ function makeFakeVatAdmin(testContextSetter = undefined, makeRemote = x => x) { return kit.promise; }, terminateWithFailure: () => {}, - adminData: () => {}, }), }); },