@agoric/builders 0.1.1-orchestration-dev-096c4e8.0 → 0.1.1-other-dev-3eb1a1d.0

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 (64) hide show
  1. package/index.js +0 -2
  2. package/package.json +33 -31
  3. package/scripts/fast-usdc/init-fast-usdc.js +242 -0
  4. package/scripts/inter-protocol/add-STARS.js +8 -7
  5. package/scripts/inter-protocol/add-collateral-core.js +12 -8
  6. package/scripts/inter-protocol/init-core.js +6 -5
  7. package/scripts/inter-protocol/invite-committee-core.js +5 -4
  8. package/scripts/inter-protocol/manual-price-feed.js +4 -0
  9. package/scripts/inter-protocol/price-feed-core.js +5 -5
  10. package/scripts/inter-protocol/replace-electorate-core.js +163 -0
  11. package/scripts/inter-protocol/replace-feeDistributor.js +28 -0
  12. package/scripts/inter-protocol/updatePriceFeeds.js +118 -0
  13. package/scripts/orchestration/init-basic-flows.js +27 -0
  14. package/scripts/orchestration/init-stakeAtom.js +24 -0
  15. package/scripts/orchestration/init-stakeBld.js +24 -0
  16. package/scripts/orchestration/init-stakeOsmo.js +24 -0
  17. package/scripts/orchestration/write-chain-info.js +14 -0
  18. package/scripts/pegasus/init-core.js +4 -3
  19. package/scripts/smart-wallet/build-game1-start.js +5 -4
  20. package/scripts/smart-wallet/build-wallet-factory2-upgrade.js +4 -3
  21. package/scripts/smart-wallet/build-walletFactory-upgrade.js +4 -3
  22. package/scripts/testing/add-LEMONS.js +24 -0
  23. package/scripts/testing/add-OLIVES.js +23 -0
  24. package/scripts/testing/append-chain-info.js +48 -0
  25. package/scripts/testing/fix-buggy-sendAnywhere.js +143 -0
  26. package/scripts/testing/replace-feeDistributor-short.js +27 -0
  27. package/scripts/testing/restart-basic-flows.js +101 -0
  28. package/scripts/testing/restart-send-anywhere.js +101 -0
  29. package/scripts/testing/restart-stakeAtom.js +91 -0
  30. package/scripts/testing/restart-valueVow.js +82 -0
  31. package/scripts/testing/start-auto-stake-it.js +128 -0
  32. package/scripts/testing/start-buggy-sendAnywhere.js +143 -0
  33. package/scripts/testing/start-query-flows.js +135 -0
  34. package/scripts/testing/start-send-anywhere.js +136 -0
  35. package/scripts/testing/start-valueVow.js +93 -0
  36. package/scripts/testing/tweak-chain-info.js +51 -0
  37. package/scripts/vats/add-auction.js +31 -0
  38. package/scripts/vats/init-core.js +4 -3
  39. package/scripts/vats/init-localchain.js +4 -3
  40. package/scripts/vats/init-network.js +4 -3
  41. package/scripts/vats/init-orchestration.js +21 -0
  42. package/scripts/vats/init-transfer.js +19 -0
  43. package/scripts/vats/priceFeedSupport.js +90 -0
  44. package/scripts/vats/probe-zcf-bundle.js +4 -3
  45. package/scripts/vats/replace-provisioning.js +4 -3
  46. package/scripts/vats/replace-zoe.js +4 -3
  47. package/scripts/vats/restart-vats.js +4 -3
  48. package/scripts/vats/revive-kread.js +14 -0
  49. package/scripts/vats/test-localchain.js +4 -3
  50. package/scripts/vats/test-vtransfer.js +19 -0
  51. package/scripts/vats/updateAtomPriceFeed.js +22 -0
  52. package/scripts/vats/updateStAtomPriceFeed.js +22 -0
  53. package/scripts/vats/updateStOsmoPriceFeed.js +22 -0
  54. package/scripts/vats/updateStTiaPriceFeed.js +22 -0
  55. package/scripts/vats/updateStkAtomPriceFeed.js +22 -0
  56. package/scripts/vats/upgrade-bank.js +19 -0
  57. package/scripts/vats/upgrade-orch-core.js +24 -0
  58. package/scripts/vats/upgrade-provisionPool.js +21 -0
  59. package/scripts/vats/upgrade-zcf.js +19 -0
  60. package/scripts/vats/upgrade-zoe.js +4 -3
  61. package/scripts/vats/upgradeScaledPriceAuthorities.js +23 -0
  62. package/scripts/vats/upgradeVaults.js +24 -0
  63. package/tsconfig.json +0 -2
  64. package/scripts/inter-protocol/deploy-contracts.js +0 -110
