From 0c5639bda44b5a62d4d9d369016b39a50e57c8ea Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Wed, 23 Oct 2024 13:45:24 -0700 Subject: [PATCH] chore(types): annotate each DeployScriptFunction --- multichain-testing/src/revise-chain-info.builder.js | 1 + .../agoric-cli/test/upgrade-contract/propose-buggy-contract.js | 1 + .../test/upgrade-contract/propose-upgrade-contract.js | 1 + packages/builders/scripts/inter-protocol/add-STARS.js | 1 + packages/builders/scripts/inter-protocol/add-collateral-core.js | 1 + packages/builders/scripts/inter-protocol/init-core.js | 1 + .../builders/scripts/inter-protocol/invite-committee-core.js | 1 + .../builders/scripts/inter-protocol/replace-electorate-core.js | 2 ++ packages/builders/scripts/inter-protocol/updatePriceFeeds.js | 1 + packages/builders/scripts/orchestration/init-basic-flows.js | 1 + packages/builders/scripts/orchestration/init-stakeAtom.js | 1 + packages/builders/scripts/orchestration/init-stakeBld.js | 1 + packages/builders/scripts/orchestration/init-stakeOsmo.js | 1 + packages/builders/scripts/orchestration/write-chain-info.js | 1 + packages/builders/scripts/pegasus/init-core.js | 1 + packages/builders/scripts/smart-wallet/build-game1-start.js | 1 + .../scripts/smart-wallet/build-wallet-factory2-upgrade.js | 1 + .../scripts/smart-wallet/build-walletFactory-upgrade.js | 1 + packages/builders/scripts/testing/add-LEMONS.js | 1 + packages/builders/scripts/testing/add-OLIVES.js | 1 + packages/builders/scripts/testing/append-chain-info.js | 1 + packages/builders/scripts/testing/fix-buggy-sendAnywhere.js | 1 + packages/builders/scripts/testing/restart-basic-flows.js | 1 + packages/builders/scripts/testing/restart-send-anywhere.js | 1 + packages/builders/scripts/testing/restart-stakeAtom.js | 1 + packages/builders/scripts/testing/restart-valueVow.js | 1 + packages/builders/scripts/testing/start-auto-stake-it.js | 1 + packages/builders/scripts/testing/start-buggy-sendAnywhere.js | 1 + packages/builders/scripts/testing/start-query-flows.js | 1 + packages/builders/scripts/testing/start-send-anywhere.js | 1 + packages/builders/scripts/testing/start-valueVow.js | 1 + packages/builders/scripts/testing/tweak-chain-info.js | 1 + packages/builders/scripts/vats/add-auction.js | 1 + packages/builders/scripts/vats/init-core.js | 1 + packages/builders/scripts/vats/init-localchain.js | 1 + packages/builders/scripts/vats/init-network.js | 1 + packages/builders/scripts/vats/init-orchestration.js | 1 + packages/builders/scripts/vats/init-transfer.js | 1 + packages/builders/scripts/vats/probe-zcf-bundle.js | 1 + packages/builders/scripts/vats/replace-provisioning.js | 1 + packages/builders/scripts/vats/replace-zoe.js | 1 + packages/builders/scripts/vats/restart-vats.js | 1 + packages/builders/scripts/vats/revive-kread.js | 1 + packages/builders/scripts/vats/test-localchain.js | 1 + packages/builders/scripts/vats/test-vtransfer.js | 1 + packages/builders/scripts/vats/updateAtomPriceFeed.js | 1 + packages/builders/scripts/vats/updateStAtomPriceFeed.js | 1 + packages/builders/scripts/vats/updateStOsmoPriceFeed.js | 1 + packages/builders/scripts/vats/updateStTiaPriceFeed.js | 1 + packages/builders/scripts/vats/updateStkAtomPriceFeed.js | 1 + packages/builders/scripts/vats/upgrade-bank.js | 1 + packages/builders/scripts/vats/upgrade-orch-core.js | 1 + packages/builders/scripts/vats/upgrade-provisionPool.js | 1 + packages/builders/scripts/vats/upgrade-zcf.js | 1 + packages/builders/scripts/vats/upgrade-zoe.js | 1 + packages/builders/scripts/vats/upgradeScaledPriceAuthorities.js | 1 + packages/builders/scripts/vats/upgradeVaults.js | 1 + 57 files changed, 58 insertions(+) diff --git a/multichain-testing/src/revise-chain-info.builder.js b/multichain-testing/src/revise-chain-info.builder.js index c09648d4441..10673129466 100644 --- a/multichain-testing/src/revise-chain-info.builder.js +++ b/multichain-testing/src/revise-chain-info.builder.js @@ -16,6 +16,7 @@ export const defaultProposalBuilder = async () => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('revise-chain-info', defaultProposalBuilder); diff --git a/packages/agoric-cli/test/upgrade-contract/propose-buggy-contract.js b/packages/agoric-cli/test/upgrade-contract/propose-buggy-contract.js index e70c6c502e3..ac0aec1a7d7 100644 --- a/packages/agoric-cli/test/upgrade-contract/propose-buggy-contract.js +++ b/packages/agoric-cli/test/upgrade-contract/propose-buggy-contract.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const helperEndowments = { ...endowments, diff --git a/packages/agoric-cli/test/upgrade-contract/propose-upgrade-contract.js b/packages/agoric-cli/test/upgrade-contract/propose-upgrade-contract.js index ce92538036c..5e32ba0fb91 100644 --- a/packages/agoric-cli/test/upgrade-contract/propose-upgrade-contract.js +++ b/packages/agoric-cli/test/upgrade-contract/propose-upgrade-contract.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const helperEndowments = { ...endowments, diff --git a/packages/builders/scripts/inter-protocol/add-STARS.js b/packages/builders/scripts/inter-protocol/add-STARS.js index 50d2e6dbe9f..6ea9fc5131b 100644 --- a/packages/builders/scripts/inter-protocol/add-STARS.js +++ b/packages/builders/scripts/inter-protocol/add-STARS.js @@ -36,6 +36,7 @@ const starsOraclesProposalBuilder = async powers => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('add-STARS', starsVaultProposalBuilder); diff --git a/packages/builders/scripts/inter-protocol/add-collateral-core.js b/packages/builders/scripts/inter-protocol/add-collateral-core.js index b5bf0f04899..b06f021a7e8 100644 --- a/packages/builders/scripts/inter-protocol/add-collateral-core.js +++ b/packages/builders/scripts/inter-protocol/add-collateral-core.js @@ -103,6 +103,7 @@ export const psmProposalBuilder = async ( }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); diff --git a/packages/builders/scripts/inter-protocol/init-core.js b/packages/builders/scripts/inter-protocol/init-core.js index ecd1ff137bf..6fdfec4f9aa 100644 --- a/packages/builders/scripts/inter-protocol/init-core.js +++ b/packages/builders/scripts/inter-protocol/init-core.js @@ -184,6 +184,7 @@ export const defaultProposalBuilder = async ( }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); diff --git a/packages/builders/scripts/inter-protocol/invite-committee-core.js b/packages/builders/scripts/inter-protocol/invite-committee-core.js index 809c9bbcc60..87f2b632d90 100644 --- a/packages/builders/scripts/inter-protocol/invite-committee-core.js +++ b/packages/builders/scripts/inter-protocol/invite-committee-core.js @@ -36,6 +36,7 @@ export const defaultProposalBuilder = async ( }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('gov-invite-committee', defaultProposalBuilder); diff --git a/packages/builders/scripts/inter-protocol/replace-electorate-core.js b/packages/builders/scripts/inter-protocol/replace-electorate-core.js index 1db1ec482fc..351d24f4888 100644 --- a/packages/builders/scripts/inter-protocol/replace-electorate-core.js +++ b/packages/builders/scripts/inter-protocol/replace-electorate-core.js @@ -95,6 +95,8 @@ const configurations = { const { keys } = Object; const Usage = `agoric run replace-electorate-core.js ${keys(configurations).join(' | ')}`; + +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { scriptArgs } = endowments; const variant = scriptArgs?.[0]; diff --git a/packages/builders/scripts/inter-protocol/updatePriceFeeds.js b/packages/builders/scripts/inter-protocol/updatePriceFeeds.js index ba07be3bb5f..c71e25ce3fd 100644 --- a/packages/builders/scripts/inter-protocol/updatePriceFeeds.js +++ b/packages/builders/scripts/inter-protocol/updatePriceFeeds.js @@ -66,6 +66,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }, opts) => { const { keys } = Object; const Usage = `agoric run updatePriceFeed.js ${keys(configurations).join(' | ')}`; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { scriptArgs } = endowments; const config = configurations[scriptArgs?.[0]]; diff --git a/packages/builders/scripts/orchestration/init-basic-flows.js b/packages/builders/scripts/orchestration/init-basic-flows.js index 2ca1873ef83..ab2de229cf3 100644 --- a/packages/builders/scripts/orchestration/init-basic-flows.js +++ b/packages/builders/scripts/orchestration/init-basic-flows.js @@ -20,6 +20,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval(startBasicFlows.name, defaultProposalBuilder); diff --git a/packages/builders/scripts/orchestration/init-stakeAtom.js b/packages/builders/scripts/orchestration/init-stakeAtom.js index 3d5f6e1454d..276eedef0ee 100644 --- a/packages/builders/scripts/orchestration/init-stakeAtom.js +++ b/packages/builders/scripts/orchestration/init-stakeAtom.js @@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('start-stakeAtom', defaultProposalBuilder); diff --git a/packages/builders/scripts/orchestration/init-stakeBld.js b/packages/builders/scripts/orchestration/init-stakeBld.js index f3db614e777..506e335f497 100644 --- a/packages/builders/scripts/orchestration/init-stakeBld.js +++ b/packages/builders/scripts/orchestration/init-stakeBld.js @@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('start-stakeBld', defaultProposalBuilder); diff --git a/packages/builders/scripts/orchestration/init-stakeOsmo.js b/packages/builders/scripts/orchestration/init-stakeOsmo.js index a0cb295364e..66d99a29f6e 100644 --- a/packages/builders/scripts/orchestration/init-stakeOsmo.js +++ b/packages/builders/scripts/orchestration/init-stakeOsmo.js @@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('start-stakeOsmo', defaultProposalBuilder); diff --git a/packages/builders/scripts/orchestration/write-chain-info.js b/packages/builders/scripts/orchestration/write-chain-info.js index 10e8e9abad3..1d0fb42bf39 100644 --- a/packages/builders/scripts/orchestration/write-chain-info.js +++ b/packages/builders/scripts/orchestration/write-chain-info.js @@ -7,6 +7,7 @@ export const defaultProposalBuilder = async () => getManifestCall: ['getManifestForChainInfo'], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('gov-orchestration', defaultProposalBuilder); diff --git a/packages/builders/scripts/pegasus/init-core.js b/packages/builders/scripts/pegasus/init-core.js index e236bb4a86c..2b415007d23 100644 --- a/packages/builders/scripts/pegasus/init-core.js +++ b/packages/builders/scripts/pegasus/init-core.js @@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('gov-pegasus', defaultProposalBuilder); diff --git a/packages/builders/scripts/smart-wallet/build-game1-start.js b/packages/builders/scripts/smart-wallet/build-game1-start.js index aee88216584..4807dd08e13 100644 --- a/packages/builders/scripts/smart-wallet/build-game1-start.js +++ b/packages/builders/scripts/smart-wallet/build-game1-start.js @@ -27,6 +27,7 @@ const game1ProposalBuilder = async ({ publishRef, install }) => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('start-game1', game1ProposalBuilder); diff --git a/packages/builders/scripts/smart-wallet/build-wallet-factory2-upgrade.js b/packages/builders/scripts/smart-wallet/build-wallet-factory2-upgrade.js index 4ddf795737d..07dcaacffe0 100644 --- a/packages/builders/scripts/smart-wallet/build-wallet-factory2-upgrade.js +++ b/packages/builders/scripts/smart-wallet/build-wallet-factory2-upgrade.js @@ -22,6 +22,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('upgrade-wallet-factory', defaultProposalBuilder); diff --git a/packages/builders/scripts/smart-wallet/build-walletFactory-upgrade.js b/packages/builders/scripts/smart-wallet/build-walletFactory-upgrade.js index f42794efa4d..d189b88946b 100644 --- a/packages/builders/scripts/smart-wallet/build-walletFactory-upgrade.js +++ b/packages/builders/scripts/smart-wallet/build-walletFactory-upgrade.js @@ -28,6 +28,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('upgrade-walletFactory', defaultProposalBuilder); diff --git a/packages/builders/scripts/testing/add-LEMONS.js b/packages/builders/scripts/testing/add-LEMONS.js index a17827f3684..b1a344d18c7 100644 --- a/packages/builders/scripts/testing/add-LEMONS.js +++ b/packages/builders/scripts/testing/add-LEMONS.js @@ -17,6 +17,7 @@ const starsVaultProposalBuilder = async powers => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('add-STARS-collateral', starsVaultProposalBuilder); diff --git a/packages/builders/scripts/testing/add-OLIVES.js b/packages/builders/scripts/testing/add-OLIVES.js index 011d70e3e3b..41d7e08ff22 100644 --- a/packages/builders/scripts/testing/add-OLIVES.js +++ b/packages/builders/scripts/testing/add-OLIVES.js @@ -16,6 +16,7 @@ const stars2VaultProposalBuilder = async powers => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('add-STARS2-collateral', stars2VaultProposalBuilder); diff --git a/packages/builders/scripts/testing/append-chain-info.js b/packages/builders/scripts/testing/append-chain-info.js index 4c4b7f6692c..69cb49497b3 100644 --- a/packages/builders/scripts/testing/append-chain-info.js +++ b/packages/builders/scripts/testing/append-chain-info.js @@ -41,6 +41,7 @@ export const defaultProposalBuilder = async () => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('revise-chain-info', defaultProposalBuilder); diff --git a/packages/builders/scripts/testing/fix-buggy-sendAnywhere.js b/packages/builders/scripts/testing/fix-buggy-sendAnywhere.js index fdb31f11d44..8daa2dbf516 100644 --- a/packages/builders/scripts/testing/fix-buggy-sendAnywhere.js +++ b/packages/builders/scripts/testing/fix-buggy-sendAnywhere.js @@ -133,6 +133,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/restart-basic-flows.js b/packages/builders/scripts/testing/restart-basic-flows.js index ac4c7b3f02f..45e7b9b25a2 100644 --- a/packages/builders/scripts/testing/restart-basic-flows.js +++ b/packages/builders/scripts/testing/restart-basic-flows.js @@ -91,6 +91,7 @@ export const defaultProposalBuilder = async () => getManifestCall: [getManifest.name], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/restart-send-anywhere.js b/packages/builders/scripts/testing/restart-send-anywhere.js index 95b682248cc..62a967ad3ed 100644 --- a/packages/builders/scripts/testing/restart-send-anywhere.js +++ b/packages/builders/scripts/testing/restart-send-anywhere.js @@ -91,6 +91,7 @@ export const defaultProposalBuilder = async () => getManifestCall: [getManifest.name], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/restart-stakeAtom.js b/packages/builders/scripts/testing/restart-stakeAtom.js index 7568d0048e2..a1ddc9a0077 100644 --- a/packages/builders/scripts/testing/restart-stakeAtom.js +++ b/packages/builders/scripts/testing/restart-stakeAtom.js @@ -81,6 +81,7 @@ export const defaultProposalBuilder = async () => getManifestCall: [getManifest.name], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/restart-valueVow.js b/packages/builders/scripts/testing/restart-valueVow.js index 79f563b2ac1..76dc48c1a92 100644 --- a/packages/builders/scripts/testing/restart-valueVow.js +++ b/packages/builders/scripts/testing/restart-valueVow.js @@ -72,6 +72,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/start-auto-stake-it.js b/packages/builders/scripts/testing/start-auto-stake-it.js index e7c495228b0..8a02140c012 100644 --- a/packages/builders/scripts/testing/start-auto-stake-it.js +++ b/packages/builders/scripts/testing/start-auto-stake-it.js @@ -118,6 +118,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/start-buggy-sendAnywhere.js b/packages/builders/scripts/testing/start-buggy-sendAnywhere.js index 7ba83f8c950..6f5ac66ee1d 100644 --- a/packages/builders/scripts/testing/start-buggy-sendAnywhere.js +++ b/packages/builders/scripts/testing/start-buggy-sendAnywhere.js @@ -133,6 +133,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/start-query-flows.js b/packages/builders/scripts/testing/start-query-flows.js index fc7e947bb7e..c0b23572d03 100644 --- a/packages/builders/scripts/testing/start-query-flows.js +++ b/packages/builders/scripts/testing/start-query-flows.js @@ -125,6 +125,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/start-send-anywhere.js b/packages/builders/scripts/testing/start-send-anywhere.js index 71efef5df54..e29d043ccb8 100644 --- a/packages/builders/scripts/testing/start-send-anywhere.js +++ b/packages/builders/scripts/testing/start-send-anywhere.js @@ -126,6 +126,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/start-valueVow.js b/packages/builders/scripts/testing/start-valueVow.js index 9afc08fea8a..01b9ed1f30d 100644 --- a/packages/builders/scripts/testing/start-valueVow.js +++ b/packages/builders/scripts/testing/start-valueVow.js @@ -83,6 +83,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { // import dynamically so the module can work in CoreEval environment const dspModule = await import('@agoric/deploy-script-support'); diff --git a/packages/builders/scripts/testing/tweak-chain-info.js b/packages/builders/scripts/testing/tweak-chain-info.js index ee5ce2da41a..54e5e5d6959 100644 --- a/packages/builders/scripts/testing/tweak-chain-info.js +++ b/packages/builders/scripts/testing/tweak-chain-info.js @@ -44,6 +44,7 @@ export const defaultProposalBuilder = async () => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('revise-chain-info', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/add-auction.js b/packages/builders/scripts/vats/add-auction.js index 034d95cab1b..0ea0aeb3e4b 100644 --- a/packages/builders/scripts/vats/add-auction.js +++ b/packages/builders/scripts/vats/add-auction.js @@ -24,6 +24,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('add-auction', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/init-core.js b/packages/builders/scripts/vats/init-core.js index ea98a1a1aca..10266d38ccb 100644 --- a/packages/builders/scripts/vats/init-core.js +++ b/packages/builders/scripts/vats/init-core.js @@ -25,6 +25,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('gov-vats', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/init-localchain.js b/packages/builders/scripts/vats/init-localchain.js index 5c98c57a8a7..95a968e43be 100644 --- a/packages/builders/scripts/vats/init-localchain.js +++ b/packages/builders/scripts/vats/init-localchain.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('gov-localchain', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/init-network.js b/packages/builders/scripts/vats/init-network.js index 760e2020a36..9d7016bf904 100644 --- a/packages/builders/scripts/vats/init-network.js +++ b/packages/builders/scripts/vats/init-network.js @@ -13,6 +13,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('gov-network', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/init-orchestration.js b/packages/builders/scripts/vats/init-orchestration.js index ed878c74cc8..6a78017d751 100644 --- a/packages/builders/scripts/vats/init-orchestration.js +++ b/packages/builders/scripts/vats/init-orchestration.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('gov-orchestration', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/init-transfer.js b/packages/builders/scripts/vats/init-transfer.js index 2129c5c087f..2ed10912ae9 100644 --- a/packages/builders/scripts/vats/init-transfer.js +++ b/packages/builders/scripts/vats/init-transfer.js @@ -12,6 +12,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreProposal } = await makeHelpers(homeP, endowments); await writeCoreProposal('gov-transfer', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/probe-zcf-bundle.js b/packages/builders/scripts/vats/probe-zcf-bundle.js index 2baf0fa9d0f..17afb9c3d8e 100644 --- a/packages/builders/scripts/vats/probe-zcf-bundle.js +++ b/packages/builders/scripts/vats/probe-zcf-bundle.js @@ -16,6 +16,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('probeZcfBundle', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/replace-provisioning.js b/packages/builders/scripts/vats/replace-provisioning.js index d7d43246c5b..b167fdae9a7 100644 --- a/packages/builders/scripts/vats/replace-provisioning.js +++ b/packages/builders/scripts/vats/replace-provisioning.js @@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('gov-provisioning', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/replace-zoe.js b/packages/builders/scripts/vats/replace-zoe.js index a610c433f72..da700b5addf 100644 --- a/packages/builders/scripts/vats/replace-zoe.js +++ b/packages/builders/scripts/vats/replace-zoe.js @@ -13,6 +13,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('replace-zcf', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/restart-vats.js b/packages/builders/scripts/vats/restart-vats.js index 0ae8af2af8b..6d6ba4fbf28 100644 --- a/packages/builders/scripts/vats/restart-vats.js +++ b/packages/builders/scripts/vats/restart-vats.js @@ -19,6 +19,7 @@ export const defaultProposalBuilder = async () => { }); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('restart-vats', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/revive-kread.js b/packages/builders/scripts/vats/revive-kread.js index 72d22da477c..c690bfcd995 100644 --- a/packages/builders/scripts/vats/revive-kread.js +++ b/packages/builders/scripts/vats/revive-kread.js @@ -7,6 +7,7 @@ export const defaultProposalBuilder = async () => getManifestCall: ['getManifestForKread'], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreProposal } = await makeHelpers(homeP, endowments); await writeCoreProposal('revive-kread', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/test-localchain.js b/packages/builders/scripts/vats/test-localchain.js index 9f7c4de5bc6..8c78e125680 100644 --- a/packages/builders/scripts/vats/test-localchain.js +++ b/packages/builders/scripts/vats/test-localchain.js @@ -12,6 +12,7 @@ export const defaultProposalBuilder = async _powers => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('test-localchain', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/test-vtransfer.js b/packages/builders/scripts/vats/test-vtransfer.js index 96c1bbd9a78..593972d7a8d 100644 --- a/packages/builders/scripts/vats/test-vtransfer.js +++ b/packages/builders/scripts/vats/test-vtransfer.js @@ -12,6 +12,7 @@ export const defaultProposalBuilder = async _powers => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreProposal } = await makeHelpers(homeP, endowments); await writeCoreProposal('test-vtransfer', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/updateAtomPriceFeed.js b/packages/builders/scripts/vats/updateAtomPriceFeed.js index 8651462510f..87373a4c3b9 100644 --- a/packages/builders/scripts/vats/updateAtomPriceFeed.js +++ b/packages/builders/scripts/vats/updateAtomPriceFeed.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { return priceFeedProposalBuilder({ publishRef, install }, OPTIONS); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); diff --git a/packages/builders/scripts/vats/updateStAtomPriceFeed.js b/packages/builders/scripts/vats/updateStAtomPriceFeed.js index 456c1b73fff..75cf062e9e8 100644 --- a/packages/builders/scripts/vats/updateStAtomPriceFeed.js +++ b/packages/builders/scripts/vats/updateStAtomPriceFeed.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { return priceFeedProposalBuilder({ publishRef, install }, OPTIONS); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); diff --git a/packages/builders/scripts/vats/updateStOsmoPriceFeed.js b/packages/builders/scripts/vats/updateStOsmoPriceFeed.js index da8e272c5fb..59bac5af02c 100644 --- a/packages/builders/scripts/vats/updateStOsmoPriceFeed.js +++ b/packages/builders/scripts/vats/updateStOsmoPriceFeed.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { return priceFeedProposalBuilder({ publishRef, install }, OPTIONS); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); diff --git a/packages/builders/scripts/vats/updateStTiaPriceFeed.js b/packages/builders/scripts/vats/updateStTiaPriceFeed.js index d004c65bea0..53a3e0d1b0a 100644 --- a/packages/builders/scripts/vats/updateStTiaPriceFeed.js +++ b/packages/builders/scripts/vats/updateStTiaPriceFeed.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { return priceFeedProposalBuilder({ publishRef, install }, OPTIONS); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); diff --git a/packages/builders/scripts/vats/updateStkAtomPriceFeed.js b/packages/builders/scripts/vats/updateStkAtomPriceFeed.js index 1226b7e201f..08d2120a800 100644 --- a/packages/builders/scripts/vats/updateStkAtomPriceFeed.js +++ b/packages/builders/scripts/vats/updateStkAtomPriceFeed.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => { return priceFeedProposalBuilder({ publishRef, install }, OPTIONS); }; +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); diff --git a/packages/builders/scripts/vats/upgrade-bank.js b/packages/builders/scripts/vats/upgrade-bank.js index ce3d5a9b5b6..af6a8ea2522 100644 --- a/packages/builders/scripts/vats/upgrade-bank.js +++ b/packages/builders/scripts/vats/upgrade-bank.js @@ -12,6 +12,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreProposal } = await makeHelpers(homeP, endowments); await writeCoreProposal('upgrade-bank', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/upgrade-orch-core.js b/packages/builders/scripts/vats/upgrade-orch-core.js index a4d8a21087b..47a0a6d437d 100644 --- a/packages/builders/scripts/vats/upgrade-orch-core.js +++ b/packages/builders/scripts/vats/upgrade-orch-core.js @@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreProposal } = await makeHelpers(homeP, endowments); await writeCoreProposal('upgrade-network', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/upgrade-provisionPool.js b/packages/builders/scripts/vats/upgrade-provisionPool.js index 9ffce9b822b..3f5b56dc79f 100644 --- a/packages/builders/scripts/vats/upgrade-provisionPool.js +++ b/packages/builders/scripts/vats/upgrade-provisionPool.js @@ -14,6 +14,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreProposal } = await makeHelpers(homeP, endowments); await writeCoreProposal('upgrade-provision-pool', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/upgrade-zcf.js b/packages/builders/scripts/vats/upgrade-zcf.js index 4ba46b8f3db..eeea13add60 100644 --- a/packages/builders/scripts/vats/upgrade-zcf.js +++ b/packages/builders/scripts/vats/upgrade-zcf.js @@ -12,6 +12,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('upgrade-zcf', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/upgrade-zoe.js b/packages/builders/scripts/vats/upgrade-zoe.js index 279a47b41dc..532a8410a07 100644 --- a/packages/builders/scripts/vats/upgrade-zoe.js +++ b/packages/builders/scripts/vats/upgrade-zoe.js @@ -12,6 +12,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('upgrade-zoe', defaultProposalBuilder); diff --git a/packages/builders/scripts/vats/upgradeScaledPriceAuthorities.js b/packages/builders/scripts/vats/upgradeScaledPriceAuthorities.js index 0191830cfcd..d61ba63fe71 100644 --- a/packages/builders/scripts/vats/upgradeScaledPriceAuthorities.js +++ b/packages/builders/scripts/vats/upgradeScaledPriceAuthorities.js @@ -15,6 +15,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); diff --git a/packages/builders/scripts/vats/upgradeVaults.js b/packages/builders/scripts/vats/upgradeVaults.js index d2996e1d5aa..6a37cf1e990 100644 --- a/packages/builders/scripts/vats/upgradeVaults.js +++ b/packages/builders/scripts/vats/upgradeVaults.js @@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => ], }); +/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ export default async (homeP, endowments) => { const { writeCoreEval } = await makeHelpers(homeP, endowments); await writeCoreEval('upgrade-vaults', defaultProposalBuilder);