@agoric/builders 0.2.0 → 0.2.1-upgrade-23-dev-bd79330.0.bd79330
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.
- package/package.json +24 -29
- package/scripts/inter-protocol/add-collateral-core.js +25 -15
- package/scripts/inter-protocol/init-core.js +81 -53
- package/scripts/inter-protocol/invite-committee-core.js +18 -9
- package/scripts/inter-protocol/manual-price-feed.js +6 -2
- package/scripts/inter-protocol/price-feed-core.js +14 -5
- package/scripts/inter-protocol/replace-electorate-core.js +17 -7
- package/scripts/inter-protocol/replace-feeDistributor-combo.js +7 -2
- package/scripts/inter-protocol/replace-feeDistributor.js +7 -2
- package/scripts/inter-protocol/updatePriceFeeds.js +21 -8
- package/scripts/inter-protocol/withdraw-reserve.build.js +7 -2
- package/scripts/inter-protocol/withdraw-vbank-reserve-permit.json +6 -0
- package/scripts/inter-protocol/withdraw-vbank-reserve.js +72 -0
- package/scripts/lib/build-bundle.js +92 -0
- package/scripts/orchestration/axelar-gmp.build.js +4 -2
- package/scripts/orchestration/hook-localchain-msg-send.js +7 -2
- package/scripts/orchestration/init-basic-flows.js +7 -2
- package/scripts/orchestration/init-stakeAtom.js +7 -2
- package/scripts/orchestration/init-stakeBld.js +7 -2
- package/scripts/orchestration/init-stakeOsmo.js +7 -2
- package/scripts/orchestration/write-chain-info.js +7 -2
- package/scripts/pegasus/init-core.js +17 -8
- package/scripts/smart-wallet/build-game1-start.js +20 -7
- package/scripts/smart-wallet/build-wallet-factory2-upgrade.js +7 -2
- package/scripts/smart-wallet/build-walletFactory-upgrade.js +17 -7
- package/scripts/testing/append-chain-info.js +9 -3
- package/scripts/testing/init-auto-stake-it.js +7 -2
- package/scripts/testing/init-send-anywhere.js +7 -2
- package/scripts/testing/init-swap-anything.js +7 -2
- package/scripts/testing/provokeBOYD.js +8 -4
- package/scripts/testing/publish-test-info.js +8 -2
- package/scripts/testing/recorded-retired-instances.js +11 -2
- package/scripts/testing/register-interchain-bank-assets.js +8 -1
- package/scripts/testing/replace-feeDistributor-short.js +7 -2
- package/scripts/testing/restart-axelar-gmp.js +6 -4
- package/scripts/testing/restart-basic-flows.js +6 -4
- package/scripts/testing/restart-send-anywhere.js +6 -4
- package/scripts/testing/restart-stakeAtom.js +6 -4
- package/scripts/testing/restart-valueVow.js +7 -4
- package/scripts/testing/start-query-flows.js +7 -2
- package/scripts/testing/start-valueVow.js +7 -4
- package/scripts/testing/test-upgraded-board.js +7 -2
- package/scripts/testing/tweak-chain-info.js +9 -3
- package/scripts/testing/upgrade-send-anywhere.js +5 -3
- package/scripts/vats/init-core.js +26 -12
- package/scripts/vats/init-localchain.js +7 -2
- package/scripts/vats/init-network.js +7 -2
- package/scripts/vats/init-orchestration.js +7 -2
- package/scripts/vats/init-transfer.js +7 -2
- package/scripts/vats/priceFeedSupport.js +16 -7
- package/scripts/vats/probe-zcf-bundle.js +7 -2
- package/scripts/vats/replace-provisioning.js +7 -2
- package/scripts/vats/replace-zoe.js +7 -2
- package/scripts/vats/restart-vats.js +7 -2
- package/scripts/vats/revive-kread.js +7 -2
- package/scripts/vats/set-core-proposal-env.js +3 -3
- package/scripts/vats/test-localchain.js +7 -2
- package/scripts/vats/test-vtransfer.js +7 -2
- package/scripts/vats/updateAtomPriceFeed.js +7 -2
- package/scripts/vats/updateStAtomPriceFeed.js +7 -2
- package/scripts/vats/updateStOsmoPriceFeed.js +7 -2
- package/scripts/vats/updateStTiaPriceFeed.js +7 -2
- package/scripts/vats/updateStkAtomPriceFeed.js +7 -2
- package/scripts/vats/upgrade-agoricNames.js +7 -2
- package/scripts/vats/upgrade-asset-reserve.js +7 -2
- package/scripts/vats/upgrade-bank.js +7 -2
- package/scripts/vats/upgrade-board.js +7 -2
- package/scripts/vats/upgrade-mintHolder.js +7 -2
- package/scripts/vats/upgrade-orchestration.js +7 -2
- package/scripts/vats/upgrade-paRegistry.js +7 -2
- package/scripts/vats/upgrade-provisionPool-to-BLD.js +7 -2
- package/scripts/vats/upgrade-provisionPool.js +7 -2
- package/scripts/vats/upgrade-psm.js +7 -2
- package/scripts/vats/upgrade-vats.js +7 -2
- package/scripts/vats/upgrade-zcf.js +7 -2
- package/scripts/vats/upgrade-zoe.js +7 -2
- package/scripts/vats/upgradeScaledPriceAuthorities.js +7 -2
- package/tsconfig.json +4 -0
- package/scripts/inter-protocol/add-STARS.js +0 -44
- package/scripts/testing/add-LEMONS.js +0 -24
- package/scripts/testing/add-OLIVES.js +0 -23
- package/scripts/testing/add-USD-LEMONS.js +0 -19
- package/scripts/testing/add-USD-OLIVES.js +0 -19
- package/scripts/testing/upgrade-vaultFactory.js +0 -21
- package/scripts/vats/add-auction.js +0 -31
- package/scripts/vats/upgradeVaults.js +0 -24
|
@@ -5,7 +5,12 @@ import {
|
|
|
5
5
|
} from '@agoric/orchestration/src/proposals/start-send-anywhere.js';
|
|
6
6
|
import { parseChainHubOpts } from '../orchestration/helpers.js';
|
|
7
7
|
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
10
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/** @type {CoreEvalBuilder} */
|
|
9
14
|
export const defaultProposalBuilder = async (
|
|
10
15
|
{ publishRef, install },
|
|
11
16
|
options,
|
|
@@ -25,7 +30,7 @@ export const defaultProposalBuilder = async (
|
|
|
25
30
|
],
|
|
26
31
|
});
|
|
27
32
|
|
|
28
|
-
/** @type {
|
|
33
|
+
/** @type {DeployScriptFunction} */
|
|
29
34
|
export default async (homeP, endowments) => {
|
|
30
35
|
const { scriptArgs } = endowments;
|
|
31
36
|
const opts = parseChainHubOpts(scriptArgs);
|
|
@@ -5,7 +5,12 @@ import {
|
|
|
5
5
|
} from '@agoric/orchestration/src/proposals/start-swap-anything.js';
|
|
6
6
|
import { parseChainHubOpts } from '../orchestration/helpers.js';
|
|
7
7
|
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
10
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/** @type {CoreEvalBuilder} */
|
|
9
14
|
export const defaultProposalBuilder = async (
|
|
10
15
|
{ publishRef, install },
|
|
11
16
|
options,
|
|
@@ -25,7 +30,7 @@ export const defaultProposalBuilder = async (
|
|
|
25
30
|
],
|
|
26
31
|
});
|
|
27
32
|
|
|
28
|
-
/** @type {
|
|
33
|
+
/** @type {DeployScriptFunction} */
|
|
29
34
|
export default async (homeP, endowments) => {
|
|
30
35
|
const { scriptArgs } = endowments;
|
|
31
36
|
const opts = parseChainHubOpts(scriptArgs);
|
|
@@ -9,8 +9,12 @@
|
|
|
9
9
|
import { makeTracer } from '@agoric/internal';
|
|
10
10
|
import { E } from '@endo/far';
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* @import {Instance} from '@agoric/zoe/src/zoeService/utils.js';
|
|
14
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
15
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
16
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
17
|
+
*/
|
|
14
18
|
|
|
15
19
|
const trace = makeTracer('provokeBOYD', true);
|
|
16
20
|
|
|
@@ -38,14 +42,14 @@ export const getManifestForProvokeBOYD = () => {
|
|
|
38
42
|
};
|
|
39
43
|
};
|
|
40
44
|
|
|
41
|
-
/** @type {
|
|
45
|
+
/** @type {CoreEvalBuilder} */
|
|
42
46
|
export const defaultProposalBuilder = async () =>
|
|
43
47
|
harden({
|
|
44
48
|
sourceSpec: '@agoric/builders/scripts/testing/provokeBOYD.js',
|
|
45
49
|
getManifestCall: ['getManifestForProvokeBOYD'],
|
|
46
50
|
});
|
|
47
51
|
|
|
48
|
-
/** @type {
|
|
52
|
+
/** @type {DeployScriptFunction} */
|
|
49
53
|
export default async (homeP, endowments) => {
|
|
50
54
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
51
55
|
const { makeHelpers } = dspModule;
|
|
@@ -2,6 +2,12 @@ import { makeTracer } from '@agoric/internal';
|
|
|
2
2
|
import { E, Far } from '@endo/far';
|
|
3
3
|
import { makeMarshal } from '@endo/marshal';
|
|
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
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
9
|
+
*/
|
|
10
|
+
|
|
5
11
|
const trace = makeTracer('PublishTestInfo');
|
|
6
12
|
const { Fail } = assert;
|
|
7
13
|
|
|
@@ -61,7 +67,7 @@ export const getManifestForPublishTestInfo = () => {
|
|
|
61
67
|
};
|
|
62
68
|
};
|
|
63
69
|
|
|
64
|
-
/** @type {
|
|
70
|
+
/** @type {CoreEvalBuilder} */
|
|
65
71
|
export const defaultProposalBuilder = async () =>
|
|
66
72
|
harden({
|
|
67
73
|
// Somewhat unorthodox, source the exports from this builder module
|
|
@@ -69,7 +75,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
69
75
|
getManifestCall: ['getManifestForPublishTestInfo'],
|
|
70
76
|
});
|
|
71
77
|
|
|
72
|
-
/** @type {
|
|
78
|
+
/** @type {DeployScriptFunction} */
|
|
73
79
|
export default async (homeP, endowments) => {
|
|
74
80
|
// import dynamically so the module can work in CoreEval environment
|
|
75
81
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { makeTracer } from '@agoric/internal';
|
|
2
2
|
import { E } from '@endo/far';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
6
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
7
|
+
* @import {MapStore} from '@agoric/store';
|
|
8
|
+
* @import {Instance} from '@agoric/zoe';
|
|
9
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
10
|
+
* @import {PromiseSpaceOf} from '@agoric/vats/src/core/types.js';
|
|
11
|
+
*/
|
|
12
|
+
|
|
4
13
|
const trace = makeTracer('RecordedRetired', true);
|
|
5
14
|
|
|
6
15
|
/**
|
|
@@ -63,7 +72,7 @@ export const getManifestForRecordedRetiredInstances = () => {
|
|
|
63
72
|
};
|
|
64
73
|
};
|
|
65
74
|
|
|
66
|
-
/** @type {
|
|
75
|
+
/** @type {CoreEvalBuilder} */
|
|
67
76
|
export const defaultProposalBuilder = async () =>
|
|
68
77
|
harden({
|
|
69
78
|
sourceSpec:
|
|
@@ -71,7 +80,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
71
80
|
getManifestCall: ['getManifestForRecordedRetiredInstances', {}],
|
|
72
81
|
});
|
|
73
82
|
|
|
74
|
-
/** @type {
|
|
83
|
+
/** @type {DeployScriptFunction} */
|
|
75
84
|
export default async (homeP, endowments) => {
|
|
76
85
|
// import dynamically so the module can work in CoreEval environment
|
|
77
86
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
@@ -12,7 +12,14 @@ const { Fail } = assert;
|
|
|
12
12
|
|
|
13
13
|
const trace = makeTracer('RegisterInterchainBankAssets', true);
|
|
14
14
|
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* @import {Board} from '@agoric/vats';
|
|
17
|
+
* @import {ERef} from '@endo/eventual-send';
|
|
18
|
+
* @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
|
|
19
|
+
* @import {Brand} from '@agoric/ertp';
|
|
20
|
+
* @import {IssuerKit} from '@agoric/ertp';
|
|
21
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
22
|
+
*/
|
|
16
23
|
|
|
17
24
|
/**
|
|
18
25
|
* @typedef {object} InterchainAssetOptions
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
import { getManifestForReplaceFeeDistributor } from '@agoric/inter-protocol/src/proposals/replace-fee-distributor.js';
|
|
3
3
|
|
|
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
|
+
|
|
4
9
|
/**
|
|
5
10
|
* @file
|
|
6
11
|
* a Variant of ../inter-protocol/replace-feeDistributor.js that shortens the
|
|
7
12
|
* collectionInterval for testing
|
|
8
13
|
*/
|
|
9
14
|
|
|
10
|
-
/** @type {
|
|
15
|
+
/** @type {CoreEvalBuilder} */
|
|
11
16
|
export const defaultProposalBuilder = async (_, opts) => {
|
|
12
17
|
console.log('feeDist OPTS', opts);
|
|
13
18
|
return harden({
|
|
@@ -17,7 +22,7 @@ export const defaultProposalBuilder = async (_, opts) => {
|
|
|
17
22
|
});
|
|
18
23
|
};
|
|
19
24
|
|
|
20
|
-
/** @type {
|
|
25
|
+
/** @type {DeployScriptFunction} */
|
|
21
26
|
export default async (homeP, endowments) => {
|
|
22
27
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
23
28
|
|
|
@@ -9,12 +9,14 @@ import {
|
|
|
9
9
|
} from '@agoric/internal';
|
|
10
10
|
import { E } from '@endo/far';
|
|
11
11
|
|
|
12
|
-
/// <reference types="@agoric/vats/src/core/types-ambient"/>
|
|
13
|
-
|
|
14
12
|
const trace = makeTracer('StartAxelarGmp', true);
|
|
15
13
|
|
|
16
14
|
/**
|
|
17
15
|
* @import {start as StartFn} from '@agoric/orchestration/src/examples/axelar-gmp.contract.js';
|
|
16
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
17
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
18
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
19
|
+
* @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
|
|
18
20
|
*/
|
|
19
21
|
|
|
20
22
|
/**
|
|
@@ -78,14 +80,14 @@ export const getManifest = () => {
|
|
|
78
80
|
};
|
|
79
81
|
};
|
|
80
82
|
|
|
81
|
-
/** @type {
|
|
83
|
+
/** @type {CoreEvalBuilder} */
|
|
82
84
|
export const defaultProposalBuilder = async () =>
|
|
83
85
|
harden({
|
|
84
86
|
sourceSpec: '@agoric/builders/scripts/testing/restart-axelar-gmp.js',
|
|
85
87
|
getManifestCall: [getManifest.name],
|
|
86
88
|
});
|
|
87
89
|
|
|
88
|
-
/** @type {
|
|
90
|
+
/** @type {DeployScriptFunction} */
|
|
89
91
|
export default async (homeP, endowments) => {
|
|
90
92
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
91
93
|
const { makeHelpers } = dspModule;
|
|
@@ -9,12 +9,14 @@ import {
|
|
|
9
9
|
} from '@agoric/internal';
|
|
10
10
|
import { E } from '@endo/far';
|
|
11
11
|
|
|
12
|
-
/// <reference types="@agoric/vats/src/core/types-ambient"/>
|
|
13
|
-
|
|
14
12
|
const trace = makeTracer('RestartBasicFlows', true);
|
|
15
13
|
|
|
16
14
|
/**
|
|
17
15
|
* @import {start as StartFn} from '@agoric/orchestration/src/examples/basic-flows.contract.js';
|
|
16
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
17
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
18
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
19
|
+
* @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
|
|
18
20
|
*/
|
|
19
21
|
|
|
20
22
|
/**
|
|
@@ -83,7 +85,7 @@ export const getManifest = () => {
|
|
|
83
85
|
};
|
|
84
86
|
};
|
|
85
87
|
|
|
86
|
-
/** @type {
|
|
88
|
+
/** @type {CoreEvalBuilder} */
|
|
87
89
|
export const defaultProposalBuilder = async () =>
|
|
88
90
|
harden({
|
|
89
91
|
// Somewhat unorthodox, source the exports from this builder module
|
|
@@ -91,7 +93,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
91
93
|
getManifestCall: [getManifest.name],
|
|
92
94
|
});
|
|
93
95
|
|
|
94
|
-
/** @type {
|
|
96
|
+
/** @type {DeployScriptFunction} */
|
|
95
97
|
export default async (homeP, endowments) => {
|
|
96
98
|
// import dynamically so the module can work in CoreEval environment
|
|
97
99
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
@@ -9,12 +9,14 @@ import {
|
|
|
9
9
|
} from '@agoric/internal';
|
|
10
10
|
import { E } from '@endo/far';
|
|
11
11
|
|
|
12
|
-
/// <reference types="@agoric/vats/src/core/types-ambient"/>
|
|
13
|
-
|
|
14
12
|
const trace = makeTracer('StartSA', true);
|
|
15
13
|
|
|
16
14
|
/**
|
|
17
15
|
* @import {start as StartFn} from '@agoric/orchestration/src/examples/send-anywhere.contract.js';
|
|
16
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
17
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
18
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
19
|
+
* @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
|
|
18
20
|
*/
|
|
19
21
|
|
|
20
22
|
/**
|
|
@@ -83,7 +85,7 @@ export const getManifest = () => {
|
|
|
83
85
|
};
|
|
84
86
|
};
|
|
85
87
|
|
|
86
|
-
/** @type {
|
|
88
|
+
/** @type {CoreEvalBuilder} */
|
|
87
89
|
export const defaultProposalBuilder = async () =>
|
|
88
90
|
harden({
|
|
89
91
|
// Somewhat unorthodox, source the exports from this builder module
|
|
@@ -91,7 +93,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
91
93
|
getManifestCall: [getManifest.name],
|
|
92
94
|
});
|
|
93
95
|
|
|
94
|
-
/** @type {
|
|
96
|
+
/** @type {DeployScriptFunction} */
|
|
95
97
|
export default async (homeP, endowments) => {
|
|
96
98
|
// import dynamically so the module can work in CoreEval environment
|
|
97
99
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
@@ -6,12 +6,14 @@ import { deeplyFulfilledObject, makeTracer } from '@agoric/internal';
|
|
|
6
6
|
import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
|
|
7
7
|
import { E } from '@endo/far';
|
|
8
8
|
|
|
9
|
-
/// <reference types="@agoric/vats/src/core/types-ambient"/>
|
|
10
|
-
|
|
11
9
|
const trace = makeTracer('RestartSA', true);
|
|
12
10
|
|
|
13
11
|
/**
|
|
14
12
|
* @import {start as StartFn} from '@agoric/orchestration/src/examples/stake-ica.contract.js';
|
|
13
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
14
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
15
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
16
|
+
* @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
|
|
15
17
|
*/
|
|
16
18
|
|
|
17
19
|
/**
|
|
@@ -73,7 +75,7 @@ export const getManifest = () => {
|
|
|
73
75
|
};
|
|
74
76
|
};
|
|
75
77
|
|
|
76
|
-
/** @type {
|
|
78
|
+
/** @type {CoreEvalBuilder} */
|
|
77
79
|
export const defaultProposalBuilder = async () =>
|
|
78
80
|
harden({
|
|
79
81
|
// Somewhat unorthodox, source the exports from this builder module
|
|
@@ -81,7 +83,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
81
83
|
getManifestCall: [getManifest.name],
|
|
82
84
|
});
|
|
83
85
|
|
|
84
|
-
/** @type {
|
|
86
|
+
/** @type {DeployScriptFunction} */
|
|
85
87
|
export default async (homeP, endowments) => {
|
|
86
88
|
// import dynamically so the module can work in CoreEval environment
|
|
87
89
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
import { makeTracer } from '@agoric/internal';
|
|
6
6
|
import { E } from '@endo/far';
|
|
7
7
|
|
|
8
|
-
/// <reference types="@agoric/vats/src/core/types-ambient"/>
|
|
9
8
|
/**
|
|
10
9
|
* @import {Instance} from '@agoric/zoe/src/zoeService/utils.js';
|
|
10
|
+
* @import {start} from '@agoric/zoe/src/contracts/valueVow.contract.js';
|
|
11
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
12
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
13
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
11
14
|
*/
|
|
12
15
|
|
|
13
16
|
const trace = makeTracer('RestartValueVow', true);
|
|
@@ -17,7 +20,7 @@ const trace = makeTracer('RestartValueVow', true);
|
|
|
17
20
|
* instance: {
|
|
18
21
|
* consume: {
|
|
19
22
|
* valueVow: Instance<
|
|
20
|
-
*
|
|
23
|
+
* start
|
|
21
24
|
* >;
|
|
22
25
|
* };
|
|
23
26
|
* };
|
|
@@ -57,7 +60,7 @@ export const getManifestForValueVow = ({ restoreRef }, { valueVowRef }) => {
|
|
|
57
60
|
};
|
|
58
61
|
};
|
|
59
62
|
|
|
60
|
-
/** @type {
|
|
63
|
+
/** @type {CoreEvalBuilder} */
|
|
61
64
|
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
62
65
|
harden({
|
|
63
66
|
// Somewhat unorthodox, source the exports from this builder module
|
|
@@ -72,7 +75,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
72
75
|
],
|
|
73
76
|
});
|
|
74
77
|
|
|
75
|
-
/** @type {
|
|
78
|
+
/** @type {DeployScriptFunction} */
|
|
76
79
|
export default async (homeP, endowments) => {
|
|
77
80
|
// import dynamically so the module can work in CoreEval environment
|
|
78
81
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
@@ -12,6 +12,11 @@ import { parseChainHubOpts } from '../orchestration/helpers.js';
|
|
|
12
12
|
/**
|
|
13
13
|
* @import {CosmosChainInfo, Denom, DenomDetail} from '@agoric/orchestration';
|
|
14
14
|
* @import {QueryFlowsSF as StartFn} from '@agoric/orchestration/src/fixtures/query-flows.contract.js';
|
|
15
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
16
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
17
|
+
* @import {Installation} from '@agoric/zoe';
|
|
18
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
19
|
+
* @import {StartUpgradableOpts} from '@agoric/vats/src/core/types.js';
|
|
15
20
|
*/
|
|
16
21
|
|
|
17
22
|
const contractName = 'queryFlows';
|
|
@@ -118,7 +123,7 @@ export const getManifestForContract = (
|
|
|
118
123
|
};
|
|
119
124
|
};
|
|
120
125
|
|
|
121
|
-
/** @type {
|
|
126
|
+
/** @type {CoreEvalBuilder} */
|
|
122
127
|
export const defaultProposalBuilder = async (
|
|
123
128
|
{ publishRef, install },
|
|
124
129
|
options,
|
|
@@ -142,7 +147,7 @@ export const defaultProposalBuilder = async (
|
|
|
142
147
|
});
|
|
143
148
|
};
|
|
144
149
|
|
|
145
|
-
/** @type {
|
|
150
|
+
/** @type {DeployScriptFunction} */
|
|
146
151
|
export default async (homeP, endowments) => {
|
|
147
152
|
// import dynamically so the modules can work in CoreEval environment
|
|
148
153
|
const { makeHelpers } = await import('@agoric/deploy-script-support');
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
import { makeTracer } from '@agoric/internal';
|
|
6
6
|
import { E } from '@endo/far';
|
|
7
7
|
|
|
8
|
-
/// <reference types="@agoric/vats/src/core/types-ambient"/>
|
|
9
8
|
/**
|
|
10
9
|
* @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
|
|
10
|
+
* @import {start} from '@agoric/zoe/src/contracts/valueVow.contract.js';
|
|
11
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
12
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
13
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
11
14
|
*/
|
|
12
15
|
|
|
13
16
|
const trace = makeTracer('StartValueVow', true);
|
|
@@ -17,7 +20,7 @@ const trace = makeTracer('StartValueVow', true);
|
|
|
17
20
|
* installation: {
|
|
18
21
|
* consume: {
|
|
19
22
|
* valueVow: Installation<
|
|
20
|
-
*
|
|
23
|
+
* start
|
|
21
24
|
* >;
|
|
22
25
|
* };
|
|
23
26
|
* };
|
|
@@ -68,7 +71,7 @@ export const getManifestForValueVow = ({ restoreRef }, { valueVowRef }) => {
|
|
|
68
71
|
};
|
|
69
72
|
};
|
|
70
73
|
|
|
71
|
-
/** @type {
|
|
74
|
+
/** @type {CoreEvalBuilder} */
|
|
72
75
|
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
73
76
|
harden({
|
|
74
77
|
// Somewhat unorthodox, source the exports from this builder module
|
|
@@ -83,7 +86,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
83
86
|
],
|
|
84
87
|
});
|
|
85
88
|
|
|
86
|
-
/** @type {
|
|
89
|
+
/** @type {DeployScriptFunction} */
|
|
87
90
|
export default async (homeP, endowments) => {
|
|
88
91
|
// import dynamically so the module can work in CoreEval environment
|
|
89
92
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
import { getManifestForTestUpgradedBoard } from '@agoric/vats/src/proposals/testUpgradedBoard.js';
|
|
3
3
|
|
|
4
|
-
/**
|
|
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
|
harden({
|
|
7
12
|
sourceSpec: '@agoric/vats/src/proposals/testUpgradedBoard.js',
|
|
8
13
|
getManifestCall: [getManifestForTestUpgradedBoard.name],
|
|
9
14
|
});
|
|
10
15
|
|
|
11
|
-
/** @type {
|
|
16
|
+
/** @type {DeployScriptFunction} */
|
|
12
17
|
export default async (homeP, endowments) => {
|
|
13
18
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
14
19
|
await writeCoreEval('testUpgradedBoard', defaultProposalBuilder);
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="ses" />
|
|
2
2
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @import {ChainInfo} from '@agoric/orchestration';
|
|
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 {Record<string, ChainInfo>} */
|
|
5
11
|
const chainInfo = {
|
|
6
12
|
agoric: {
|
|
7
13
|
bech32Prefix: 'agoric',
|
|
@@ -37,7 +43,7 @@ const chainInfo = {
|
|
|
37
43
|
},
|
|
38
44
|
};
|
|
39
45
|
|
|
40
|
-
/** @type {
|
|
46
|
+
/** @type {CoreEvalBuilder} */
|
|
41
47
|
export const defaultProposalBuilder = async () =>
|
|
42
48
|
harden({
|
|
43
49
|
sourceSpec: '@agoric/orchestration/src/proposals/revise-chain-info.js',
|
|
@@ -49,7 +55,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
49
55
|
],
|
|
50
56
|
});
|
|
51
57
|
|
|
52
|
-
/** @type {
|
|
58
|
+
/** @type {DeployScriptFunction} */
|
|
53
59
|
export default async (homeP, endowments) => {
|
|
54
60
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
55
61
|
await writeCoreEval('revise-chain-info', defaultProposalBuilder);
|
|
@@ -9,9 +9,11 @@ import {
|
|
|
9
9
|
} from '@agoric/internal';
|
|
10
10
|
import { E } from '@endo/far';
|
|
11
11
|
|
|
12
|
-
/// <reference types="@agoric/vats/src/core/types-ambient"/>
|
|
13
12
|
/**
|
|
14
13
|
* @import {Installation, Instance} from '@agoric/zoe/src/zoeService/utils.js';
|
|
14
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
15
|
+
* @import {DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
16
|
+
* @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
|
|
15
17
|
*/
|
|
16
18
|
|
|
17
19
|
const trace = makeTracer('UpgradeSA', true);
|
|
@@ -112,7 +114,7 @@ export const getManifestForValueVow = ({ restoreRef }, { sendAnywhereRef }) => {
|
|
|
112
114
|
};
|
|
113
115
|
};
|
|
114
116
|
|
|
115
|
-
/** @type {
|
|
117
|
+
/** @type {CoreEvalBuilder} */
|
|
116
118
|
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
117
119
|
harden({
|
|
118
120
|
// Somewhat unorthodox, source the exports from this builder module
|
|
@@ -129,7 +131,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
129
131
|
],
|
|
130
132
|
});
|
|
131
133
|
|
|
132
|
-
/** @type {
|
|
134
|
+
/** @type {DeployScriptFunction} */
|
|
133
135
|
export default async (homeP, endowments) => {
|
|
134
136
|
// import dynamically so the module can work in CoreEval environment
|
|
135
137
|
const dspModule = await import('@agoric/deploy-script-support');
|
|
@@ -1,31 +1,45 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { interProtocolBundleSpecs } from '@agoric/inter-protocol/source-spec-registry.js';
|
|
3
|
+
import { smartWalletSourceSpecRegistry } from '@agoric/smart-wallet/source-spec-registry.js';
|
|
4
|
+
import { buildBundlePath } from '../lib/build-bundle.js';
|
|
2
5
|
|
|
3
|
-
/**
|
|
4
|
-
|
|
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
|
+
|
|
11
|
+
/** @type {CoreEvalBuilder} */
|
|
12
|
+
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
13
|
+
const provisionPool = interProtocolBundleSpecs.provisionPool;
|
|
14
|
+
const walletFactory = smartWalletSourceSpecRegistry.walletFactory;
|
|
15
|
+
const provisionPoolPath = await buildBundlePath(
|
|
16
|
+
import.meta.url,
|
|
17
|
+
provisionPool,
|
|
18
|
+
);
|
|
19
|
+
const walletFactoryPath = await buildBundlePath(
|
|
20
|
+
import.meta.url,
|
|
21
|
+
walletFactory,
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
return harden({
|
|
6
25
|
sourceSpec: '@agoric/vats/src/core/startWalletFactory.js',
|
|
7
26
|
getManifestCall: [
|
|
8
27
|
'getManifestForWalletFactory',
|
|
9
28
|
{
|
|
10
29
|
installKeys: {
|
|
11
30
|
provisionPool: publishRef(
|
|
12
|
-
install(
|
|
13
|
-
'@agoric/inter-protocol/src/provisionPool.js',
|
|
14
|
-
'../bundles/bundle-provisionPool.js',
|
|
15
|
-
),
|
|
31
|
+
install(provisionPool.packagePath, provisionPoolPath),
|
|
16
32
|
),
|
|
17
33
|
walletFactory: publishRef(
|
|
18
|
-
install(
|
|
19
|
-
'@agoric/smart-wallet/src/walletFactory.js',
|
|
20
|
-
'../../smart-wallet/bundles/bundle-walletFactory.js',
|
|
21
|
-
),
|
|
34
|
+
install(walletFactory.packagePath, walletFactoryPath),
|
|
22
35
|
),
|
|
23
36
|
},
|
|
24
37
|
},
|
|
25
38
|
],
|
|
26
39
|
});
|
|
40
|
+
};
|
|
27
41
|
|
|
28
|
-
/** @type {
|
|
42
|
+
/** @type {DeployScriptFunction} */
|
|
29
43
|
export default async (homeP, endowments) => {
|
|
30
44
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
31
45
|
await writeCoreEval('gov-vats', defaultProposalBuilder);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
|
|
3
|
-
/**
|
|
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/vats/src/proposals/localchain-proposal.js',
|
|
@@ -14,7 +19,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
14
19
|
],
|
|
15
20
|
});
|
|
16
21
|
|
|
17
|
-
/** @type {
|
|
22
|
+
/** @type {DeployScriptFunction} */
|
|
18
23
|
export default async (homeP, endowments) => {
|
|
19
24
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
20
25
|
await writeCoreEval('gov-localchain', defaultProposalBuilder);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
|
|
3
|
-
/**
|
|
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/vats/src/proposals/network-proposal.js',
|
|
@@ -13,7 +18,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
13
18
|
],
|
|
14
19
|
});
|
|
15
20
|
|
|
16
|
-
/** @type {
|
|
21
|
+
/** @type {DeployScriptFunction} */
|
|
17
22
|
export default async (homeP, endowments) => {
|
|
18
23
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
19
24
|
await writeCoreEval('gov-network', defaultProposalBuilder);
|