@agoric/builders 0.1.1-dev-d6fae11.0.d6fae11 → 0.1.1-dev-64cee5a.0.64cee5a

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.
Files changed (80) hide show
  1. package/package.json +18 -18
  2. package/scripts/inter-protocol/add-STARS.js +8 -3
  3. package/scripts/inter-protocol/add-collateral-core.js +10 -4
  4. package/scripts/inter-protocol/init-core.js +7 -2
  5. package/scripts/inter-protocol/invite-committee-core.js +7 -2
  6. package/scripts/inter-protocol/manual-price-feed.js +5 -1
  7. package/scripts/inter-protocol/price-feed-core.js +5 -1
  8. package/scripts/inter-protocol/replace-electorate-core.js +9 -3
  9. package/scripts/inter-protocol/replace-feeDistributor-combo.js +7 -2
  10. package/scripts/inter-protocol/replace-feeDistributor.js +7 -2
  11. package/scripts/inter-protocol/updatePriceFeeds.js +7 -3
  12. package/scripts/inter-protocol/withdraw-reserve.build.js +7 -2
  13. package/scripts/orchestration/axelar-gmp.build.js +4 -2
  14. package/scripts/orchestration/hook-localchain-msg-send.js +7 -2
  15. package/scripts/orchestration/init-basic-flows.js +7 -2
  16. package/scripts/orchestration/init-stakeAtom.js +7 -2
  17. package/scripts/orchestration/init-stakeBld.js +7 -2
  18. package/scripts/orchestration/init-stakeOsmo.js +7 -2
  19. package/scripts/orchestration/write-chain-info.js +7 -2
  20. package/scripts/pegasus/init-core.js +7 -2
  21. package/scripts/smart-wallet/build-game1-start.js +7 -2
  22. package/scripts/smart-wallet/build-wallet-factory2-upgrade.js +7 -2
  23. package/scripts/smart-wallet/build-walletFactory-upgrade.js +7 -2
  24. package/scripts/testing/add-LEMONS.js +7 -2
  25. package/scripts/testing/add-OLIVES.js +7 -2
  26. package/scripts/testing/add-USD-LEMONS.js +5 -1
  27. package/scripts/testing/add-USD-OLIVES.js +5 -1
  28. package/scripts/testing/append-chain-info.js +9 -3
  29. package/scripts/testing/init-auto-stake-it.js +7 -2
  30. package/scripts/testing/init-send-anywhere.js +7 -2
  31. package/scripts/testing/init-swap-anything.js +7 -2
  32. package/scripts/testing/provokeBOYD.js +7 -3
  33. package/scripts/testing/publish-test-info.js +7 -2
  34. package/scripts/testing/recorded-retired-instances.js +7 -2
  35. package/scripts/testing/replace-feeDistributor-short.js +7 -2
  36. package/scripts/testing/restart-axelar-gmp.js +4 -2
  37. package/scripts/testing/restart-basic-flows.js +4 -2
  38. package/scripts/testing/restart-send-anywhere.js +4 -2
  39. package/scripts/testing/restart-stakeAtom.js +4 -2
  40. package/scripts/testing/restart-valueVow.js +6 -3
  41. package/scripts/testing/start-query-flows.js +4 -2
  42. package/scripts/testing/start-valueVow.js +6 -3
  43. package/scripts/testing/test-upgraded-board.js +7 -2
  44. package/scripts/testing/tweak-chain-info.js +9 -3
  45. package/scripts/testing/upgrade-send-anywhere.js +4 -2
  46. package/scripts/testing/upgrade-vaultFactory.js +7 -2
  47. package/scripts/vats/add-auction.js +7 -2
  48. package/scripts/vats/init-core.js +7 -2
  49. package/scripts/vats/init-localchain.js +7 -2
  50. package/scripts/vats/init-network.js +7 -2
  51. package/scripts/vats/init-orchestration.js +7 -2
  52. package/scripts/vats/init-transfer.js +7 -2
  53. package/scripts/vats/priceFeedSupport.js +7 -3
  54. package/scripts/vats/probe-zcf-bundle.js +7 -2
  55. package/scripts/vats/replace-provisioning.js +7 -2
  56. package/scripts/vats/replace-zoe.js +7 -2
  57. package/scripts/vats/restart-vats.js +7 -2
  58. package/scripts/vats/revive-kread.js +7 -2
  59. package/scripts/vats/test-localchain.js +7 -2
  60. package/scripts/vats/test-vtransfer.js +7 -2
  61. package/scripts/vats/updateAtomPriceFeed.js +7 -2
  62. package/scripts/vats/updateStAtomPriceFeed.js +7 -2
  63. package/scripts/vats/updateStOsmoPriceFeed.js +7 -2
  64. package/scripts/vats/updateStTiaPriceFeed.js +7 -2
  65. package/scripts/vats/updateStkAtomPriceFeed.js +7 -2
  66. package/scripts/vats/upgrade-agoricNames.js +7 -2
  67. package/scripts/vats/upgrade-asset-reserve.js +7 -2
  68. package/scripts/vats/upgrade-bank.js +7 -2
  69. package/scripts/vats/upgrade-board.js +7 -2
  70. package/scripts/vats/upgrade-mintHolder.js +7 -2
  71. package/scripts/vats/upgrade-orchestration.js +7 -2
  72. package/scripts/vats/upgrade-paRegistry.js +7 -2
  73. package/scripts/vats/upgrade-provisionPool-to-BLD.js +7 -2
  74. package/scripts/vats/upgrade-provisionPool.js +7 -2
  75. package/scripts/vats/upgrade-psm.js +7 -2
  76. package/scripts/vats/upgrade-vats.js +6 -2
  77. package/scripts/vats/upgrade-zcf.js +7 -2
  78. package/scripts/vats/upgrade-zoe.js +7 -2
  79. package/scripts/vats/upgradeScaledPriceAuthorities.js +7 -2
  80. package/scripts/vats/upgradeVaults.js +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/builders",