@@ -0,0 +1,143 @@
1
+ /**
2
+ * @file This is for use in tests in a3p-integration
3
+ * Unlike most builder scripts, this one includes the proposal exports as well.
4
+ */
5
+ import {
6
+ deeplyFulfilledObject,
7
+ makeTracer,
8
+ NonNullish,
9
+ } from '@agoric/internal';
10
+ import { E, Far } from '@endo/far';
11
+
12
+ /// <reference types="@agoric/vats/src/core/types-ambient"/>
13
+ /**
14
+ * @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
15
+ */
16
+
17
+ const trace = makeTracer('StartBuggySA', true);
18
+
19
+ /**
20
+ * @import {start as StartFn} from '@agoric/orchestration/src/examples/send-anywhere.contract.js';
21
+ */
22
+
23
+ /**
24
+ * @param {BootstrapPowers & {
25
+ * installation: {
26
+ * consume: {
27
+ * sendAnywhere: Installation<StartFn>;
28
+ * };
29
+ * };
30
+ * }} powers
31
+ */
32
+ export const startSendAnywhere = async ({
33
+ consume: {
34
+ agoricNames,
35
+ board,
36
+ chainStorage,
37
+ chainTimerService,
38
+ cosmosInterchainService,
39
+ localchain,
40
+ startUpgradable,
41
+ },
42
+ installation: {
43
+ consume: { sendAnywhere },
44
+ },
45
+ instance: {
46
+ // @ts-expect-error unknown instance
47
+ produce: { sendAnywhere: produceInstance },
48
+ },
49
+ }) => {
50
+ trace(startSendAnywhere.name);
51
+
52
+ const marshaller = await E(board).getReadonlyMarshaller();
53
+
54
+ const privateArgs = await deeplyFulfilledObject(
55
+ harden({
56
+ agoricNames,
57
+ localchain,
58
+ marshaller,
59
+ orchestrationService: cosmosInterchainService,
60
+ storageNode: E(NonNullish(await chainStorage)).makeChildNode(
61
+ 'sendAnywhere',
62
+ ),
63
+ timerService: chainTimerService,
64
+ }),
65
+ );
66
+
67
+ /** @type {import('@agoric/vats').NameHub} */
68
+ // @ts-expect-error intentional fake
69
+ const agoricNamesHangs = Far('agoricNames that hangs', {
70
+ lookup: async () => {
71
+ trace('agoricNames.lookup being called that will never resolve');
72
+ // BUG: this never resolves
73
+ return new Promise(() => {});
74
+ },
75
+ });
76
+
77
+ const { instance } = await E(startUpgradable)({
78
+ label: 'sendAnywhere',
79
+ installation: sendAnywhere,
80
+ privateArgs: {
81
+ ...privateArgs,
82
+ agoricNames: agoricNamesHangs,
83
+ },
84
+ });
85
+ produceInstance.resolve(instance);
86
+ trace('done');
87
+ };
88
+ harden(startSendAnywhere);
89
+
90
+ export const getManifestForValueVow = ({ restoreRef }, { sendAnywhereRef }) => {
91
+ trace('sendAnywhereRef', sendAnywhereRef);
92
+ return {
93
+ manifest: {
94
+ [startSendAnywhere.name]: {
95
+ consume: {
96
+ agoricNames: true,
97
+ board: true,
98
+ chainStorage: true,
99
+ chainTimerService: true,
100
+ cosmosInterchainService: true,
101
+ localchain: true,
102
+
103
+ startUpgradable: true,
104
+ },
105
+ installation: {
106
+ consume: { sendAnywhere: true },
107
+ },
108
+ instance: {
109
+ produce: { sendAnywhere: true },
110
+ },
111
+ },
112
+ },
113
+ installations: {
114
+ sendAnywhere: restoreRef(sendAnywhereRef),
115
+ },
116
+ };
117
+ };
118
+
119
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
120
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
121
+ harden({
122
+ // Somewhat unorthodox, source the exports from this builder module
123
+ sourceSpec: '@agoric/builders/scripts/testing/start-buggy-sendAnywhere.js',
124
+ getManifestCall: [
125
+ 'getManifestForValueVow',
126
+ {
127
+ sendAnywhereRef: publishRef(
128
+ install(
129
+ '@agoric/orchestration/src/examples/send-anywhere.contract.js',
130
+ ),
131
+ ),
132
+ },
133
+ ],
134
+ });
135
+
136
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
137
+ export default async (homeP, endowments) => {
138
+ // import dynamically so the module can work in CoreEval environment
139
+ const dspModule = await import('@agoric/deploy-script-support');
140
+ const { makeHelpers } = dspModule;
141
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
142
+ await writeCoreEval(startSendAnywhere.name, defaultProposalBuilder);
143
+ };
@@ -0,0 +1,135 @@
1
+ /**
2
+ * @file A proposal to start the query-flows contract.
3
+ *
4
+ * QueryFlows is a testing fixture that publishes query results to vstorage.
5
+ * It's purpose is to support E2E testing.
6
+ */
7
+ import { deeplyFulfilledObject, makeTracer } from '@agoric/internal';
8
+ import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
9
+ import { E } from '@endo/far';
10
+
11
+ /**
12
+ * @import {QueryFlowsSF as StartFn} from '@agoric/orchestration/src/fixtures/query-flows.contract.js';
13
+ */
14
+
15
+ const contractName = 'queryFlows';
16
+ const trace = makeTracer(contractName, true);
17
+
18
+ /**
19
+ * See `@agoric/builders/builders/scripts/orchestration/init-query-flows.js` for
20
+ * the accompanying proposal builder. Run `agoric run
21
+ * packages/builders/scripts/orchestration/init-query-flows.js` to build the
22
+ * contract and proposal files.
23
+ *
24
+ * @param {BootstrapPowers & {
25
+ * installation: {
26
+ * consume: {
27
+ * queryFlows: Installation<StartFn>;
28
+ * };
29
+ * };
30
+ * }} powers
31
+ */
32
+ export const startQueryFlows = async ({
33
+ consume: {
34
+ agoricNames,
35
+ board,
36
+ chainStorage,
37
+ chainTimerService,
38
+ cosmosInterchainService,
39
+ localchain,
40
+ startUpgradable,
41
+ },
42
+ installation: {
43
+ consume: { [contractName]: installation },
44
+ },
45
+ instance: {
46
+ // @ts-expect-error unknown instance
47
+ produce: { [contractName]: produceInstance },
48
+ },
49
+ }) => {
50
+ trace(`start ${contractName}`);
51
+
52
+ const storageNode = await makeStorageNodeChild(chainStorage, contractName);
53
+ const marshaller = await E(board).getPublishingMarshaller();
54
+
55
+ /** @type {StartUpgradableOpts<StartFn>} */
56
+ const startOpts = {
57
+ label: 'queryFlows',
58
+ installation,
59
+ terms: undefined,
60
+ privateArgs: await deeplyFulfilledObject(
61
+ harden({
62
+ agoricNames,
63
+ orchestrationService: cosmosInterchainService,
64
+ localchain,
65
+ storageNode,
66
+ marshaller,
67
+ timerService: chainTimerService,
68
+ }),
69
+ ),
70
+ };
71
+
72
+ const { instance } = await E(startUpgradable)(startOpts);
73
+ produceInstance.resolve(instance);
74
+ };
75
+ harden(startQueryFlows);
76
+
77
+ export const getManifestForContract = (
78
+ { restoreRef },
79
+ { installKeys, ...options },
80
+ ) => {
81
+ return {
82
+ manifest: {
83
+ [startQueryFlows.name]: {
84
+ consume: {
85
+ agoricNames: true,
86
+ board: true,
87
+ chainStorage: true,
88
+ chainTimerService: true,
89
+ cosmosInterchainService: true,
90
+ localchain: true,
91
+ startUpgradable: true,
92
+ },
93
+ installation: {
94
+ consume: { [contractName]: true },
95
+ },
96
+ instance: {
97
+ produce: { [contractName]: true },
98
+ },
99
+ },
100
+ },
101
+ installations: {
102
+ [contractName]: restoreRef(installKeys[contractName]),
103
+ },
104
+ options,
105
+ };
106
+ };
107
+
108
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
109
+ export const defaultProposalBuilder = async ({ publishRef, install }) => {
110
+ return harden({
111
+ // Somewhat unorthodox, source the exports from this builder module
112
+ sourceSpec: '@agoric/builders/scripts/testing/start-query-flows.js',
113
+ getManifestCall: [
114
+ 'getManifestForContract',
115
+ {
116
+ installKeys: {
117
+ queryFlows: publishRef(
118
+ install(
119
+ '@agoric/orchestration/src/fixtures/query-flows.contract.js',
120
+ ),
121
+ ),
122
+ },
123
+ },
124
+ ],
125
+ });
126
+ };
127
+
128
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
129
+ export default async (homeP, endowments) => {
130
+ // import dynamically so the module can work in CoreEval environment
131
+ const dspModule = await import('@agoric/deploy-script-support');
132
+ const { makeHelpers } = dspModule;
133
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
134
+ await writeCoreEval(startQueryFlows.name, defaultProposalBuilder);
135
+ };
@@ -0,0 +1,136 @@
1
+ /**
2
+ * @file This is for use in tests in a3p-integration
3
+ * Unlike most builder scripts, this one includes the proposal exports as well.
4
+ */
5
+ import {
6
+ deeplyFulfilledObject,
7
+ makeTracer,
8
+ NonNullish,
9
+ } from '@agoric/internal';
10
+ import { E } from '@endo/far';
11
+
12
+ /// <reference types="@agoric/vats/src/core/types-ambient"/>
13
+ /**
14
+ * @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
15
+ */
16
+
17
+ const trace = makeTracer('StartSA', true);
18
+
19
+ /**
20
+ * @import {start as StartFn} from '@agoric/orchestration/src/examples/send-anywhere.contract.js';
21
+ */
22
+
23
+ /**
24
+ * @param {BootstrapPowers & {
25
+ * installation: {
26
+ * consume: {
27
+ * sendAnywhere: Installation<StartFn>;
28
+ * };
29
+ * };
30
+ * }} powers
31
+ */
32
+ export const startSendAnywhere = async ({
33
+ consume: {
34
+ agoricNames,
35
+ board,
36
+ chainStorage,
37
+ chainTimerService,
38
+ cosmosInterchainService,
39
+ localchain,
40
+ startUpgradable,
41
+ },
42
+ installation: {
43
+ consume: { sendAnywhere },
44
+ },
45
+ instance: {
46
+ // @ts-expect-error unknown instance
47
+ produce: { sendAnywhere: produceInstance },
48
+ },
49
+ issuer: {
50
+ consume: { IST },
51
+ },
52
+ }) => {
53
+ trace(startSendAnywhere.name);
54
+
55
+ const marshaller = await E(board).getReadonlyMarshaller();
56
+
57
+ const privateArgs = await deeplyFulfilledObject(
58
+ harden({
59
+ agoricNames,
60
+ localchain,
61
+ marshaller,
62
+ orchestrationService: cosmosInterchainService,
63
+ storageNode: E(NonNullish(await chainStorage)).makeChildNode(
64
+ 'send-anywhere',
65
+ ),
66
+ timerService: chainTimerService,
67
+ }),
68
+ );
69
+
70
+ const { instance } = await E(startUpgradable)({
71
+ label: 'send-anywhere',
72
+ installation: sendAnywhere,
73
+ issuerKeywordRecord: { Stable: await IST },
74
+ privateArgs,
75
+ });
76
+ produceInstance.resolve(instance);
77
+ trace('done');
78
+ };
79
+ harden(startSendAnywhere);
80
+
81
+ export const getManifest = ({ restoreRef }, { installationRef }) => {
82
+ return {
83
+ manifest: {
84
+ [startSendAnywhere.name]: {
85
+ consume: {
86
+ agoricNames: true,
87
+ board: true,
88
+ chainStorage: true,
89
+ chainTimerService: true,
90
+ cosmosInterchainService: true,
91
+ localchain: true,
92
+
93
+ startUpgradable: true,
94
+ },
95
+ installation: {
96
+ consume: { sendAnywhere: true },
97
+ },
98
+ instance: {
99
+ produce: { sendAnywhere: true },
100
+ },
101
+ issuer: {
102
+ consume: { IST: true },
103
+ },
104
+ },
105
+ },
106
+ installations: {
107
+ sendAnywhere: restoreRef(installationRef),
108
+ },
109
+ };
110
+ };
111
+
112
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
113
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
114
+ harden({
115
+ // Somewhat unorthodox, source the exports from this builder module
116
+ sourceSpec: '@agoric/builders/scripts/testing/start-send-anywhere.js',
117
+ getManifestCall: [
118
+ getManifest.name,
119
+ {
120
+ installationRef: publishRef(
121
+ install(
122
+ '@agoric/orchestration/src/examples/send-anywhere.contract.js',
123
+ ),
124
+ ),
125
+ },
126
+ ],
127
+ });
128
+
129
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
130
+ export default async (homeP, endowments) => {
131
+ // import dynamically so the module can work in CoreEval environment
132
+ const dspModule = await import('@agoric/deploy-script-support');
133
+ const { makeHelpers } = dspModule;
134
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
135
+ await writeCoreEval(startSendAnywhere.name, defaultProposalBuilder);
136
+ };
@@ -0,0 +1,93 @@
1
+ /**
2
+ * @file This is for use in tests in a3p-integration
3
+ * Unlike most builder scripts, this one includes the proposal exports as well.
4
+ */
5
+ import { makeTracer } from '@agoric/internal';
6
+ import { E } from '@endo/far';
7
+
8
+ /// <reference types="@agoric/vats/src/core/types-ambient"/>
9
+ /**
10
+ * @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
11
+ */
12
+
13
+ const trace = makeTracer('StartValueVow', true);
14
+
15
+ /**
16
+ * @param {BootstrapPowers & {
17
+ * installation: {
18
+ * consume: {
19
+ * valueVow: Installation<
20
+ * import('@agoric/zoe/src/contracts/valueVow.contract.js').start
21
+ * >;
22
+ * };
23
+ * };
24
+ * }} powers
25
+ */
26
+ export const startValueVow = async ({
27
+ consume: { startUpgradable },
28
+ installation: {
29
+ consume: { valueVow },
30
+ },
31
+ instance: {
32
+ // @ts-expect-error unknown instance
33
+ produce: { valueVow: produceInstance },
34
+ },
35
+ }) => {
36
+ trace(startValueVow.name);
37
+
38
+ const startOpts = {
39
+ label: 'valueVow',
40
+ installation: valueVow,
41
+ };
42
+
43
+ const { instance } = await E(startUpgradable)(startOpts);
44
+ produceInstance.resolve(instance);
45
+ trace('done');
46
+ };
47
+ harden(startValueVow);
48
+
49
+ export const getManifestForValueVow = ({ restoreRef }, { valueVowRef }) => {
50
+ console.log('valueVowRef', valueVowRef);
51
+ return {
52
+ manifest: {
53
+ [startValueVow.name]: {
54
+ consume: {
55
+ startUpgradable: true,
56
+ },
57
+ installation: {
58
+ consume: { valueVow: true },
59
+ },
60
+ instance: {
61
+ produce: { valueVow: true },
62
+ },
63
+ },
64
+ },
65
+ installations: {
66
+ valueVow: restoreRef(valueVowRef),
67
+ },
68
+ };
69
+ };
70
+
71
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
72
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
73
+ harden({
74
+ // Somewhat unorthodox, source the exports from this builder module
75
+ sourceSpec: '@agoric/builders/scripts/testing/start-valueVow.js',
76
+ getManifestCall: [
77
+ 'getManifestForValueVow',
78
+ {
79
+ valueVowRef: publishRef(
80
+ install('@agoric/zoe/src/contracts/valueVow.contract.js'),
81
+ ),
82
+ },
83
+ ],
84
+ });
85
+
86
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
87
+ export default async (homeP, endowments) => {
88
+ // import dynamically so the module can work in CoreEval environment
89
+ const dspModule = await import('@agoric/deploy-script-support');
90
+ const { makeHelpers } = dspModule;
91
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
92
+ await writeCoreEval('start-valueVow', defaultProposalBuilder);
93
+ };
@@ -0,0 +1,51 @@
1
+ /// <reference types="ses" />
2
+ import { makeHelpers } from '@agoric/deploy-script-support';
3
+
4
+ /** @type {Record<string, import('@agoric/orchestration/src/chain-info.js').ChainInfo>} */
5
+ const chainInfo = {
6
+ agoric: {
7
+ chainId: 'agoric-4',
8
+ },
9
+ hot: {
10
+ allegedName: 'Hot New Chain',
11
+ chainId: 'hot-1',
12
+ connections: {
13
+ 'cosmoshub-4': {
14
+ id: 'connection-99',
15
+ client_id: '07-tendermint-3',
16
+ counterparty: {
17
+ client_id: '07-tendermint-2',
18
+ connection_id: 'connection-1',
19
+ },
20
+ state: 3 /* IBCConnectionState.STATE_OPEN */,
21
+ transferChannel: {
22
+ portId: 'transfer',
23
+ channelId: 'channel-1',
24
+ counterPartyChannelId: 'channel-1',
25
+ counterPartyPortId: 'transfer',
26
+ ordering: 1 /* Order.ORDER_UNORDERED */,
27
+ state: 3 /* IBCConnectionState.STATE_OPEN */,
28
+ version: 'ics20-1',
29
+ },
30
+ },
31
+ },
32
+ },
33
+ };
34
+
35
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
36
+ export const defaultProposalBuilder = async () =>
37
+ harden({
38
+ sourceSpec: '@agoric/orchestration/src/proposals/revise-chain-info.js',
39
+ getManifestCall: [
40
+ 'getManifestForReviseChains',
41
+ {
42
+ chainInfo,
43
+ },
44
+ ],
45
+ });
46
+
47
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
48
+ export default async (homeP, endowments) => {
49
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
50
+ await writeCoreEval('revise-chain-info', defaultProposalBuilder);
51
+ };
@@ -0,0 +1,31 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) => {
5
+ return harden({
6
+ sourceSpec: '@agoric/inter-protocol/src/proposals/add-auction.js',
7
+ getManifestCall: [
8
+ 'getManifestForAddAuction',
9
+ {
10
+ auctioneerRef: publishRef(
11
+ install(
12
+ '@agoric/inter-protocol/src/auction/auctioneer.js',
13
+ '../../inter-protocol/bundles/bundle-auctioneer.js',
14
+ ),
15
+ ),
16
+ contractGovernorRef: publishRef(
17
+ install(
18
+ '@agoric/governance/src/contractGovernor.js',
19
+ '../bundles/bundle-contractGovernor.js',
20
+ ),
21
+ ),
22
+ },
23
+ ],
24
+ });
25
+ };
26
+
27
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
28
+ export default async (homeP, endowments) => {
29
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
30
+ await writeCoreEval('add-auction', defaultProposalBuilder);
31
+ };
@@ -1,6 +1,6 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
 
