@agoric/builders 0.1.1-dev-cbcea8c.0.cbcea8c → 0.1.1-dev-5ff5e7a.0.5ff5e7a

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 (27) hide show
  1. package/package.json +18 -19
  2. package/scripts/testing/register-interchain-bank-assets.builder.js +41 -0
  3. package/scripts/vats/init-core.js +2 -2
  4. package/scripts/vats/invite-committee.js +45 -0
  5. package/scripts/vats/start-econ-committee.js +46 -0
  6. package/scripts/inter-protocol/add-collateral-core.js +0 -132
  7. package/scripts/inter-protocol/init-core.js +0 -233
  8. package/scripts/inter-protocol/invite-committee-core.js +0 -52
  9. package/scripts/inter-protocol/manual-price-feed.js +0 -131
  10. package/scripts/inter-protocol/price-feed-core.js +0 -113
  11. package/scripts/inter-protocol/replace-electorate-core.js +0 -173
  12. package/scripts/inter-protocol/replace-feeDistributor-combo.js +0 -87
  13. package/scripts/inter-protocol/replace-feeDistributor.js +0 -41
  14. package/scripts/inter-protocol/updatePriceFeeds.js +0 -141
  15. package/scripts/inter-protocol/withdraw-reserve.build.js +0 -73
  16. package/scripts/inter-protocol/withdraw-vbank-reserve-permit.json +0 -6
  17. package/scripts/inter-protocol/withdraw-vbank-reserve.js +0 -72
  18. package/scripts/testing/replace-feeDistributor-short.js +0 -38
  19. package/scripts/vats/priceFeedSupport.js +0 -99
  20. package/scripts/vats/updateAtomPriceFeed.js +0 -27
  21. package/scripts/vats/updateStAtomPriceFeed.js +0 -27
  22. package/scripts/vats/updateStOsmoPriceFeed.js +0 -27
  23. package/scripts/vats/updateStTiaPriceFeed.js +0 -27
  24. package/scripts/vats/updateStkAtomPriceFeed.js +0 -27
  25. package/scripts/vats/upgrade-asset-reserve.js +0 -26
  26. package/scripts/vats/upgrade-psm.js +0 -24
  27. package/scripts/vats/upgradeScaledPriceAuthorities.js +0 -28