3
- "version": "0.1.1-dev-d6fae11.0.d6fae11",
3
+ "version": "0.1.1-dev-64cee5a.0.64cee5a",
4
4
  "description": "Build scripts for proposals to an Agoric chain",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -23,14 +23,14 @@
23
23
  "author": "Agoric",
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@agoric/client-utils": "0.1.1-dev-d6fae11.0.d6fae11",
27
- "@agoric/ertp": "0.16.3-dev-d6fae11.0.d6fae11",
28
- "@agoric/internal": "0.3.3-dev-d6fae11.0.d6fae11",
29
- "@agoric/notifier": "0.6.3-dev-d6fae11.0.d6fae11",
30
- "@agoric/smart-wallet": "0.5.4-dev-d6fae11.0.d6fae11",
31
- "@agoric/vat-data": "0.5.3-dev-d6fae11.0.d6fae11",
32
- "@agoric/vats": "0.15.2-dev-d6fae11.0.d6fae11",
33
- "@agoric/zoe": "0.26.3-dev-d6fae11.0.d6fae11",
26
+ "@agoric/client-utils": "0.1.1-dev-64cee5a.0.64cee5a",
27
+ "@agoric/ertp": "0.16.3-dev-64cee5a.0.64cee5a",
28
+ "@agoric/internal": "0.3.3-dev-64cee5a.0.64cee5a",
29
+ "@agoric/notifier": "0.6.3-dev-64cee5a.0.64cee5a",
30
+ "@agoric/smart-wallet": "0.5.4-dev-64cee5a.0.64cee5a",
31
+ "@agoric/vat-data": "0.5.3-dev-64cee5a.0.64cee5a",
32
+ "@agoric/vats": "0.15.2-dev-64cee5a.0.64cee5a",
33
+ "@agoric/zoe": "0.26.3-dev-64cee5a.0.64cee5a",
34
34
  "@endo/bundle-source": "^4.1.2",
35
35
  "@endo/captp": "^4.4.8",
36
36
  "@endo/eventual-send": "^1.3.4",