3
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
4
  export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
5
  harden({
6
6
  sourceSpec: '@agoric/vats/src/core/startWalletFactory.js',
@@ -25,7 +25,8 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
25
25
  ],
26
26
  });
27
27
 
28
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
28
29
  export default async (homeP, endowments) => {
29
- const { writeCoreProposal } = await makeHelpers(homeP, endowments);
30
- await writeCoreProposal('gov-vats', defaultProposalBuilder);
30
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
31
+ await writeCoreEval('gov-vats', defaultProposalBuilder);
31
32
  };
@@ -1,6 +1,6 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
 
3
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
4
  export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
5
  harden({
6
6
  sourceSpec: '@agoric/vats/src/proposals/localchain-proposal.js',
@@ -14,7 +14,8 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
14
14
  ],
15
15
  });
16
16
 
17
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
17
18
  export default async (homeP, endowments) => {
18
- const { writeCoreProposal } = await makeHelpers(homeP, endowments);
19
- await writeCoreProposal('gov-localchain', defaultProposalBuilder);
19
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
20
+ await writeCoreEval('gov-localchain', defaultProposalBuilder);
20
21
  };
@@ -1,6 +1,6 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
 
3
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
4
  export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
5
  harden({
6
6
  sourceSpec: '@agoric/vats/src/proposals/network-proposal.js',
@@ -13,7 +13,8 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
13
13
  ],
14
14
  });
