@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
|
@@ -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/orchestration/src/proposals/orchestration-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-orchestration', 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/transfer-proposal.js',
|
|
@@ -12,7 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
12
17
|
],
|
|
13
18
|
});
|
|
14
19
|
|
|
15
|
-
/** @type {
|
|
20
|
+
/** @type {DeployScriptFunction} */
|
|
16
21
|
export default async (homeP, endowments) => {
|
|
17
22
|
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
18
23
|
await writeCoreProposal('gov-transfer', defaultProposalBuilder);
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
/* global process */
|
|
2
2
|
|
|
3
|
+
import { interProtocolBundleSpecs } from '@agoric/inter-protocol/source-spec-registry.js';
|
|
3
4
|
import { DEFAULT_CONTRACT_TERMS } from '../inter-protocol/price-feed-core.js';
|
|
5
|
+
import { buildBundlePath } from '../lib/build-bundle.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
9
|
+
*/
|
|
4
10
|
|
|
5
11
|
const { Fail } = assert;
|
|
6
12
|
|
|
7
13
|
/**
|
|
8
14
|
* modified copy of ../inter-protocol/price-feed-core.js
|
|
9
15
|
*
|
|
10
|
-
* @type {
|
|
16
|
+
* @type {CoreEvalBuilder}
|
|
11
17
|
*/
|
|
12
18
|
export const strictPriceFeedProposalBuilder = async (
|
|
13
19
|
{ publishRef, install },
|
|
@@ -30,6 +36,12 @@ export const strictPriceFeedProposalBuilder = async (
|
|
|
30
36
|
Array.isArray(IN_BRAND_LOOKUP) ||
|
|
31
37
|
Fail`IN_BRAND_NAME array is required; got ${IN_BRAND_LOOKUP}`;
|
|
32
38
|
|
|
39
|
+
const priceAggregator = interProtocolBundleSpecs.priceAggregator;
|
|
40
|
+
const priceAggregatorPath = await buildBundlePath(
|
|
41
|
+
import.meta.url,
|
|
42
|
+
priceAggregator,
|
|
43
|
+
);
|
|
44
|
+
|
|
33
45
|
return harden({
|
|
34
46
|
sourceSpec: '@agoric/inter-protocol/src/proposals/price-feed-proposal.js',
|
|
35
47
|
getManifestCall: [
|
|
@@ -43,10 +55,7 @@ export const strictPriceFeedProposalBuilder = async (
|
|
|
43
55
|
OUT_BRAND_DECIMALS: 4,
|
|
44
56
|
OUT_BRAND_NAME: 'USD',
|
|
45
57
|
priceAggregatorRef: publishRef(
|
|
46
|
-
install(
|
|
47
|
-
'@agoric/inter-protocol/src/price/fluxAggregatorContract.js',
|
|
48
|
-
'../bundles/bundle-fluxAggregatorKit.js',
|
|
49
|
-
),
|
|
58
|
+
install(priceAggregator.packagePath, priceAggregatorPath),
|
|
50
59
|
),
|
|
51
60
|
},
|
|
52
61
|
],
|
|
@@ -55,7 +64,7 @@ export const strictPriceFeedProposalBuilder = async (
|
|
|
55
64
|
|
|
56
65
|
/**
|
|
57
66
|
* @deprecated use `strictPriceFeedProposalBuilder` and specify arguments instead
|
|
58
|
-
* @type {
|
|
67
|
+
* @type {CoreEvalBuilder}
|
|
59
68
|
*/
|
|
60
69
|
export const deprecatedPriceFeedProposalBuilder = async (powers, options) => {
|
|
61
70
|
console.warn(
|
|
@@ -85,6 +94,6 @@ export const deprecatedPriceFeedProposalBuilder = async (powers, options) => {
|
|
|
85
94
|
|
|
86
95
|
/**
|
|
87
96
|
* @deprecated use `strictPriceFeedProposalBuilder` and specify arguments instead
|
|
88
|
-
* @type {
|
|
97
|
+
* @type {CoreEvalBuilder}
|
|
89
98
|
*/
|
|
90
99
|
export const priceFeedProposalBuilder = deprecatedPriceFeedProposalBuilder;
|
|
@@ -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/probeZcfBundle.js',
|
|
@@ -16,7 +21,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
16
21
|
],
|
|
17
22
|
});
|
|
18
23
|
|
|
19
|
-
/** @type {
|
|
24
|
+
/** @type {DeployScriptFunction} */
|
|
20
25
|
export default async (homeP, endowments) => {
|
|
21
26
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
27
|
await writeCoreEval('probeZcfBundle', defaultProposalBuilder);
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
4
4
|
import { getManifestForProvisioning } from '@agoric/vats/src/proposals/namesByAddress-fix-proposal.js';
|
|
5
5
|
|
|
6
|
-
/**
|
|
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} */
|
|
7
12
|
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
8
13
|
harden({
|
|
9
14
|
sourceSpec: '@agoric/vats/src/proposals/namesByAddress-fix-proposal.js',
|
|
@@ -17,7 +22,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
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
|
await writeCoreEval('gov-provisioning', 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/zcf-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('replace-zcf', 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 () => {
|
|
5
10
|
// An includelist isn't necessary because the collections are known to be complete (tested in test-vaults-upgrade.js)
|
|
6
11
|
const skip = [
|
|
@@ -19,7 +24,7 @@ export const defaultProposalBuilder = async () => {
|
|
|
19
24
|
});
|
|
20
25
|
};
|
|
21
26
|
|
|
22
|
-
/** @type {
|
|
27
|
+
/** @type {DeployScriptFunction} */
|
|
23
28
|
export default async (homeP, endowments) => {
|
|
24
29
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
25
30
|
await writeCoreEval('restart-vats', defaultProposalBuilder);
|
|
@@ -1,13 +1,18 @@
|
|
|
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 () =>
|
|
5
10
|
harden({
|
|
6
11
|
sourceSpec: '@agoric/vats/src/proposals/kread-proposal.js',
|
|
7
12
|
getManifestCall: ['getManifestForKread'],
|
|
8
13
|
});
|
|
9
14
|
|
|
10
|
-
/** @type {
|
|
15
|
+
/** @type {DeployScriptFunction} */
|
|
11
16
|
export default async (homeP, endowments) => {
|
|
12
17
|
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
13
18
|
await writeCoreProposal('revive-kread', defaultProposalBuilder);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import process from 'process';
|
|
4
|
-
import { createRequire } from 'module';
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import process from 'node:process';
|
|
4
|
+
import { createRequire } from 'node:module';
|
|
5
5
|
|
|
6
6
|
const require = createRequire(import.meta.url);
|
|
7
7
|
const spec = process.argv[2];
|
|
@@ -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 _powers =>
|
|
5
10
|
harden({
|
|
6
11
|
sourceSpec: '@agoric/vats/src/proposals/localchain-test.js',
|
|
@@ -12,7 +17,7 @@ export const defaultProposalBuilder = async _powers =>
|
|
|
12
17
|
],
|
|
13
18
|
});
|
|
14
19
|
|
|
15
|
-
/** @type {
|
|
20
|
+
/** @type {DeployScriptFunction} */
|
|
16
21
|
export default async (homeP, endowments) => {
|
|
17
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
18
23
|
await writeCoreEval('test-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 _powers =>
|
|
5
10
|
harden({
|
|
6
11
|
sourceSpec: '@agoric/vats/src/proposals/vtransfer-echoer.js',
|
|
@@ -12,7 +17,7 @@ export const defaultProposalBuilder = async _powers =>
|
|
|
12
17
|
],
|
|
13
18
|
});
|
|
14
19
|
|
|
15
|
-
/** @type {
|
|
20
|
+
/** @type {DeployScriptFunction} */
|
|
16
21
|
export default async (homeP, endowments) => {
|
|
17
22
|
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
18
23
|
await writeCoreProposal('test-vtransfer', defaultProposalBuilder);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
import { priceFeedProposalBuilder } from './priceFeedSupport.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
|
const OPTIONS = {
|
|
5
10
|
AGORIC_INSTANCE_NAME: 'ATOM-USD price feed',
|
|
6
11
|
IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'ATOM'],
|
|
@@ -8,13 +13,13 @@ const OPTIONS = {
|
|
|
8
13
|
};
|
|
9
14
|
|
|
10
15
|
/**
|
|
11
|
-
* @type {
|
|
16
|
+
* @type {CoreEvalBuilder}
|
|
12
17
|
*/
|
|
13
18
|
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
14
19
|
return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
|
|
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
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
import { priceFeedProposalBuilder } from './priceFeedSupport.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
|
const OPTIONS = {
|
|
5
10
|
AGORIC_INSTANCE_NAME: 'stATOM-USD price feed',
|
|
6
11
|
IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'stATOM'],
|
|
@@ -8,13 +13,13 @@ const OPTIONS = {
|
|
|
8
13
|
};
|
|
9
14
|
|
|
10
15
|
/**
|
|
11
|
-
* @type {
|
|
16
|
+
* @type {CoreEvalBuilder}
|
|
12
17
|
*/
|
|
13
18
|
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
14
19
|
return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
|
|
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
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
import { priceFeedProposalBuilder } from './priceFeedSupport.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
|
const OPTIONS = {
|
|
5
10
|
AGORIC_INSTANCE_NAME: 'stOSMO-USD price feed',
|
|
6
11
|
IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'stOSMO'],
|
|
@@ -8,13 +13,13 @@ const OPTIONS = {
|
|
|
8
13
|
};
|
|
9
14
|
|
|
10
15
|
/**
|
|
11
|
-
* @type {
|
|
16
|
+
* @type {CoreEvalBuilder}
|
|
12
17
|
*/
|
|
13
18
|
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
14
19
|
return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
|
|
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
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
import { priceFeedProposalBuilder } from './priceFeedSupport.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
|
const OPTIONS = {
|
|
5
10
|
AGORIC_INSTANCE_NAME: 'stTIA-USD price feed',
|
|
6
11
|
IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'stTIA'],
|
|
@@ -8,13 +13,13 @@ const OPTIONS = {
|
|
|
8
13
|
};
|
|
9
14
|
|
|
10
15
|
/**
|
|
11
|
-
* @type {
|
|
16
|
+
* @type {CoreEvalBuilder}
|
|
12
17
|
*/
|
|
13
18
|
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
14
19
|
return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
|
|
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
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
import { priceFeedProposalBuilder } from './priceFeedSupport.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
|
const OPTIONS = {
|
|
5
10
|
AGORIC_INSTANCE_NAME: 'stkATOM-USD price feed',
|
|
6
11
|
IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'stkATOM'],
|
|
@@ -8,13 +13,13 @@ const OPTIONS = {
|
|
|
8
13
|
};
|
|
9
14
|
|
|
10
15
|
/**
|
|
11
|
-
* @type {
|
|
16
|
+
* @type {CoreEvalBuilder}
|
|
12
17
|
*/
|
|
13
18
|
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
14
19
|
return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
|
|
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
|
|
|
@@ -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/upgrade-agoricNames-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 { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
20
25
|
await writeCoreProposal('upgrade-agoricNames', 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/upgrade-asset-reserve-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 { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
20
25
|
await writeCoreProposal('upgrade-asset-reserve', 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/upgrade-bank-proposal.js',
|
|
@@ -12,7 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
12
17
|
],
|
|
13
18
|
});
|
|
14
19
|
|
|
15
|
-
/** @type {
|
|
20
|
+
/** @type {DeployScriptFunction} */
|
|
16
21
|
export default async (homeP, endowments) => {
|
|
17
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
18
23
|
await writeCoreEval('upgrade-bank', defaultProposalBuilder);
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
import { getManifestForUpgradingBoard } from '@agoric/vats/src/proposals/upgrade-board-proposal.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 ({ publishRef, install }) =>
|
|
6
11
|
harden({
|
|
7
12
|
sourceSpec: '@agoric/vats/src/proposals/upgrade-board-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('upgrade-board', defaultProposalBuilder);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { makeHelpers, parseScriptArgs } from '@agoric/deploy-script-support';
|
|
2
2
|
import { getManifestForUpgradingMintHolder } from '@agoric/vats/src/proposals/upgrade-mintHolder-proposal.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
|
const configurations = {
|
|
5
10
|
A3P_INTEGRATION: {
|
|
6
11
|
labelList: [
|
|
@@ -72,7 +77,7 @@ const configurations = {
|
|
|
72
77
|
const { keys } = Object;
|
|
73
78
|
const knownVariants = keys(configurations);
|
|
74
79
|
|
|
75
|
-
/** @type {
|
|
80
|
+
/** @type {CoreEvalBuilder} */
|
|
76
81
|
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
77
82
|
const config = opts.config || configurations[opts.variant];
|
|
78
83
|
if (!config) {
|
|
@@ -94,7 +99,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
|
94
99
|
});
|
|
95
100
|
};
|
|
96
101
|
|
|
97
|
-
/** @type {
|
|
102
|
+
/** @type {DeployScriptFunction} */
|
|
98
103
|
export default async (homeP, endowments) => {
|
|
99
104
|
const opts = parseScriptArgs(endowments, 'upgrade-mintHolder', knownVariants);
|
|
100
105
|
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
import { upgradeVatsProposalBuilder } from './upgrade-vats.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 powers => {
|
|
6
11
|
const bundleRecord = {
|
|
7
12
|
ibc: '@agoric/vats/src/vat-ibc.js',
|
|
@@ -14,7 +19,7 @@ export const defaultProposalBuilder = async powers => {
|
|
|
14
19
|
return upgradeVatsProposalBuilder(powers, bundleRecord);
|
|
15
20
|
};
|
|
16
21
|
|
|
17
|
-
/** @type {
|
|
22
|
+
/** @type {DeployScriptFunction} */
|
|
18
23
|
export default async (homeP, endowments) => {
|
|
19
24
|
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
20
25
|
await writeCoreProposal('upgrade-orchestration', 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/upgrade-paRegistry-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('upgrade-paRegistry', 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:
|
|
@@ -15,7 +20,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
15
20
|
],
|
|
16
21
|
});
|
|
17
22
|
|
|
18
|
-
/** @type {
|
|
23
|
+
/** @type {DeployScriptFunction} */
|
|
19
24
|
export default async (homeP, endowments) => {
|
|
20
25
|
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
21
26
|
await writeCoreProposal(
|
|
@@ -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/upgrade-provisionPool-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 { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
20
25
|
await writeCoreProposal('upgrade-provision-pool', defaultProposalBuilder);
|