Skip to content

Commit

Permalink
chore: remove uses of adminFacet/adminData/getVatStats
Browse files Browse the repository at this point in the history
refs #3331
  • Loading branch information
warner committed Jun 16, 2021
1 parent bc053ef commit 3d8bfef
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ test('startInstance', async t => {
creatorFacet,
publicFacet,
instance,
adminFacet,
creatorInvitationDetails,
} = await startInstance(startInstanceConfig);

t.is(addedPetname, 'automaticRefund');
t.truthy(creatorFacet);
t.is(await E(zoe).getPublicFacet(instance), publicFacet);
t.is(creatorInvitationDetails.description, 'getRefund');
t.is(await E(adminFacet).getVatStats(), undefined);
});
1 change: 0 additions & 1 deletion packages/pegasus/test/fakeVatAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default harden({
return makePromiseKit().promise;
},
terminate: () => {},
adminData: () => ({}),
},
});
},
Expand Down
2 changes: 0 additions & 2 deletions packages/zoe/src/internal-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

/**
Expand Down
1 change: 0 additions & 1 deletion packages/zoe/src/zoeService/startInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ export const makeStartInstance = (
}
const adminFacet = Far('adminFacet', {
getVatShutdownPromise: () => E(adminNode).done(),
getVatStats: () => E(adminNode).adminData(),
});

// Actually returned to the user.
Expand Down
1 change: 0 additions & 1 deletion packages/zoe/src/zoeService/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@
/**
* @typedef {Object} AdminFacet
* @property {() => Promise<Completion>} getVatShutdownPromise
* @property {() => any} getVatStats
*/

/**
Expand Down
2 changes: 0 additions & 2 deletions packages/zoe/test/unitTests/test-zoe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
});

Expand Down Expand Up @@ -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',
]);
});

Expand Down
1 change: 0 additions & 1 deletion packages/zoe/tools/fakeVatAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function makeFakeVatAdmin(testContextSetter = undefined, makeRemote = x => x) {
return kit.promise;
},
terminateWithFailure: () => {},
adminData: () => {},
}),
});
},
Expand Down

0 comments on commit 3d8bfef

Please sign in to comment.