@@ -1,73 +0,0 @@
1
- /* eslint-env node */
2
- import { parseArgs } from 'node:util';
3
- import { isNat } from '@endo/nat';
4
- import { makeHelpers } from '@agoric/deploy-script-support';
5
- import { getManifestForInviteWithdrawer } from '@agoric/inter-protocol/src/proposals/withdraw-reserve-proposal.js';
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
-
12
- /**
13
- * @template {{ type: string }} T
14
- * @typedef { T['type'] extends 'string' ? string : T['type'] extends 'boolean' ? boolean : (string | boolean) } TypeFromParseArgsOptionDescriptor
15
- */
16
-
17
- /**
18
- * @template {Record<string, { type: string, multiple?: boolean }>} T
19
- * @typedef {{
20
- * [K in keyof T]: (
21
- * T[K]['multiple'] extends true
22
- * ? TypeFromParseArgsOptionDescriptor<T[K]>[]
23
- * : T[K]['multiple'] extends (false | unknown)
24
- * ? TypeFromParseArgsOptionDescriptor<T[K]>
25
- * : (TypeFromParseArgsOptionDescriptor<T[K]>[] | TypeFromParseArgsOptionDescriptor<T[K]>)
26
- * )
27
- * }} CliOptions
28
- */
29
-
30
- const { Fail } = assert;
31
-
32
- const cliOptions = /** @type {const} */ ({
33
- address: { type: 'string', multiple: false },
34
- count: { type: 'string', multiple: false },
35
- });
36
-
37
- /** @type {CoreEvalBuilder} */
38
- export const defaultProposalBuilder = async (
39
- { publishRef: _publishRef, install: _install },
40
- namedArgs = {},
41
- ) => {
42
- const { address, count } = namedArgs;
43
-
44
- typeof address === 'string' || Fail`string address is required`;
45
- if (count !== undefined) {
46
- isNat(count) || Fail`count must be a safe natural number`;
47
- }
48
-
49
- return harden({
50
- sourceSpec:
51
- '@agoric/inter-protocol/src/proposals/withdraw-reserve-proposal.js',
52
- getManifestCall: [getManifestForInviteWithdrawer.name, { address, count }],
53
- });
54
- };
55
-
56
- /** @type {DeployScriptFunction} */
57
- export default async (homeP, endowments) => {
58
- const { scriptArgs: argv } = endowments;
59
- /** @type {{ values: Partial<CliOptions<typeof cliOptions>> }} */
60
- const { values: rawArgs } = parseArgs({ args: argv, options: cliOptions });
61
- const { address, count: rawCount } = rawArgs;
62
- const count = (() => {
63
- if (rawCount === undefined) return undefined;
64
- /[0-9]/.test(rawCount) || Fail`--count value must be numeric`;
65
- return +rawCount;
66
- })();
67
- const namedArgs = { address, count };
68
-
69
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
70
- await writeCoreEval('withdraw-reserve', utils =>
71
- defaultProposalBuilder(utils, namedArgs),
72
- );
73
- };
@@ -1,6 +0,0 @@
1
- {
2
- "consume": {
3
- "agoricNames": "lookupBrands",
4
- "bankManager": "getBankForAddress"
5
- }
6
- }
@@ -1,72 +0,0 @@
1
- /* global E */
2
- /// <reference types="@agoric/vats/src/core/core-eval-env.js" />
3
- // @ts-check
4
-
5
- /**
6
- * @import {ChainBootstrapSpace} from '@agoric/vats/src/core/types.js';
7
- * @import {BootstrapPowers} from '@agoric/vats/src/core/types.js';
8
- */
9
-
10
- // FIXME: we need to hardcode these values because the vbank reserve purse
11
- // balance is not synced.
12
- const DEFAULT_BLD_VALUE = 1_998n;
13
- const DEFAULT_IST_VALUE = 202_020n;
14
-
15
- const vbankReserveAddress = 'agoric1ae0lmtzlgrcnla9xjkpaarq5d5dfez63h3nucl';
16
- const beneficiaryAddress = 'agoric18lfz3w97u72p4jq58gdn05ftdcv9rwz0ft5l2m';
17
-
18
- /** @param {ChainBootstrapSpace & BootstrapPowers} powers */
19
- const coreEval = async powers => {
20
- console.warn('Core eval to transfer vbank/reserve to a beneficiary');
21
- const {
22
- consume: { agoricNames, bankManager },
23
- } = powers;
24
-
25
- console.warn('Looking up brands');
26
- const BLD = await E(agoricNames).lookup('brand', 'BLD');
27
- const IST = await E(agoricNames).lookup('brand', 'IST');
28
-
29
- console.warn('Getting banks');
30
- const reserveBank =
31
- await E(bankManager).getBankForAddress(vbankReserveAddress);
32
- const beneficiaryBank =
33
- await E(bankManager).getBankForAddress(beneficiaryAddress);
34
-
35
- console.warn('Getting reserve purses');
36
- const reserveBLDPurse = await E(reserveBank).getPurse(BLD);
37
- const reserveISTPurse = await E(reserveBank).getPurse(IST);
38
-
39
- console.warn('Getting reserve balances');
40
- const BLDAmount = await E(reserveBLDPurse).getCurrentAmount();
41
- const reserveBLDBalance = harden({
42
- ...BLDAmount,
43
- value: BLDAmount.value || DEFAULT_BLD_VALUE,
44
- });
45
- const ISTAmount = await E(reserveISTPurse).getCurrentAmount();
46
- const reserveISTBalance = harden({
47
- ...ISTAmount,
48
- value: ISTAmount.value || DEFAULT_IST_VALUE,
49
- });
50
- console.warn('reserve BLD balance', reserveBLDBalance);
51
- console.warn('reserve IST balance', reserveISTBalance);
52
-
53
- console.warn('Getting beneficiary purses');
54
- const beneficiaryBLDPurse = await E(beneficiaryBank).getPurse(BLD);
55
- const beneficiaryISTPurse = await E(beneficiaryBank).getPurse(IST);
56
-
57
- console.warn('Withdrawing from reserve purses');
58
- const BLDPayment = await E(reserveBLDPurse).withdraw(reserveBLDBalance);
59
- const ISTPayment = await E(reserveISTPurse).withdraw(reserveISTBalance);
60
-
61
- console.warn('Depositing into beneficiary purses');
62
- const BLDTransferAmount = await E(beneficiaryBLDPurse).deposit(BLDPayment);
63
- const ISTTransferAmount = await E(beneficiaryISTPurse).deposit(ISTPayment);
64
-
65
- console.warn(
66
- 'Done withdrawing reserve!',
67
- BLDTransferAmount,
68
- ISTTransferAmount,
69
- );
70
- };
71
-
72
- coreEval;
@@ -1,38 +0,0 @@
1
- import { makeHelpers } from '@agoric/deploy-script-support';
2
- import { getManifestForReplaceFeeDistributor } from '@agoric/inter-protocol/src/proposals/replace-fee-distributor.js';
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
-
9
- /**
10
- * @file
11
- * a Variant of ../inter-protocol/replace-feeDistributor.js that shortens the
12
- * collectionInterval for testing
13
- */
14
-
15
- /** @type {CoreEvalBuilder} */
16
- export const defaultProposalBuilder = async (_, opts) => {
17
- console.log('feeDist OPTS', opts);
18
- return harden({
19
- sourceSpec:
20
- '@agoric/inter-protocol/src/proposals/replace-fee-distributor.js',
21
- getManifestCall: [getManifestForReplaceFeeDistributor.name, { ...opts }],
22
- });
23
- };
24
-
25
- /** @type {DeployScriptFunction} */
26
- export default async (homeP, endowments) => {
27
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
28
-
29
- await writeCoreEval('replace-feeDistributor-testing', utils =>
30
- defaultProposalBuilder(utils, {
31
- collectionInterval: 30n,
32
- keywordShares: {
33
- RewardDistributor: 0n,
34
- Reserve: 1n,
35
- },
36
- }),
37
- );
38
- };
@@ -1,99 +0,0 @@
1
- /* global process */
2
-
3
- import { interProtocolBundleSpecs } from '@agoric/inter-protocol/source-spec-registry.js';
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
- */
10
-
11
- const { Fail } = assert;
12
-
13
- /**
14
- * modified copy of ../inter-protocol/price-feed-core.js
15
- *
16
- * @type {CoreEvalBuilder}
17
- */
18
- export const strictPriceFeedProposalBuilder = async (
19
- { publishRef, install },
20
- options,
21
- ) => {
22
- const {
23
- AGORIC_INSTANCE_NAME,
24
- IN_BRAND_LOOKUP,
25
- IN_BRAND_NAME = IN_BRAND_LOOKUP[IN_BRAND_LOOKUP.length - 1],
26
- ORACLE_ADDRESSES,
27
- } = options;
28
-
29
- const oracleAddresses = ORACLE_ADDRESSES;
30
- Array.isArray(oracleAddresses) ||
31
- Fail`ORACLE_ADDRESSES array is required; got ${oracleAddresses}`;
32
-
33
- AGORIC_INSTANCE_NAME ||
34
- Fail`AGORIC_INSTANCE_NAME is required; got ${AGORIC_INSTANCE_NAME}`;
35
-
36
- Array.isArray(IN_BRAND_LOOKUP) ||
37
- Fail`IN_BRAND_NAME array is required; got ${IN_BRAND_LOOKUP}`;
38
-
39
- const priceAggregator = interProtocolBundleSpecs.priceAggregator;
40
- const priceAggregatorPath = await buildBundlePath(
41
- import.meta.url,
42
- priceAggregator,
43
- );
44
-
45
- return harden({
46
- sourceSpec: '@agoric/inter-protocol/src/proposals/price-feed-proposal.js',
47
- getManifestCall: [
48
- 'getManifestForPriceFeed',
49
- {
50
- AGORIC_INSTANCE_NAME,
51
- contractTerms: DEFAULT_CONTRACT_TERMS,
52
- oracleAddresses,
53
- IN_BRAND_NAME,
54
- IN_BRAND_DECIMALS: 6,
55
- OUT_BRAND_DECIMALS: 4,
56
- OUT_BRAND_NAME: 'USD',
57
- priceAggregatorRef: publishRef(
58
- install(priceAggregator.packagePath, priceAggregatorPath),
59
- ),
60
- },
61
- ],
62
- });
63
- };
64
-
65
- /**
66
- * @deprecated use `strictPriceFeedProposalBuilder` and specify arguments instead
67
- * @type {CoreEvalBuilder}
68
- */
69
- export const deprecatedPriceFeedProposalBuilder = async (powers, options) => {
70
- console.warn(
71
- 'deprecated ambient `priceFeedProposalBuilder`; use `strictPriceFeedProposalBuilder` instead',
72
- );
73
-
74
- const DEFAULT_ORACLE_ADDRESSES = [
75
- // XXX These are the oracle addresses. They must be provided before the chain
76
- // is running, which means they must be known ahead of time.
77
- // see https://github.com/Agoric/agoric-3-proposals/issues/5
78
- 'agoric1lu9hh5vgx05hmlpfu47hukershgdxctk6l5s05',
79
- 'agoric15lpnq2mjsdhtztf6khp7mrsq66hyrssspy92pd',
80
- 'agoric1mwm224epc4l3pjcz7qsxnudcuktpynwkmnfqfp',
81
- ];
82
-
83
- const { GOV1ADDR, GOV2ADDR, GOV3ADDR } = process.env;
84
- const governanceAddressEnv = [GOV1ADDR, GOV2ADDR, GOV3ADDR].filter(x => x);
85
- const ORACLE_ADDRESSES = governanceAddressEnv.length
86
- ? governanceAddressEnv
87
- : DEFAULT_ORACLE_ADDRESSES;
88
-
89
- return strictPriceFeedProposalBuilder(powers, {
90
- ...options,
91
- ORACLE_ADDRESSES,
92
- });
93
- };
94
-
95
- /**
96
- * @deprecated use `strictPriceFeedProposalBuilder` and specify arguments instead
97
- * @type {CoreEvalBuilder}
98
- */
99
- export const priceFeedProposalBuilder = deprecatedPriceFeedProposalBuilder;
@@ -1,27 +0,0 @@
1
- import { makeHelpers } from '@agoric/deploy-script-support';
2
- import { priceFeedProposalBuilder } from './priceFeedSupport.js';
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
-
9
- const OPTIONS = {
10
- AGORIC_INSTANCE_NAME: 'ATOM-USD price feed',
11
- IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'ATOM'],
12
- OUT_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'USD'],
13
- };
14
-
15
- /**
16
- * @type {CoreEvalBuilder}
17
- */
18
- export const defaultProposalBuilder = async ({ publishRef, install }) => {
19
- return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
20
- };
21
-
22
- /** @type {DeployScriptFunction} */
23
- export default async (homeP, endowments) => {
24
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
25
-
26
- await writeCoreEval('atomPriceFeed', defaultProposalBuilder);
27
- };
@@ -1,27 +0,0 @@
1
- import { makeHelpers } from '@agoric/deploy-script-support';
2
- import { priceFeedProposalBuilder } from './priceFeedSupport.js';
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
-
9
- const OPTIONS = {
10
- AGORIC_INSTANCE_NAME: 'stATOM-USD price feed',
11
- IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'stATOM'],
12
- OUT_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'USD'],
13
- };
14
-
15
- /**
16
- * @type {CoreEvalBuilder}
17
- */
18
- export const defaultProposalBuilder = async ({ publishRef, install }) => {
19
- return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
20
- };
21
-
22
- /** @type {DeployScriptFunction} */
23
- export default async (homeP, endowments) => {
24
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
25
-
26
- await writeCoreEval('stAtomPriceFeed', defaultProposalBuilder);
27
- };
@@ -1,27 +0,0 @@
1
- import { makeHelpers } from '@agoric/deploy-script-support';
2
- import { priceFeedProposalBuilder } from './priceFeedSupport.js';
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
-
9
- const OPTIONS = {
10
- AGORIC_INSTANCE_NAME: 'stOSMO-USD price feed',
11
- IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'stOSMO'],
12
- OUT_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'USD'],
13
- };
14
-
15
- /**
16
- * @type {CoreEvalBuilder}
17
- */
18
- export const defaultProposalBuilder = async ({ publishRef, install }) => {
19
- return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
20
- };
21
-
22
- /** @type {DeployScriptFunction} */
23
- export default async (homeP, endowments) => {
24
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
25
-
26
- await writeCoreEval('stOsmoPriceFeed', defaultProposalBuilder);
27
- };
@@ -1,27 +0,0 @@
1
- import { makeHelpers } from '@agoric/deploy-script-support';
2
- import { priceFeedProposalBuilder } from './priceFeedSupport.js';
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
-
9
- const OPTIONS = {
10
- AGORIC_INSTANCE_NAME: 'stTIA-USD price feed',
11
- IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'stTIA'],
12
- OUT_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'USD'],
13
- };
14
-
15
- /**
16
- * @type {CoreEvalBuilder}
17
- */
18
- export const defaultProposalBuilder = async ({ publishRef, install }) => {
19
- return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
20
- };
21
-
22
- /** @type {DeployScriptFunction} */
23
- export default async (homeP, endowments) => {
24
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
25
-
26
- await writeCoreEval('stTiaPriceFeed', defaultProposalBuilder);
27
- };
@@ -1,27 +0,0 @@
1
- import { makeHelpers } from '@agoric/deploy-script-support';
2
- import { priceFeedProposalBuilder } from './priceFeedSupport.js';
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
-
9
- const OPTIONS = {
10
- AGORIC_INSTANCE_NAME: 'stkATOM-USD price feed',
11
- IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'stkATOM'],
12
- OUT_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'USD'],
13
- };
14
-
15
- /**
16
- * @type {CoreEvalBuilder}
17
- */
18
- export const defaultProposalBuilder = async ({ publishRef, install }) => {
19
- return priceFeedProposalBuilder({ publishRef, install }, OPTIONS);
20
- };
21
-
22
- /** @type {DeployScriptFunction} */
23
- export default async (homeP, endowments) => {
24
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
25
-
26
- await writeCoreEval('stkATOMPriceFeed', defaultProposalBuilder);
27
- };
@@ -1,26 +0,0 @@
1
- import { makeHelpers } from '@agoric/deploy-script-support';
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
-
8
- /** @type {CoreEvalBuilder} */
9
- export const defaultProposalBuilder = async ({ publishRef, install }) =>
10
- harden({
11
- sourceSpec: '@agoric/vats/src/proposals/upgrade-asset-reserve-proposal.js',
12
- getManifestCall: [
13
- 'getManifestForUpgradingAssetReserve',
14
- {
15
- assetReserveRef: publishRef(
16
- install('@agoric/inter-protocol/src/reserve/assetReserve.js'),
17
- ),
18
- },
19
- ],
20
- });
21
-
22
- /** @type {DeployScriptFunction} */
23
- export default async (homeP, endowments) => {
24
- const { writeCoreProposal } = await makeHelpers(homeP, endowments);
25
- await writeCoreProposal('upgrade-asset-reserve', defaultProposalBuilder);
26
- };
@@ -1,24 +0,0 @@
1
- import { makeHelpers } from '@agoric/deploy-script-support';
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
-
8
- /** @type {CoreEvalBuilder} */
9
- export const defaultProposalBuilder = async ({ publishRef, install }) =>
10
- harden({
11
- sourceSpec: '@agoric/vats/src/proposals/upgrade-psm-proposal.js',
12
- getManifestCall: [
13
- 'getManifestForUpgradingPSM',
14
- {
15
- psmRef: publishRef(install('@agoric/inter-protocol/src/psm/psm.js')),
16
- },
17
- ],
18
- });
19
-
20
- /** @type {DeployScriptFunction} */
21
- export default async (homeP, endowments) => {
22
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
23
- await writeCoreEval('upgrade-psm', defaultProposalBuilder);
24
- };
@@ -1,28 +0,0 @@
1
- import { makeHelpers } from '@agoric/deploy-script-support';
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
-
8
- /** @type {CoreEvalBuilder} */
9
- export const defaultProposalBuilder = async ({ publishRef, install }) =>
10
- harden({
11
- sourceSpec:
12
- '@agoric/inter-protocol/src/proposals/upgrade-scaledPriceAuthorities.js',
13
- getManifestCall: [
14
- 'getManifestForUpgradeScaledPriceAuthorities',
15
- {
16
- scaledPARef: publishRef(
17
- install('@agoric/zoe/src/contracts/scaledPriceAuthority.js'),
18
- ),
19
- },
20
- ],
21
- });
22
-
23
- /** @type {DeployScriptFunction} */
24
- export default async (homeP, endowments) => {
25
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
26
-
27
- await writeCoreEval('upgradeScaledPriceAuthorities', defaultProposalBuilder);
28
- };