15
15
 
16
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
16
17
  export default async (homeP, endowments) => {
17
- const { writeCoreProposal } = await makeHelpers(homeP, endowments);
18
- await writeCoreProposal('gov-network', defaultProposalBuilder);
18
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
19
+ await writeCoreEval('gov-network', defaultProposalBuilder);
19
20
  };
@@ -0,0 +1,21 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
+ harden({
6
+ sourceSpec: '@agoric/orchestration/src/proposals/orchestration-proposal.js',
7
+ getManifestCall: [
8
+ 'getManifestForOrchestration',
9
+ {
10
+ orchestrationRef: publishRef(
11
+ install('@agoric/orchestration/src/vat-orchestration.js'),
12
+ ),
13
+ },
14
+ ],
15
+ });
16
+
17
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
18
+ export default async (homeP, endowments) => {
19
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
20
+ await writeCoreEval('gov-orchestration', defaultProposalBuilder);
21
+ };
@@ -0,0 +1,19 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
+ harden({
6
+ sourceSpec: '@agoric/vats/src/proposals/transfer-proposal.js',
7
+ getManifestCall: [
8
+ 'getManifestForTransfer',
9
+ {
10
+ transferRef: publishRef(install('@agoric/vats/src/vat-transfer.js')),
11
+ },
12
+ ],
13
+ });
14
+
15
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
16
+ export default async (homeP, endowments) => {
17
+ const { writeCoreProposal } = await makeHelpers(homeP, endowments);
18
+ await writeCoreProposal('gov-transfer', defaultProposalBuilder);
19
+ };