@agoric/builders 0.1.1-other-dev-3eb1a1d.0 → 0.1.1-other-dev-d15096d.0.d15096d
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 +38 -37
- package/scripts/inter-protocol/add-STARS.js +8 -3
- package/scripts/inter-protocol/add-collateral-core.js +10 -4
- package/scripts/inter-protocol/init-core.js +7 -2
- package/scripts/inter-protocol/invite-committee-core.js +7 -2
- package/scripts/inter-protocol/manual-price-feed.js +5 -1
- package/scripts/inter-protocol/price-feed-core.js +5 -1
- package/scripts/inter-protocol/replace-electorate-core.js +9 -3
- package/scripts/inter-protocol/replace-feeDistributor-combo.js +87 -0
- package/scripts/inter-protocol/replace-feeDistributor.js +19 -6
- package/scripts/inter-protocol/updatePriceFeeds.js +18 -4
- package/scripts/inter-protocol/withdraw-reserve.build.js +73 -0
- package/scripts/inter-protocol/withdraw-vbank-reserve-permit.json +6 -0
- package/scripts/inter-protocol/withdraw-vbank-reserve.js +67 -0
- package/scripts/orchestration/axelar-gmp.build.js +83 -0
- package/scripts/orchestration/get-chain-config.js +121 -0
- package/scripts/orchestration/helpers.js +46 -0
- package/scripts/orchestration/hook-localchain-msg-send.js +35 -0
- package/scripts/orchestration/init-basic-flows.js +18 -4
- package/scripts/orchestration/init-stakeAtom.js +18 -4
- package/scripts/orchestration/init-stakeBld.js +7 -2
- package/scripts/orchestration/init-stakeOsmo.js +18 -4
- package/scripts/orchestration/write-chain-info.js +7 -2
- package/scripts/pegasus/init-core.js +7 -2
- package/scripts/smart-wallet/build-game1-start.js +7 -2
- package/scripts/smart-wallet/build-wallet-factory2-upgrade.js +7 -2
- package/scripts/smart-wallet/build-walletFactory-upgrade.js +7 -2
- package/scripts/testing/add-LEMONS.js +7 -2
- package/scripts/testing/add-OLIVES.js +7 -2
- package/scripts/testing/add-USD-LEMONS.js +23 -0
- package/scripts/testing/add-USD-OLIVES.js +23 -0
- package/scripts/testing/append-chain-info.js +12 -4
- package/scripts/testing/init-auto-stake-it.js +47 -0
- package/scripts/testing/init-send-anywhere.js +41 -0
- package/scripts/testing/init-swap-anything.js +41 -0
- package/scripts/testing/provokeBOYD.js +58 -0
- package/scripts/testing/publish-test-info.js +84 -0
- package/scripts/testing/recorded-retired-instances.js +86 -0
- package/scripts/testing/register-interchain-bank-assets.js +199 -0
- package/scripts/testing/replace-feeDistributor-short.js +14 -3
- package/scripts/testing/restart-axelar-gmp.js +96 -0
- package/scripts/testing/restart-basic-flows.js +5 -3
- package/scripts/testing/restart-send-anywhere.js +5 -3
- package/scripts/testing/restart-stakeAtom.js +5 -3
- package/scripts/testing/restart-valueVow.js +7 -4
- package/scripts/testing/start-query-flows.js +47 -25
- package/scripts/testing/start-valueVow.js +7 -4
- package/scripts/testing/test-upgraded-board.js +20 -0
- package/scripts/testing/tweak-chain-info.js +15 -4
- package/scripts/testing/{fix-buggy-sendAnywhere.js → upgrade-send-anywhere.js} +19 -21
- package/scripts/testing/upgrade-vaultFactory.js +26 -0
- package/scripts/vats/add-auction.js +7 -2
- package/scripts/vats/init-core.js +7 -2
- 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 +7 -3
- 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/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 +26 -0
- package/scripts/vats/upgrade-asset-reserve.js +26 -0
- package/scripts/vats/upgrade-bank.js +9 -4
- package/scripts/vats/upgrade-board.js +25 -0
- package/scripts/vats/upgrade-mintHolder.js +110 -0
- package/scripts/vats/upgrade-orchestration.js +26 -0
- package/scripts/vats/upgrade-paRegistry.js +26 -0
- package/scripts/vats/upgrade-provisionPool-to-BLD.js +30 -0
- package/scripts/vats/upgrade-provisionPool.js +7 -2
- package/scripts/vats/upgrade-psm.js +24 -0
- package/scripts/vats/upgrade-vats.js +53 -0
- package/scripts/vats/upgrade-zcf.js +7 -2
- package/scripts/vats/upgrade-zoe.js +7 -2
- package/scripts/vats/upgradeScaledPriceAuthorities.js +7 -2
- package/scripts/vats/upgradeVaults.js +7 -2
- package/index.js +0 -0
- package/scripts/fast-usdc/init-fast-usdc.js +0 -242
- package/scripts/testing/start-auto-stake-it.js +0 -128
- package/scripts/testing/start-buggy-sendAnywhere.js +0 -143
- package/scripts/testing/start-send-anywhere.js +0 -136
- package/scripts/vats/upgrade-orch-core.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/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);
|
|
@@ -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);
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import { DEFAULT_CONTRACT_TERMS } from '../inter-protocol/price-feed-core.js';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @import {CoreEvalBuilder} from '@agoric/deploy-script-support/src/externalTypes.js';
|
|
7
|
+
*/
|
|
8
|
+
|
|
5
9
|
const { Fail } = assert;
|
|
6
10
|
|
|
7
11
|
/**
|
|
8
12
|
* modified copy of ../inter-protocol/price-feed-core.js
|
|
9
13
|
*
|
|
10
|
-
* @type {
|
|
14
|
+
* @type {CoreEvalBuilder}
|
|
11
15
|
*/
|
|
12
16
|
export const strictPriceFeedProposalBuilder = async (
|
|
13
17
|
{ publishRef, install },
|
|
@@ -55,7 +59,7 @@ export const strictPriceFeedProposalBuilder = async (
|
|
|
55
59
|
|
|
56
60
|
/**
|
|
57
61
|
* @deprecated use `strictPriceFeedProposalBuilder` and specify arguments instead
|
|
58
|
-
* @type {
|
|
62
|
+
* @type {CoreEvalBuilder}
|
|
59
63
|
*/
|
|
60
64
|
export const deprecatedPriceFeedProposalBuilder = async (powers, options) => {
|
|
61
65
|
console.warn(
|
|
@@ -85,6 +89,6 @@ export const deprecatedPriceFeedProposalBuilder = async (powers, options) => {
|
|
|
85
89
|
|
|
86
90
|
/**
|
|
87
91
|
* @deprecated use `strictPriceFeedProposalBuilder` and specify arguments instead
|
|
88
|
-
* @type {
|
|
92
|
+
* @type {CoreEvalBuilder}
|
|
89
93
|
*/
|
|
90
94
|
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,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
|
|
|
@@ -0,0 +1,26 @@
|
|
|
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-agoricNames-proposal.js',
|
|
12
|
+
getManifestCall: [
|
|
13
|
+
'getManifestForUpgradingAgoricNames',
|
|
14
|
+
{
|
|
15
|
+
agoricNamesRef: publishRef(
|
|
16
|
+
install('@agoric/vats/src/vat-agoricNames.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-agoricNames', defaultProposalBuilder);
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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,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,8 +17,8 @@ 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
|
-
const {
|
|
18
|
-
await
|
|
22
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
23
|
+
await writeCoreEval('upgrade-bank', defaultProposalBuilder);
|
|
19
24
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { getManifestForUpgradingBoard } from '@agoric/vats/src/proposals/upgrade-board-proposal.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
|
+
/** @type {CoreEvalBuilder} */
|
|
10
|
+
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
11
|
+
harden({
|
|
12
|
+
sourceSpec: '@agoric/vats/src/proposals/upgrade-board-proposal.js',
|
|
13
|
+
getManifestCall: [
|
|
14
|
+
getManifestForUpgradingBoard.name,
|
|
15
|
+
{
|
|
16
|
+
boardRef: publishRef(install('@agoric/vats/src/vat-board.js')),
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
/** @type {DeployScriptFunction} */
|
|
22
|
+
export default async (homeP, endowments) => {
|
|
23
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
24
|
+
await writeCoreEval('upgrade-board', defaultProposalBuilder);
|
|
25
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { makeHelpers, parseScriptArgs } from '@agoric/deploy-script-support';
|
|
2
|
+
import { getManifestForUpgradingMintHolder } from '@agoric/vats/src/proposals/upgrade-mintHolder-proposal.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 configurations = {
|
|
10
|
+
A3P_INTEGRATION: {
|
|
11
|
+
labelList: [
|
|
12
|
+
'USDC_axl',
|
|
13
|
+
'USDT_grv',
|
|
14
|
+
'DAI_axl',
|
|
15
|
+
'DAI_grv',
|
|
16
|
+
'stATOM',
|
|
17
|
+
'USDC_grv',
|
|
18
|
+
'ATOM',
|
|
19
|
+
'USDT_axl',
|
|
20
|
+
'USDC',
|
|
21
|
+
'BLD',
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
MAINNET: {
|
|
25
|
+
labelList: [
|
|
26
|
+
'USDT',
|
|
27
|
+
'USDT_axl',
|
|
28
|
+
'USDT_grv',
|
|
29
|
+
'USDC',
|
|
30
|
+
'USDC_axl',
|
|
31
|
+
'USDC_grv',
|
|
32
|
+
'DAI_axl',
|
|
33
|
+
'DAI_grv',
|
|
34
|
+
'ATOM',
|
|
35
|
+
'stATOM',
|
|
36
|
+
'stkATOM',
|
|
37
|
+
'stTIA',
|
|
38
|
+
'stOSMO',
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
DEVNET: {
|
|
42
|
+
labelList: [
|
|
43
|
+
'stATOM3',
|
|
44
|
+
'stATOM',
|
|
45
|
+
'dATOM',
|
|
46
|
+
'stOSMO',
|
|
47
|
+
'stkATOM',
|
|
48
|
+
'stATOM2',
|
|
49
|
+
'STOSMO',
|
|
50
|
+
'stTIA',
|
|
51
|
+
'ATOM',
|
|
52
|
+
'AUSD',
|
|
53
|
+
'USDT_grv',
|
|
54
|
+
'USDC_axl',
|
|
55
|
+
'USDC_grv',
|
|
56
|
+
'USDT_axl',
|
|
57
|
+
'BLD',
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
EMERYNET: {
|
|
61
|
+
labelList: [
|
|
62
|
+
'ATOM',
|
|
63
|
+
'USDT',
|
|
64
|
+
'DAI_axl',
|
|
65
|
+
'DAI_grv',
|
|
66
|
+
'USDC_axl',
|
|
67
|
+
'stOSMO',
|
|
68
|
+
'stATOM',
|
|
69
|
+
'stkATOM',
|
|
70
|
+
'stOSMO2',
|
|
71
|
+
'ToyUSD',
|
|
72
|
+
'BLD',
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const { keys } = Object;
|
|
78
|
+
const knownVariants = keys(configurations);
|
|
79
|
+
|
|
80
|
+
/** @type {CoreEvalBuilder} */
|
|
81
|
+
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
82
|
+
const config = opts.config || configurations[opts.variant];
|
|
83
|
+
if (!config) {
|
|
84
|
+
const error = `Unknown variant "${opts.variant}". Expected one of ${knownVariants.join(', ')}`;
|
|
85
|
+
console.error(error);
|
|
86
|
+
throw Error(error);
|
|
87
|
+
}
|
|
88
|
+
const { labelList } = config;
|
|
89
|
+
|
|
90
|
+
return harden({
|
|
91
|
+
sourceSpec: '@agoric/vats/src/proposals/upgrade-mintHolder-proposal.js',
|
|
92
|
+
getManifestCall: [
|
|
93
|
+
getManifestForUpgradingMintHolder.name,
|
|
94
|
+
{
|
|
95
|
+
labelList,
|
|
96
|
+
contractRef: publishRef(install('@agoric/vats/src/mintHolder.js')),
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @type {DeployScriptFunction} */
|
|
103
|
+
export default async (homeP, endowments) => {
|
|
104
|
+
const opts = parseScriptArgs(endowments, 'upgrade-mintHolder', knownVariants);
|
|
105
|
+
|
|
106
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
107
|
+
await writeCoreEval(`upgrade-mintHolder`, utils =>
|
|
108
|
+
defaultProposalBuilder(utils, opts),
|
|
109
|
+
);
|
|
110
|
+
};
|