@@ -44,14 +44,14 @@
44
44
  "import-meta-resolve": "^4.1.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@agoric/deploy-script-support": "0.10.4-dev-d6fae11.0.d6fae11",
48
- "@agoric/governance": "0.10.4-dev-d6fae11.0.d6fae11",
49
- "@agoric/inter-protocol": "0.16.2-dev-d6fae11.0.d6fae11",
50
- "@agoric/orchestration": "0.1.1-dev-d6fae11.0.d6fae11",
51
- "@agoric/store": "0.9.3-dev-d6fae11.0.d6fae11",
52
- "@agoric/swing-store": "0.9.2-dev-d6fae11.0.d6fae11",
53
- "@agoric/swingset-liveslots": "0.10.3-dev-d6fae11.0.d6fae11",
54
- "@agoric/time": "0.3.3-dev-d6fae11.0.d6fae11",
47
+ "@agoric/deploy-script-support": "0.10.4-dev-64cee5a.0.64cee5a",
48
+ "@agoric/governance": "0.10.4-dev-64cee5a.0.64cee5a",
49
+ "@agoric/inter-protocol": "0.16.2-dev-64cee5a.0.64cee5a",
50
+ "@agoric/orchestration": "0.1.1-dev-64cee5a.0.64cee5a",
51
+ "@agoric/store": "0.9.3-dev-64cee5a.0.64cee5a",
52
+ "@agoric/swing-store": "0.9.2-dev-64cee5a.0.64cee5a",
53
+ "@agoric/swingset-liveslots": "0.10.3-dev-64cee5a.0.64cee5a",
54
+ "@agoric/time": "0.3.3-dev-64cee5a.0.64cee5a",
55
55
  "@endo/errors": "^1.2.13",
56
56
  "ava": "^5.3.0",
57
57
  "c8": "^10.1.3"
@@ -84,5 +84,5 @@
84
84
  "typeCoverage": {
85
85
  "atLeast": 90.26
86
86
  },
87
- "gitHead": "d6fae11a6db28b1122089468183eccd4d47b83c9"
87
+ "gitHead": "64cee5ae5d1a3488a30ce042d6f3f561ac2a6e82"
88
88
  }
@@ -2,7 +2,12 @@ import { makeHelpers } from '@agoric/deploy-script-support';
2
2
  import { defaultProposalBuilder as vaultProposalBuilder } from './add-collateral-core.js';
3
3
  import { defaultProposalBuilder as oraclesProposalBuilder } from './price-feed-core.js';
4
4
 
