diff --git a/packages/inter-protocol/src/provisionPoolKit.js b/packages/inter-protocol/src/provisionPoolKit.js index 4e1c71aa704..ee05ea5cc06 100644 --- a/packages/inter-protocol/src/provisionPoolKit.js +++ b/packages/inter-protocol/src/provisionPoolKit.js @@ -37,6 +37,15 @@ const FIRST_LOWER_NEAR_KEYWORD = /^[a-z][a-zA-Z0-9_$]*$/; * @import {Bank, BankManager} from '@agoric/vats/src/vat-bank.js' */ +// XXX when inferred, error TS2742: cannot be named without a reference to '../../../node_modules/@endo/exo/src/get-interface.js'. This is likely not portable. A type annotation is necessary. +/** + * @typedef {{ + * machine: any; + * helper: any; + * public: any; + * }} ProvisionPoolKit + */ + /** * @typedef {import('@agoric/zoe/src/zoeService/utils.js').Instance< * import('@agoric/inter-protocol/src/psm/psm.js').start @@ -506,6 +515,7 @@ export const prepareProvisionPoolKit = ( * @param {object} opts * @param {Brand<'nat'>} opts.poolBrand * @param {ERef} opts.storageNode + * @returns {Promise} */ const makeProvisionPoolKit = async ({ poolBrand, storageNode }) => { const fundPurse = await E(poolBank).getPurse(poolBrand); diff --git a/packages/inter-protocol/test/psm/setupPsm.js b/packages/inter-protocol/test/psm/setupPsm.js index f00a283c05b..895ff2679c6 100644 --- a/packages/inter-protocol/test/psm/setupPsm.js +++ b/packages/inter-protocol/test/psm/setupPsm.js @@ -100,8 +100,8 @@ export const setupPsm = async ( brand.produce.IST.resolve(istBrand); issuer.produce.IST.resolve(istIssuer); + // @ts-expect-error mock space.produce.provisionPoolStartResult.resolve({ - // @ts-expect-error mock creatorFacet: Far('dummy', { initPSM: () => { t.log('dummy provisionPool.initPSM');