@agoric/builders 0.1.1-orchestration-dev-096c4e8.0 → 0.1.1-other-dev-3eb1a1d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +0 -2
- package/package.json +33 -31
- package/scripts/fast-usdc/init-fast-usdc.js +242 -0
- package/scripts/inter-protocol/add-STARS.js +8 -7
- package/scripts/inter-protocol/add-collateral-core.js +12 -8
- package/scripts/inter-protocol/init-core.js +6 -5
- package/scripts/inter-protocol/invite-committee-core.js +5 -4
- package/scripts/inter-protocol/manual-price-feed.js +4 -0
- package/scripts/inter-protocol/price-feed-core.js +5 -5
- package/scripts/inter-protocol/replace-electorate-core.js +163 -0
- package/scripts/inter-protocol/replace-feeDistributor.js +28 -0
- package/scripts/inter-protocol/updatePriceFeeds.js +118 -0
- package/scripts/orchestration/init-basic-flows.js +27 -0
- package/scripts/orchestration/init-stakeAtom.js +24 -0
- package/scripts/orchestration/init-stakeBld.js +24 -0
- package/scripts/orchestration/init-stakeOsmo.js +24 -0
- package/scripts/orchestration/write-chain-info.js +14 -0
- package/scripts/pegasus/init-core.js +4 -3
- package/scripts/smart-wallet/build-game1-start.js +5 -4
- package/scripts/smart-wallet/build-wallet-factory2-upgrade.js +4 -3
- package/scripts/smart-wallet/build-walletFactory-upgrade.js +4 -3
- package/scripts/testing/add-LEMONS.js +24 -0
- package/scripts/testing/add-OLIVES.js +23 -0
- package/scripts/testing/append-chain-info.js +48 -0
- package/scripts/testing/fix-buggy-sendAnywhere.js +143 -0
- package/scripts/testing/replace-feeDistributor-short.js +27 -0
- package/scripts/testing/restart-basic-flows.js +101 -0
- package/scripts/testing/restart-send-anywhere.js +101 -0
- package/scripts/testing/restart-stakeAtom.js +91 -0
- package/scripts/testing/restart-valueVow.js +82 -0
- package/scripts/testing/start-auto-stake-it.js +128 -0
- package/scripts/testing/start-buggy-sendAnywhere.js +143 -0
- package/scripts/testing/start-query-flows.js +135 -0
- package/scripts/testing/start-send-anywhere.js +136 -0
- package/scripts/testing/start-valueVow.js +93 -0
- package/scripts/testing/tweak-chain-info.js +51 -0
- package/scripts/vats/add-auction.js +31 -0
- package/scripts/vats/init-core.js +4 -3
- package/scripts/vats/init-localchain.js +4 -3
- package/scripts/vats/init-network.js +4 -3
- package/scripts/vats/init-orchestration.js +21 -0
- package/scripts/vats/init-transfer.js +19 -0
- package/scripts/vats/priceFeedSupport.js +90 -0
- package/scripts/vats/probe-zcf-bundle.js +4 -3
- package/scripts/vats/replace-provisioning.js +4 -3
- package/scripts/vats/replace-zoe.js +4 -3
- package/scripts/vats/restart-vats.js +4 -3
- package/scripts/vats/revive-kread.js +14 -0
- package/scripts/vats/test-localchain.js +4 -3
- package/scripts/vats/test-vtransfer.js +19 -0
- package/scripts/vats/updateAtomPriceFeed.js +22 -0
- package/scripts/vats/updateStAtomPriceFeed.js +22 -0
- package/scripts/vats/updateStOsmoPriceFeed.js +22 -0
- package/scripts/vats/updateStTiaPriceFeed.js +22 -0
- package/scripts/vats/updateStkAtomPriceFeed.js +22 -0
- package/scripts/vats/upgrade-bank.js +19 -0
- package/scripts/vats/upgrade-orch-core.js +24 -0
- package/scripts/vats/upgrade-provisionPool.js +21 -0
- package/scripts/vats/upgrade-zcf.js +19 -0
- package/scripts/vats/upgrade-zoe.js +4 -3
- package/scripts/vats/upgradeScaledPriceAuthorities.js +23 -0
- package/scripts/vats/upgradeVaults.js +24 -0
- package/tsconfig.json +0 -2
- package/scripts/inter-protocol/deploy-contracts.js +0 -110
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file build core eval script to replace EC committee and charter
|
|
3
|
+
* Usage:
|
|
4
|
+
* To run this script, use the following command format in the CLI:
|
|
5
|
+
* agoric run replace-electorate-core.js [ENVIRONMENT]
|
|
6
|
+
* where [ENVIRONMENT] is one of the following:
|
|
7
|
+
* - MAINNET
|
|
8
|
+
* - DEVNET
|
|
9
|
+
* - EMERYNET
|
|
10
|
+
* - A3P_INTEGRATION
|
|
11
|
+
* - BOOTSTRAP_TEST
|
|
12
|
+
*
|
|
13
|
+
* Example:
|
|
14
|
+
* agoric run replace-electorate-core.js MAINNET
|
|
15
|
+
*/
|
|
16
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
17
|
+
import { getManifestForReplaceAllElectorates } from '@agoric/inter-protocol/src/proposals/replaceElectorate.js';
|
|
18
|
+
|
|
19
|
+
/** @typedef {Parameters<typeof import('@agoric/inter-protocol/src/proposals/replaceElectorate.js').replaceAllElectorates>[1]['options']} ReplaceElectorateOptions */
|
|
20
|
+
|
|
21
|
+
/** @type {Record<string, ReplaceElectorateOptions>} */
|
|
22
|
+
const configurations = {
|
|
23
|
+
MAINNET: {
|
|
24
|
+
committeeName: 'Economic Committee',
|
|
25
|
+
voterAddresses: {
|
|
26
|
+
'Chloe White': 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
|
|
27
|
+
'Chris Berg': 'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
|
|
28
|
+
'Joe Clark': 'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
|
|
29
|
+
},
|
|
30
|
+
highPrioritySendersConfig: {
|
|
31
|
+
addressesToAdd: [],
|
|
32
|
+
addressesToRemove: [
|
|
33
|
+
'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
|
|
34
|
+
'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
|
|
35
|
+
'agoric1el6zqs8ggctj5vwyukyk4fh50wcpdpwgugd5l5',
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
DEVNET: {
|
|
40
|
+
committeeName: 'Economic Committee',
|
|
41
|
+
voterAddresses: {
|
|
42
|
+
gov1: 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce',
|
|
43
|
+
gov2: 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang',
|
|
44
|
+
gov4: 'agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s',
|
|
45
|
+
},
|
|
46
|
+
highPrioritySendersConfig: {
|
|
47
|
+
addressesToAdd: ['agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s'],
|
|
48
|
+
addressesToRemove: ['agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
EMERYNET: {
|
|
52
|
+
committeeName: 'Economic Committee',
|
|
53
|
+
voterAddresses: {
|
|
54
|
+
gov1: 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce',
|
|
55
|
+
gov2: 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang',
|
|
56
|
+
gov4: 'agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s',
|
|
57
|
+
},
|
|
58
|
+
highPrioritySendersConfig: {
|
|
59
|
+
addressesToAdd: ['agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s'],
|
|
60
|
+
addressesToRemove: ['agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
A3P_INTEGRATION: {
|
|
64
|
+
committeeName: 'Economic Committee',
|
|
65
|
+
voterAddresses: {
|
|
66
|
+
gov1: 'agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q',
|
|
67
|
+
gov2: 'agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277',
|
|
68
|
+
gov4: 'agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy',
|
|
69
|
+
},
|
|
70
|
+
highPrioritySendersConfig: {
|
|
71
|
+
addressesToAdd: ['agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy'],
|
|
72
|
+
addressesToRemove: ['agoric1ydzxwh6f893jvpaslmaz6l8j2ulup9a7x8qvvq'],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
BOOTSTRAP_TEST: {
|
|
76
|
+
committeeName: 'Economic Committee',
|
|
77
|
+
voterAddresses: {
|
|
78
|
+
gov1: 'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
|
|
79
|
+
gov2: 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
|
|
80
|
+
gov3: 'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
|
|
81
|
+
},
|
|
82
|
+
highPrioritySendersConfig: {
|
|
83
|
+
addressesToAdd: [],
|
|
84
|
+
addressesToRemove: [
|
|
85
|
+
'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
|
|
86
|
+
'agoric1el6zqs8ggctj5vwyukyk4fh50wcpdpwgugd5l5',
|
|
87
|
+
'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const { keys } = Object;
|
|
94
|
+
const knownVariants = keys(configurations);
|
|
95
|
+
|
|
96
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
97
|
+
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
98
|
+
const config = opts.config || configurations[opts.variant];
|
|
99
|
+
if (!config) {
|
|
100
|
+
const error = `Unknown variant "${opts.variant}". Expected one of ${knownVariants.join(', ')}`;
|
|
101
|
+
console.error(error);
|
|
102
|
+
throw Error(error);
|
|
103
|
+
}
|
|
104
|
+
const { committeeName, voterAddresses, highPrioritySendersConfig } = config;
|
|
105
|
+
console.log(
|
|
106
|
+
'Generating replace committee proposal with config',
|
|
107
|
+
JSON.stringify({
|
|
108
|
+
committeeName,
|
|
109
|
+
voterAddresses,
|
|
110
|
+
highPrioritySendersConfig,
|
|
111
|
+
}),
|
|
112
|
+
);
|
|
113
|
+
return harden({
|
|
114
|
+
sourceSpec: '@agoric/inter-protocol/src/proposals/replaceElectorate.js',
|
|
115
|
+
getManifestCall: [
|
|
116
|
+
getManifestForReplaceAllElectorates.name,
|
|
117
|
+
{
|
|
118
|
+
committeeName,
|
|
119
|
+
voterAddresses,
|
|
120
|
+
highPrioritySendersConfig,
|
|
121
|
+
economicCommitteeRef: publishRef(
|
|
122
|
+
install(
|
|
123
|
+
'@agoric/governance/src/committee.js',
|
|
124
|
+
'../bundles/bundle-committee.js',
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const Usage = `agoric run replace-electorate-core.js ${[...knownVariants, '<json-config>'].join(' | ')}`;
|
|
133
|
+
|
|
134
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
135
|
+
export default async (homeP, endowments) => {
|
|
136
|
+
const { scriptArgs } = endowments;
|
|
137
|
+
const variantOrConfig = scriptArgs?.[0];
|
|
138
|
+
console.log('replace-electorate-core.js', variantOrConfig);
|
|
139
|
+
|
|
140
|
+
const opts = {};
|
|
141
|
+
|
|
142
|
+
if (typeof variantOrConfig === 'string') {
|
|
143
|
+
if (variantOrConfig[0] === '{') {
|
|
144
|
+
try {
|
|
145
|
+
opts.config = JSON.parse(variantOrConfig);
|
|
146
|
+
} catch (err) {
|
|
147
|
+
throw Error(`Failed to parse config argument ${variantOrConfig}`);
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
opts.variant = variantOrConfig;
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
console.error(Usage);
|
|
154
|
+
throw Error(Usage);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
158
|
+
|
|
159
|
+
await writeCoreEval(
|
|
160
|
+
`replace-committee-${opts.variant || 'from-config'}`,
|
|
161
|
+
utils => defaultProposalBuilder(utils, opts),
|
|
162
|
+
);
|
|
163
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { getManifestForReplaceFeeDistributor } from '@agoric/inter-protocol/src/proposals/replace-fee-distributor.js';
|
|
3
|
+
import { SECONDS_PER_HOUR } from '@agoric/inter-protocol/src/proposals/econ-behaviors.js';
|
|
4
|
+
|
|
5
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
6
|
+
export const defaultProposalBuilder = async (_, opts) => {
|
|
7
|
+
console.log('OPTS', opts);
|
|
8
|
+
return harden({
|
|
9
|
+
sourceSpec:
|
|
10
|
+
'@agoric/inter-protocol/src/proposals/replace-fee-distributor.js',
|
|
11
|
+
getManifestCall: [getManifestForReplaceFeeDistributor.name, { ...opts }],
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
16
|
+
export default async (homeP, endowments) => {
|
|
17
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
18
|
+
|
|
19
|
+
await writeCoreEval('replace-feeDistributor-testing', utils =>
|
|
20
|
+
defaultProposalBuilder(utils, {
|
|
21
|
+
collectionInterval: 1n * SECONDS_PER_HOUR,
|
|
22
|
+
keywordShares: {
|
|
23
|
+
RewardDistributor: 0n,
|
|
24
|
+
Reserve: 1n,
|
|
25
|
+
},
|
|
26
|
+
}),
|
|
27
|
+
);
|
|
28
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { getManifestForPriceFeeds } from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js';
|
|
3
|
+
|
|
4
|
+
/** @import {PriceFeedConfig} from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js'; */
|
|
5
|
+
|
|
6
|
+
/** @type {Record<string, PriceFeedConfig>} */
|
|
7
|
+
const configurations = {
|
|
8
|
+
A3P_INTEGRATION: {
|
|
9
|
+
oracleAddresses: [
|
|
10
|
+
'agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q', // GOV1
|
|
11
|
+
'agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277', // GOV2
|
|
12
|
+
'agoric1ydzxwh6f893jvpaslmaz6l8j2ulup9a7x8qvvq', // GOV3
|
|
13
|
+
],
|
|
14
|
+
inBrandNames: ['ATOM', 'stATOM'],
|
|
15
|
+
},
|
|
16
|
+
MAINNET: {
|
|
17
|
+
oracleAddresses: [
|
|
18
|
+
'agoric144rrhh4m09mh7aaffhm6xy223ym76gve2x7y78', // DSRV
|
|
19
|
+
'agoric19d6gnr9fyp6hev4tlrg87zjrzsd5gzr5qlfq2p', // Stakin
|
|
20
|
+
'agoric19uscwxdac6cf6z7d5e26e0jm0lgwstc47cpll8', // 01node
|
|
21
|
+
'agoric1krunjcqfrf7la48zrvdfeeqtls5r00ep68mzkr', // Simply Staking
|
|
22
|
+
'agoric1n4fcxsnkxe4gj6e24naec99hzmc4pjfdccy5nj', // P2P
|
|
23
|
+
],
|
|
24
|
+
inBrandNames: ['ATOM', 'stATOM', 'stOSMO', 'stTIA', 'stkATOM'],
|
|
25
|
+
contractTerms: { minSubmissionCount: 3 },
|
|
26
|
+
},
|
|
27
|
+
DEVNET: {
|
|
28
|
+
oracleAddresses: [
|
|
29
|
+
'agoric1lw4e4aas9q84tq0q92j85rwjjjapf8dmnllnft', // DSRV
|
|
30
|
+
'agoric1zj6vrrrjq4gsyr9lw7dplv4vyejg3p8j2urm82', // Stakin
|
|
31
|
+
'agoric1ra0g6crtsy6r3qnpu7ruvm7qd4wjnznyzg5nu4', // 01node
|
|
32
|
+
'agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf', // Simply Staking
|
|
33
|
+
'agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk', // P2P
|
|
34
|
+
],
|
|
35
|
+
inBrandNames: ['ATOM', 'stTIA', 'stkATOM'],
|
|
36
|
+
},
|
|
37
|
+
EMERYNET: {
|
|
38
|
+
oracleAddresses: [
|
|
39
|
+
'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce', // GOV1
|
|
40
|
+
'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang', // GOV2
|
|
41
|
+
],
|
|
42
|
+
inBrandNames: ['ATOM', 'stATOM', 'stOSMO', 'stTIA', 'stkATOM'],
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const { keys } = Object;
|
|
47
|
+
const knownVariants = keys(configurations);
|
|
48
|
+
|
|
49
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
50
|
+
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
51
|
+
const config = opts.config || configurations[opts.variant];
|
|
52
|
+
if (!config) {
|
|
53
|
+
const error = `Unknown variant "${opts.variant}". Expected one of ${knownVariants.join(', ')}`;
|
|
54
|
+
console.error(error);
|
|
55
|
+
throw Error(error);
|
|
56
|
+
}
|
|
57
|
+
const { oracleAddresses, inBrandNames, contractTerms } = config;
|
|
58
|
+
console.log(
|
|
59
|
+
'Generating price feeds update proposal with config',
|
|
60
|
+
JSON.stringify({ oracleAddresses, inBrandNames, contractTerms }),
|
|
61
|
+
);
|
|
62
|
+
return harden({
|
|
63
|
+
sourceSpec: '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js',
|
|
64
|
+
getManifestCall: [
|
|
65
|
+
getManifestForPriceFeeds.name,
|
|
66
|
+
{
|
|
67
|
+
oracleAddresses,
|
|
68
|
+
inBrandNames,
|
|
69
|
+
contractTerms,
|
|
70
|
+
priceAggregatorRef: publishRef(
|
|
71
|
+
install(
|
|
72
|
+
'@agoric/inter-protocol/src/price/fluxAggregatorContract.js',
|
|
73
|
+
'../bundles/bundle-fluxAggregatorKit.js',
|
|
74
|
+
),
|
|
75
|
+
),
|
|
76
|
+
scaledPARef: publishRef(
|
|
77
|
+
install(
|
|
78
|
+
'@agoric/zoe/src/contracts/scaledPriceAuthority.js',
|
|
79
|
+
'../bundles/bundle-scaledPriceAuthority.js',
|
|
80
|
+
),
|
|
81
|
+
),
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const Usage = `agoric run updatePriceFeeds.js ${[...knownVariants, '<json-config>'].join(' | ')}`;
|
|
88
|
+
|
|
89
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
90
|
+
export default async (homeP, endowments) => {
|
|
91
|
+
const { scriptArgs } = endowments;
|
|
92
|
+
const variantOrConfig = scriptArgs?.[0];
|
|
93
|
+
console.log('updatePriceFeeds.js', variantOrConfig);
|
|
94
|
+
|
|
95
|
+
const opts = {};
|
|
96
|
+
|
|
97
|
+
if (typeof variantOrConfig === 'string') {
|
|
98
|
+
if (variantOrConfig[0] === '{') {
|
|
99
|
+
try {
|
|
100
|
+
opts.config = JSON.parse(variantOrConfig);
|
|
101
|
+
} catch (err) {
|
|
102
|
+
throw Error(`Failed to parse config argument ${variantOrConfig}`);
|
|
103
|
+
}
|
|
104
|
+
} else {
|
|
105
|
+
opts.variant = variantOrConfig;
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
console.error(Usage);
|
|
109
|
+
throw Error(Usage);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
113
|
+
|
|
114
|
+
await writeCoreEval(
|
|
115
|
+
`gov-price-feeds-${opts.variant || 'from-config'}`,
|
|
116
|
+
utils => defaultProposalBuilder(utils, opts),
|
|
117
|
+
);
|
|
118
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { startBasicFlows } from '@agoric/orchestration/src/proposals/start-basic-flows.js';
|
|
3
|
+
|
|
4
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
5
|
+
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
6
|
+
return harden({
|
|
7
|
+
sourceSpec: '@agoric/orchestration/src/proposals/start-basic-flows.js',
|
|
8
|
+
getManifestCall: [
|
|
9
|
+
'getManifestForContract',
|
|
10
|
+
{
|
|
11
|
+
installKeys: {
|
|
12
|
+
basicFlows: publishRef(
|
|
13
|
+
install(
|
|
14
|
+
'@agoric/orchestration/src/examples/basic-flows.contract.js',
|
|
15
|
+
),
|
|
16
|
+
),
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
24
|
+
export default async (homeP, endowments) => {
|
|
25
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
26
|
+
await writeCoreEval(startBasicFlows.name, defaultProposalBuilder);
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
|
|
3
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
4
|
+
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
5
|
+
return harden({
|
|
6
|
+
sourceSpec: '@agoric/orchestration/src/proposals/start-stakeAtom.js',
|
|
7
|
+
getManifestCall: [
|
|
8
|
+
'getManifestForStakeAtom',
|
|
9
|
+
{
|
|
10
|
+
installKeys: {
|
|
11
|
+
stakeIca: publishRef(
|
|
12
|
+
install('@agoric/orchestration/src/examples/stake-ica.contract.js'),
|
|
13
|
+
),
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
21
|
+
export default async (homeP, endowments) => {
|
|
22
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
23
|
+
await writeCoreEval('start-stakeAtom', defaultProposalBuilder);
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
3
|
+
|
|
4
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
5
|
+
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
6
|
+
harden({
|
|
7
|
+
sourceSpec: '@agoric/orchestration/src/proposals/start-stakeBld.js',
|
|
8
|
+
getManifestCall: [
|
|
9
|
+
'getManifestForStakeBld',
|
|
10
|
+
{
|
|
11
|
+
installKeys: {
|
|
12
|
+
stakeBld: publishRef(
|
|
13
|
+
install('@agoric/orchestration/src/examples/stake-bld.contract.js'),
|
|
14
|
+
),
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
21
|
+
export default async (homeP, endowments) => {
|
|
22
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
23
|
+
await writeCoreEval('start-stakeBld', defaultProposalBuilder);
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
|
|
3
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
4
|
+
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
5
|
+
return harden({
|
|
6
|
+
sourceSpec: '@agoric/orchestration/src/proposals/start-stakeOsmo.js',
|
|
7
|
+
getManifestCall: [
|
|
8
|
+
'getManifestForStakeOsmo',
|
|
9
|
+
{
|
|
10
|
+
installKeys: {
|
|
11
|
+
stakeIca: publishRef(
|
|
12
|
+
install('@agoric/orchestration/src/examples/stake-ica.contract.js'),
|
|
13
|
+
),
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
21
|
+
export default async (homeP, endowments) => {
|
|
22
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
23
|
+
await writeCoreEval('start-stakeOsmo', defaultProposalBuilder);
|
|
24
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
|
|
3
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
4
|
+
export const defaultProposalBuilder = async () =>
|
|
5
|
+
harden({
|
|
6
|
+
sourceSpec: '@agoric/orchestration/src/proposals/init-chain-info.js',
|
|
7
|
+
getManifestCall: ['getManifestForChainInfo'],
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
11
|
+
export default async (homeP, endowments) => {
|
|
12
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
13
|
+
await writeCoreEval('gov-orchestration', defaultProposalBuilder);
|
|
14
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
2
|
|
|
3
|
-
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').
|
|
3
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
4
4
|
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
5
5
|
harden({
|
|
6
6
|
sourceSpec: '@agoric/pegasus/src/proposals/core-proposal.js',
|
|
@@ -17,7 +17,8 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
17
17
|
],
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
20
21
|
export default async (homeP, endowments) => {
|
|
21
|
-
const {
|
|
22
|
-
await
|
|
22
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
23
|
+
await writeCoreEval('gov-pegasus', defaultProposalBuilder);
|
|
23
24
|
};
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
9
9
|
import { getManifestForGame1 } from '@agoric/smart-wallet/test/start-game1-proposal.js';
|
|
10
10
|
|
|
11
|
-
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').
|
|
12
|
-
|
|
11
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
12
|
+
const game1ProposalBuilder = async ({ publishRef, install }) => {
|
|
13
13
|
return harden({
|
|
14
14
|
sourceSpec: '@agoric/smart-wallet/test/start-game1-proposal.js',
|
|
15
15
|
getManifestCall: [
|
|
@@ -27,7 +27,8 @@ export const game1ProposalBuilder = async ({ publishRef, install }) => {
|
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
30
31
|
export default async (homeP, endowments) => {
|
|
31
|
-
const {
|
|
32
|
-
await
|
|
32
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
33
|
+
await writeCoreEval('start-game1', game1ProposalBuilder);
|
|
33
34
|
};
|
|
@@ -7,7 +7,7 @@ import { makeHelpers } from '@agoric/deploy-script-support';
|
|
|
7
7
|
* also prints helpful instructions for copying the files and installing them.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').
|
|
10
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
11
11
|
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
12
12
|
harden({
|
|
13
13
|
sourceSpec:
|
|
@@ -22,7 +22,8 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
22
22
|
],
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
25
26
|
export default async (homeP, endowments) => {
|
|
26
|
-
const {
|
|
27
|
-
await
|
|
27
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
28
|
+
await writeCoreEval('upgrade-wallet-factory', defaultProposalBuilder);
|
|
28
29
|
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
9
9
|
import { getManifestForUpgrade } from '@agoric/smart-wallet/src/proposals/upgrade-walletFactory-proposal.js';
|
|
10
10
|
|
|
11
|
-
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').
|
|
11
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
12
12
|
export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
13
13
|
return harden({
|
|
14
14
|
sourceSpec:
|
|
@@ -28,7 +28,8 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
31
32
|
export default async (homeP, endowments) => {
|
|
32
|
-
const {
|
|
33
|
-
await
|
|
33
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
34
|
+
await writeCoreEval('upgrade-walletFactory', defaultProposalBuilder);
|
|
34
35
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { defaultProposalBuilder as vaultProposalBuilder } from '../inter-protocol/add-collateral-core.js';
|
|
3
|
+
|
|
4
|
+
/** @file This is for use in tests in a3p-integration */
|
|
5
|
+
|
|
6
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
7
|
+
const starsVaultProposalBuilder = async powers => {
|
|
8
|
+
return vaultProposalBuilder(powers, {
|
|
9
|
+
interchainAssetOptions: {
|
|
10
|
+
denom: 'ibc/000C0FFEECAFE000',
|
|
11
|
+
decimalPlaces: 6,
|
|
12
|
+
keyword: 'LEMONS',
|
|
13
|
+
|
|
14
|
+
oracleBrand: 'LEMONS',
|
|
15
|
+
proposedName: 'LEMONS',
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
21
|
+
export default async (homeP, endowments) => {
|
|
22
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
23
|
+
await writeCoreEval('add-STARS-collateral', starsVaultProposalBuilder);
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { defaultProposalBuilder as vaultProposalBuilder } from '../inter-protocol/add-collateral-core.js';
|
|
3
|
+
|
|
4
|
+
/** @file This is for use in tests in a3p-integration */
|
|
5
|
+
|
|
6
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
7
|
+
const stars2VaultProposalBuilder = async powers => {
|
|
8
|
+
return vaultProposalBuilder(powers, {
|
|
9
|
+
interchainAssetOptions: {
|
|
10
|
+
denom: 'ibc/111C0FFEECAFE111',
|
|
11
|
+
decimalPlaces: 6,
|
|
12
|
+
keyword: 'OLIVES',
|
|
13
|
+
oracleBrand: 'OLIVES',
|
|
14
|
+
proposedName: 'OLIVES',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
20
|
+
export default async (homeP, endowments) => {
|
|
21
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
|
+
await writeCoreEval('add-STARS2-collateral', stars2VaultProposalBuilder);
|
|
23
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="ses" />
|
|
2
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
3
|
+
|
|
4
|
+
/** @type {Record<string, import('@agoric/orchestration/src/chain-info.js').ChainInfo>} */
|
|
5
|
+
const chainInfo = {
|
|
6
|
+
hot: {
|
|
7
|
+
allegedName: 'Hot New Chain',
|
|
8
|
+
chainId: 'hot-1',
|
|
9
|
+
connections: {
|
|
10
|
+
'cosmoshub-4': {
|
|
11
|
+
id: 'connection-99',
|
|
12
|
+
client_id: '07-tendermint-3',
|
|
13
|
+
counterparty: {
|
|
14
|
+
client_id: '07-tendermint-2',
|
|
15
|
+
connection_id: 'connection-1',
|
|
16
|
+
},
|
|
17
|
+
state: 3 /* IBCConnectionState.STATE_OPEN */,
|
|
18
|
+
transferChannel: {
|
|
19
|
+
portId: 'transfer',
|
|
20
|
+
channelId: 'channel-1',
|
|
21
|
+
counterPartyChannelId: 'channel-1',
|
|
22
|
+
counterPartyPortId: 'transfer',
|
|
23
|
+
ordering: 1 /* Order.ORDER_UNORDERED */,
|
|
24
|
+
state: 3 /* IBCConnectionState.STATE_OPEN */,
|
|
25
|
+
version: 'ics20-1',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
33
|
+
export const defaultProposalBuilder = async () =>
|
|
34
|
+
harden({
|
|
35
|
+
sourceSpec: '@agoric/orchestration/src/proposals/revise-chain-info.js',
|
|
36
|
+
getManifestCall: [
|
|
37
|
+
'getManifestForReviseChains',
|
|
38
|
+
{
|
|
39
|
+
chainInfo,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
45
|
+
export default async (homeP, endowments) => {
|
|
46
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
47
|
+
await writeCoreEval('revise-chain-info', defaultProposalBuilder);
|
|
48
|
+
};
|