5
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
5
+ /**
6
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
7
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
8
+ */
9
+
10
+ /** @type {CoreEvalBuilder} */
6
11
  const starsVaultProposalBuilder = async powers => {
7
12
  return vaultProposalBuilder(powers, {
8
13
  interchainAssetOptions: {
@@ -17,7 +22,7 @@ const starsVaultProposalBuilder = async powers => {
17
22
  });
18
23
  };
19
24
 
20
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
25
+ /** @type {CoreEvalBuilder} */
21
26
  const starsOraclesProposalBuilder = async powers => {
22
27
  return oraclesProposalBuilder(powers, {
23
28
  AGORIC_INSTANCE_NAME: `STARS-USD price feed`,
@@ -36,7 +41,7 @@ const starsOraclesProposalBuilder = async powers => {
36
41
  });
37
42
  };
38
43
 
39
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
44
+ /** @type {DeployScriptFunction} */
40
45
  export default async (homeP, endowments) => {
41
46
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
42
47
  await writeCoreEval('add-STARS', starsVaultProposalBuilder);
@@ -5,7 +5,13 @@ import { getManifestForAddAssetToVault } from '@agoric/inter-protocol/src/propos
5
5
  import { getManifestForPsm } from '@agoric/inter-protocol/src/proposals/startPSM.js';
6
6
  import { makeInstallCache } from '@agoric/inter-protocol/src/proposals/utils.js';
7
7
 
8
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
8
+ /**
9
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
10
+ * @import {InterchainAssetOptions} from '@agoric/inter-protocol/src/proposals/addAssetToVault.js';
11
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
12
+ */
13
+
14
+ /** @type {CoreEvalBuilder} */
9
15
  export const defaultProposalBuilder = async (
10
16
  { publishRef, install: install0, wrapInstall },
11
17
  {
@@ -15,7 +21,7 @@ export const defaultProposalBuilder = async (
15
21
  } = {},
16
22
  { env = process.env } = {},
17
23
  ) => {
18
- /** @type {import('@agoric/inter-protocol/src/proposals/addAssetToVault.js').InterchainAssetOptions} */
24
+ /** @type {InterchainAssetOptions} */
19
25
  const {
20
26
  issuerBoardId = env.INTERCHAIN_ISSUER_BOARD_ID,
21
27
  denom = env.INTERCHAIN_DENOM,
@@ -62,7 +68,7 @@ export const defaultProposalBuilder = async (
62
68
  });
63
69
  };
64
70
 
65
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
71
+ /** @type {CoreEvalBuilder} */
66
72
  export const psmProposalBuilder = async (
67
73
  { publishRef, install: install0, wrapInstall },
68
74
  { anchorOptions = /** @type {object} */ ({}) } = {},
@@ -103,7 +109,7 @@ export const psmProposalBuilder = async (
103
109
  });
104
110
  };
105
111
 
106
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
112
+ /** @type {DeployScriptFunction} */
107
113
  export default async (homeP, endowments) => {
108
114
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
109
115
 
@@ -14,6 +14,11 @@ import {
14
14
  } from '@agoric/inter-protocol/src/proposals/core-proposal.js';
15
15
  import { makeInstallCache } from '@agoric/inter-protocol/src/proposals/utils.js';
16
16
 
17
+ /**
18
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
19
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
20
+ */
21
+
17
22
  // TODO end inter-package filesystem references https://github.com/Agoric/agoric-sdk/issues/8178
18
23
 
19
24
  /** @type {Record<string, Record<string, [string, string]>>} */
@@ -125,7 +130,7 @@ export const mainProposalBuilder = async ({
125
130
  };
126
131
 
127
132
  // Build proposal for sim-chain etc.
128
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
133
+ /** @type {CoreEvalBuilder} */
129
134
  export const defaultProposalBuilder = async (
130
135
  { publishRef, install },
131
136
  options = {},
@@ -184,7 +189,7 @@ export const defaultProposalBuilder = async (
184
189
  });
185
190
  };
186
191
 
187
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
192
+ /** @type {DeployScriptFunction} */
188
193
  export default async (homeP, endowments) => {
189
194
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
190
195
 
@@ -3,8 +3,13 @@ import { makeHelpers } from '@agoric/deploy-script-support';
3
3
 
4
4
  import { getManifestForInviteCommittee } from '@agoric/inter-protocol/src/proposals/committee-proposal.js';
5
5
 
6
+ /**
7
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
8
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
9
+ */
10
+
6
11
  // Build proposal for sim-chain etc.
7
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
12
+ /** @type {CoreEvalBuilder} */
8
13
  export const defaultProposalBuilder = async (
9
14
  { publishRef, install },
10
15
  options = {},
@@ -36,7 +41,7 @@ export const defaultProposalBuilder = async (
36
41
  });
37
42
  };
38
43
 
39
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
44
+ /** @type {DeployScriptFunction} */
40
45
  export default async (homeP, endowments) => {
41
46
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
42
47
  await writeCoreEval('gov-invite-committee', defaultProposalBuilder);
@@ -4,6 +4,10 @@ import { makeNotifierFromAsyncIterable } from '@agoric/notifier';
4
4
 
5
5
  import process from 'process';
6
6
 
7
+ /**
8
+ * @import {Board} from '@agoric/vats';
9
+ */
10
+
7
11
  /**
8
12
  * After extracting the oracleAdmins to entries in home.scratch, you can use one
9
13
  * from the REPL like:
@@ -22,7 +26,7 @@ import process from 'process';
22
26
  * E(qn).getUpdateSince()
23
27
  *
24
28
  * @typedef {{
25
- * board: import('@agoric/vats').Board;
29
+ * board: Board;
26
30
  * chainTimerService;
27
31
  * scratch;
28
32
  * zoe;
@@ -1,6 +1,10 @@
1
1
  /* eslint-env node */
2
2
  import { makeHelpers } from '@agoric/deploy-script-support';
3
3
 
4
+ /**
5
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
6
+ */
7
+
4
8
  export const DEFAULT_CONTRACT_TERMS = {
5
9
  POLL_INTERVAL: 30n,
6
10
  maxSubmissionCount: 1000,
@@ -11,7 +15,7 @@ export const DEFAULT_CONTRACT_TERMS = {
11
15
  maxSubmissionValue: 2n ** 256n,
12
16
  };
13
17
 
14
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
18
+ /** @type {CoreEvalBuilder} */
15
19
  export const defaultProposalBuilder = async (
16
20
  { publishRef, install },
17
21
  options = {},
@@ -16,7 +16,13 @@
16
16
  import { makeHelpers } from '@agoric/deploy-script-support';
17
17
  import { getManifestForReplaceAllElectorates } from '@agoric/inter-protocol/src/proposals/replaceElectorate.js';
18
18
 
19
- /** @typedef {Parameters<typeof import('@agoric/inter-protocol/src/proposals/replaceElectorate.js').replaceAllElectorates>[1]['options']} ReplaceElectorateOptions */
19
+ /**
20
+ * @import {replaceAllElectorates} from '@agoric/inter-protocol/src/proposals/replaceElectorate.js';
21
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
22
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
23
+ */
24
+
25
+ /** @typedef {Parameters<typeof replaceAllElectorates>[1]['options']} ReplaceElectorateOptions */
20
26
 
21
27
  /** @type {Record<string, ReplaceElectorateOptions>} */
22
28
  const configurations = {
@@ -93,7 +99,7 @@ const configurations = {
93
99
  const { keys } = Object;
94
100
  const knownVariants = keys(configurations);
95
101
 
96
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
102
+ /** @type {CoreEvalBuilder} */
97
103
  export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
98
104
  const config = opts.config || configurations[opts.variant];
99
105
  if (!config) {
@@ -131,7 +137,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
131
137
 
132
138
  const Usage = `agoric run replace-electorate-core.js ${[...knownVariants, '<json-config>'].join(' | ')}`;
133
139
 
134
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
140
+ /** @type {DeployScriptFunction} */
135
141
  export default async (homeP, endowments) => {
136
142
  const { scriptArgs } = endowments;
137
143
  const variantOrConfig = scriptArgs?.[0];
@@ -2,6 +2,11 @@ import { parseScriptArgs, makeHelpers } from '@agoric/deploy-script-support';
2
2
  import { getManifestForReplaceFeeDistributor } from '@agoric/inter-protocol/src/proposals/replace-fee-distributor.js';
3
3
  import { SECONDS_PER_HOUR } from '@agoric/inter-protocol/src/proposals/econ-behaviors.js';
4
4
 
5
+ /**
6
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
7
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
8
+ */
9
+
5
10
  const configurations = {
6
11
  A3P_INTEGRATION: {
7
12
  params: {
@@ -44,7 +49,7 @@ const configurations = {
44
49
  const { keys } = Object;
45
50
  const knownVariants = keys(configurations);
46
51
 
47
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
52
+ /** @type {CoreEvalBuilder} */
48
53
  export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
49
54
  const config = opts.config || configurations[opts.variant];
50
55
  console.log('feeDist OPTS', opts, config);
@@ -70,7 +75,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
70
75
  });
71
76
  };
72
77
 
73
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
78
+ /** @type {DeployScriptFunction} */
74
79
  export default async (homeP, endowments) => {
75
80
  const name = 'replace-feeDistributor-combo';
76
81
  const opts = parseScriptArgs(endowments, name, knownVariants);
@@ -2,7 +2,12 @@ import { makeHelpers } from '@agoric/deploy-script-support';
2
2
  import { getManifestForReplaceFeeDistributor } from '@agoric/inter-protocol/src/proposals/replace-fee-distributor.js';
3
3
  import { SECONDS_PER_HOUR } from '@agoric/inter-protocol/src/proposals/econ-behaviors.js';
4
4
 
5
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
5
+ /**
6
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
7
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
8
+ */
9
+
10
+ /** @type {CoreEvalBuilder} */
6
11
  export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
7
12
  console.log('feeDist OPTS', opts);
8
13
  return harden({
@@ -20,7 +25,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
20
25
  });
21
26
  };
22
27
 
23
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
28
+ /** @type {DeployScriptFunction} */
24
29
  export default async (homeP, endowments) => {
25
30
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
26
31
 
@@ -1,7 +1,11 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
  import { getManifestForPriceFeeds } from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js';
3
3
 
4
- /** @import {PriceFeedConfig} from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js'; */
4
+ /**
5
+ * @import {PriceFeedConfig} from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js';
6
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
7
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
8
+ */
5
9
 
6
10
  /** @type {Record<string, PriceFeedConfig>} */
7
11
  const configurations = {
@@ -56,7 +60,7 @@ const configurations = {
56
60
  const { keys } = Object;
57
61
  const knownVariants = keys(configurations);
58
62
 
59
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
63
+ /** @type {CoreEvalBuilder} */
60
64
  export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
61
65
  const config = opts.config || configurations[opts.variant];
62
66
  if (!config) {
@@ -96,7 +100,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
96
100
 
97
101
  const Usage = `agoric run updatePriceFeeds.js ${[...knownVariants, '<json-config>'].join(' | ')}`;
98
102
 
99
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
103
+ /** @type {DeployScriptFunction} */
100
104
  export default async (homeP, endowments) => {
101
105
  const { scriptArgs } = endowments;
102
106
  const variantOrConfig = scriptArgs?.[0];
@@ -4,6 +4,11 @@ import { isNat } from '@endo/nat';
4
4
  import { makeHelpers } from '@agoric/deploy-script-support';
5
5
  import { getManifestForInviteWithdrawer } from '@agoric/inter-protocol/src/proposals/withdraw-reserve-proposal.js';
6
6
 
7
+ /**
8
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
9
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
10
+ */
11
+
7
12
  /**
8
13
  * @template {{ type: string }} T
9
14
  * @typedef { T['type'] extends 'string' ? string : T['type'] extends 'boolean' ? boolean : (string | boolean) } TypeFromParseArgsOptionDescriptor
@@ -29,7 +34,7 @@ const cliOptions = /** @type {const} */ ({
29
34
  count: { type: 'string', multiple: false },
30
35
  });
31
36
 
32
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
37
+ /** @type {CoreEvalBuilder} */
33
38
  export const defaultProposalBuilder = async (
34
39
  { publishRef: _publishRef, install: _install },
35
40
  namedArgs = {},
@@ -48,7 +53,7 @@ export const defaultProposalBuilder = async (
48
53
  });
49
54
  };
50
55
 
51
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
56
+ /** @type {DeployScriptFunction} */
52
57
  export default async (homeP, endowments) => {
53
58
  const { scriptArgs: argv } = endowments;
54
59
  /** @type {{ values: Partial<CliOptions<typeof cliOptions>> }} */
@@ -12,6 +12,8 @@ import { getChainConfig } from './get-chain-config.js';
12
12
 
13
13
  /**
14
14
  * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
15
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
16
+ * @import {ParseArgsConfig} from 'node:util';
15
17
  */
16
18
 
17
19
  /** @type {CoreEvalBuilder} */
@@ -32,11 +34,11 @@ export const defaultProposalBuilder = async (
32
34
  ],
33
35
  });
34
36
 
35
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
37
+ /** @type {DeployScriptFunction} */
36
38
  export default async (homeP, endowments) => {
37
39
  const { scriptArgs } = endowments;
38
40
 
39
- /** @type {import('node:util').ParseArgsConfig['options']} */
41
+ /** @type {ParseArgsConfig['options']} */
40
42
  const options = {
41
43
  net: {
42
44
  type: 'string',
@@ -1,6 +1,11 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
 
3
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
3
+ /**
4
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
5
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
6
+ */
7
+
8
+ /** @type {CoreEvalBuilder} */
4
9
  export const defaultProposalBuilder = async ({ publishRef, install }) => {
5
10
  const vatNameToEntrypoint = {
6
11
  localchain: '@agoric/vats/src/vat-localchain.js',
@@ -23,7 +28,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
23
28
  });
24
29
  };
25
30
 
26
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
31
+ /** @type {DeployScriptFunction} */
27
32
  export default async (homeP, endowments) => {
28
33
  const { writeCoreProposal } = await makeHelpers(homeP, endowments);
29
34
  await writeCoreProposal('hook-localchain', defaultProposalBuilder);
@@ -2,7 +2,12 @@ import { makeHelpers } from '@agoric/deploy-script-support';
2
2
  import { startBasicFlows } from '@agoric/orchestration/src/proposals/start-basic-flows.js';
3
3
  import { parseChainHubOpts } from './helpers.js';
4
4
 
5
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
5
+ /**
6
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
7
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
8
+ */
9
+
10
+ /** @type {CoreEvalBuilder} */
6
11
  export const defaultProposalBuilder = async (
7
12
  { publishRef, install },
8
13
  options,
@@ -25,7 +30,7 @@ export const defaultProposalBuilder = async (
25
30
  });
26
31
  };
27
32
 
28
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
33
+ /** @type {DeployScriptFunction} */
29
34
  export default async (homeP, endowments) => {
30
35
  const { scriptArgs } = endowments;
31
36
  const opts = parseChainHubOpts(scriptArgs);
@@ -1,7 +1,12 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
  import { parseChainHubOpts } from './helpers.js';
3
3
 
4
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ /**
5
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
6
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
7
+ */
8
+
9
+ /** @type {CoreEvalBuilder} */
5
10
  export const defaultProposalBuilder = async (
6
11
  { publishRef, install },
7
12
  options,
@@ -22,7 +27,7 @@ export const defaultProposalBuilder = async (
22
27
  });
23
28
  };
24
29
 
25
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
30
+ /** @type {DeployScriptFunction} */
26
31
  export default async (homeP, endowments) => {
27
32
  const { scriptArgs } = endowments;
28
33
  const opts = parseChainHubOpts(scriptArgs);
@@ -1,7 +1,12 @@
1
1
  // @ts-check
2
2
  import { makeHelpers } from '@agoric/deploy-script-support';
3
3
 
4
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ /**
5
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
6
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
7
+ */
8
+
9
+ /** @type {CoreEvalBuilder} */
5
10
  export const defaultProposalBuilder = async ({ publishRef, install }) =>
6
11
  harden({
7
12
  sourceSpec: '@agoric/orchestration/src/proposals/start-stakeBld.js',
@@ -17,7 +22,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
17
22
  ],
18
23
  });
19
24
 
20
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
25
+ /** @type {DeployScriptFunction} */
21
26
  export default async (homeP, endowments) => {
22
27
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
23
28
  await writeCoreEval('start-stakeBld', defaultProposalBuilder);
@@ -1,7 +1,12 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
  import { parseChainHubOpts } from './helpers.js';
3
3
 
4
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ /**
5
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
6
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
7
+ */
8
+
9
+ /** @type {CoreEvalBuilder} */
5
10
  export const defaultProposalBuilder = async (
6
11
  { publishRef, install },
7
12
  options,
@@ -22,7 +27,7 @@ export const defaultProposalBuilder = async (
22
27
  });
23
28
  };
24
29
 
25
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
30
+ /** @type {DeployScriptFunction} */
26
31
  export default async (homeP, endowments) => {
27
32
  const { scriptArgs } = endowments;
28
33
  const opts = parseChainHubOpts(scriptArgs);
@@ -1,13 +1,18 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
 
3
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
3
+ /**
4
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
5
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
6
+ */
7
+
8
+ /** @type {CoreEvalBuilder} */
4
9
  export const defaultProposalBuilder = async () =>
5
10
  harden({
6
11
  sourceSpec: '@agoric/orchestration/src/proposals/init-chain-info.js',
7
12
  getManifestCall: ['getManifestForChainInfo'],
8
13
  });
9
14
 
10
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
15
+ /** @type {DeployScriptFunction} */
11
16
  export default async (homeP, endowments) => {
12
17
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
13
18
  await writeCoreEval('gov-orchestration', defaultProposalBuilder);
@@ -1,6 +1,11 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
 
3
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
3
+ /**
4
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
5
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
6
+ */
7
+
8
+ /** @type {CoreEvalBuilder} */
4
9
  export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
10
  harden({
6
11
  sourceSpec: '@agoric/pegasus/src/proposals/core-proposal.js',
@@ -17,7 +22,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
17
22
  ],
18
23
  });
19
24
 
20
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
25
+ /** @type {DeployScriptFunction} */
21
26
  export default async (homeP, endowments) => {
22
27
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
23
28
  await writeCoreEval('gov-pegasus', defaultProposalBuilder);
@@ -8,7 +8,12 @@
8
8
  import { makeHelpers } from '@agoric/deploy-script-support';
9
9
  import { getManifestForGame1 } from '@agoric/smart-wallet/test/start-game1-proposal.js';
10
10
 
11
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
11
+ /**
12
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
13
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
14
+ */
15
+
16
+ /** @type {CoreEvalBuilder} */
12
17
  const game1ProposalBuilder = async ({ publishRef, install }) => {
13
18
  return harden({
14
19
  sourceSpec: '@agoric/smart-wallet/test/start-game1-proposal.js',
@@ -27,7 +32,7 @@ const game1ProposalBuilder = async ({ publishRef, install }) => {
27
32
  });
28
33
  };
29
34
 
30
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
35
+ /** @type {DeployScriptFunction} */
31
36
  export default async (homeP, endowments) => {
32
37
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
33
38
  await writeCoreEval('start-game1', game1ProposalBuilder);
@@ -1,5 +1,10 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
 
3
+ /**
4
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
5
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
6
+ */
7
+
3
8
  /**
4
9
  * @file
5
10
  * `agoric run scripts/smart-wallet/build-wallet-factory2-upgrade.js`
@@ -7,7 +12,7 @@ import { makeHelpers } from '@agoric/deploy-script-support';
7
12
  * also prints helpful instructions for copying the files and installing them.
8
13
  */
9
14
 
10
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
15
+ /** @type {CoreEvalBuilder} */
11
16
  export const defaultProposalBuilder = async ({ publishRef, install }) =>
12
17
  harden({
13
18
  sourceSpec:
@@ -22,7 +27,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
22
27
  ],
23
28
  });
24
29
 
25
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
30
+ /** @type {DeployScriptFunction} */
26
31
  export default async (homeP, endowments) => {
27
32
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
28
33
  await writeCoreEval('upgrade-wallet-factory', defaultProposalBuilder);
@@ -8,7 +8,12 @@
8
8
  import { makeHelpers } from '@agoric/deploy-script-support';
9
9
  import { getManifestForUpgrade } from '@agoric/smart-wallet/src/proposals/upgrade-walletFactory-proposal.js';
10
10
 
11
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
11
+ /**
12
+ * @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
13
+ * @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
14
+ */
15
+
16
+ /** @type {CoreEvalBuilder} */
12
17
  export const defaultProposalBuilder = async ({ publishRef, install }) => {
13
18
  return harden({
14
19
  sourceSpec:
@@ -28,7 +33,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
28
33
  });
29
34
  };
30
35
 
31
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
36
+ /** @type {DeployScriptFunction} */
32
37
  export default async (homeP, endowments) => {
33
38
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
34
39
  await writeCoreEval('upgrade-walletFactory', defaultProposalBuilder);