@agoric/builders 0.1.1-upgrade-17-dev-e67cd91.0 → 0.1.1-upgrade-18-dev-d7c994b.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/package.json +28 -28
- package/scripts/inter-protocol/add-STARS.js +1 -0
- package/scripts/inter-protocol/add-collateral-core.js +7 -3
- package/scripts/inter-protocol/init-core.js +2 -1
- package/scripts/inter-protocol/invite-committee-core.js +2 -1
- package/scripts/inter-protocol/price-feed-core.js +1 -1
- package/scripts/inter-protocol/replace-electorate-core.js +115 -0
- package/scripts/inter-protocol/updatePriceFeeds.js +82 -0
- package/scripts/orchestration/init-basic-flows.js +1 -0
- package/scripts/orchestration/init-stakeAtom.js +2 -1
- package/scripts/orchestration/init-stakeBld.js +2 -1
- package/scripts/orchestration/init-stakeOsmo.js +2 -1
- package/scripts/orchestration/write-chain-info.js +14 -0
- package/scripts/pegasus/init-core.js +1 -0
- package/scripts/smart-wallet/build-game1-start.js +1 -0
- package/scripts/smart-wallet/build-wallet-factory2-upgrade.js +1 -0
- package/scripts/smart-wallet/build-walletFactory-upgrade.js +1 -0
- package/scripts/testing/add-LEMONS.js +1 -0
- package/scripts/testing/add-OLIVES.js +1 -0
- package/scripts/testing/append-chain-info.js +1 -3
- package/scripts/testing/fix-buggy-sendAnywhere.js +143 -0
- package/scripts/testing/restart-basic-flows.js +1 -0
- package/scripts/testing/restart-send-anywhere.js +1 -0
- package/scripts/testing/restart-stakeAtom.js +2 -1
- package/scripts/testing/restart-valueVow.js +1 -0
- package/scripts/testing/start-auto-stake-it.js +1 -0
- package/scripts/testing/start-buggy-sendAnywhere.js +143 -0
- package/scripts/testing/start-query-flows.js +1 -0
- package/scripts/testing/start-send-anywhere.js +1 -0
- package/scripts/testing/start-valueVow.js +1 -0
- package/scripts/testing/tweak-chain-info.js +1 -3
- package/scripts/vats/add-auction.js +8 -1
- package/scripts/vats/init-core.js +1 -0
- package/scripts/vats/init-localchain.js +1 -0
- package/scripts/vats/init-network.js +1 -0
- package/scripts/vats/init-orchestration.js +1 -0
- package/scripts/vats/init-transfer.js +1 -0
- package/scripts/vats/probe-zcf-bundle.js +1 -0
- package/scripts/vats/replace-provisioning.js +1 -0
- package/scripts/vats/replace-zoe.js +1 -0
- package/scripts/vats/restart-vats.js +1 -0
- package/scripts/vats/revive-kread.js +1 -0
- package/scripts/vats/test-localchain.js +1 -0
- package/scripts/vats/test-vtransfer.js +1 -0
- package/scripts/vats/updateAtomPriceFeed.js +1 -0
- package/scripts/vats/updateStAtomPriceFeed.js +1 -0
- package/scripts/vats/updateStOsmoPriceFeed.js +1 -0
- package/scripts/vats/updateStTiaPriceFeed.js +1 -0
- package/scripts/vats/updateStkAtomPriceFeed.js +1 -0
- package/scripts/vats/upgrade-bank.js +1 -0
- package/scripts/vats/upgrade-orch-core.js +1 -0
- package/scripts/vats/upgrade-provisionPool.js +1 -0
- package/scripts/vats/upgrade-zcf.js +1 -0
- package/scripts/vats/upgrade-zoe.js +1 -0
- package/scripts/vats/upgradeScaledPriceAuthorities.js +1 -0
- package/scripts/vats/upgradeVaults.js +2 -1
- package/scripts/inter-protocol/deploy-contracts.js +0 -111
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/builders",
|
|
3
|
-
"version": "0.1.1-upgrade-
|
|
3
|
+
"version": "0.1.1-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
4
4
|
"description": "Build scripts for proposals to an Agoric chain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:restart-vats-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/vats/restart-vats.js",
|
|
12
12
|
"build:zcf-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/vats/replace-zoe.js",
|
|
13
13
|
"prepack": "tsc --build tsconfig.build.json",
|
|
14
|
-
"postpack": "git clean -f '*.d.ts*'",
|
|
14
|
+
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
|
|
15
15
|
"test": "ava",
|
|
16
16
|
"test:xs": "exit 0",
|
|
17
17
|
"lint-fix": "yarn lint:eslint --fix",
|
|
@@ -23,33 +23,33 @@
|
|
|
23
23
|
"author": "Agoric",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@agoric/ertp": "0.16.3-upgrade-
|
|
27
|
-
"@agoric/internal": "0.3.3-upgrade-
|
|
28
|
-
"@agoric/notifier": "0.6.3-upgrade-
|
|
29
|
-
"@agoric/smart-wallet": "0.5.4-upgrade-
|
|
30
|
-
"@agoric/vat-data": "0.5.3-upgrade-
|
|
31
|
-
"@agoric/vats": "0.15.2-upgrade-
|
|
32
|
-
"@agoric/zoe": "0.26.3-upgrade-
|
|
33
|
-
"@endo/bundle-source": "^3.4.
|
|
34
|
-
"@endo/captp": "^4.
|
|
35
|
-
"@endo/eventual-send": "^1.2.
|
|
36
|
-
"@endo/far": "^1.1.
|
|
37
|
-
"@endo/init": "^1.1.
|
|
38
|
-
"@endo/marshal": "^1.
|
|
39
|
-
"@endo/promise-kit": "^1.1.
|
|
40
|
-
"@endo/stream": "^1.2.
|
|
26
|
+
"@agoric/ertp": "0.16.3-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
27
|
+
"@agoric/internal": "0.3.3-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
28
|
+
"@agoric/notifier": "0.6.3-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
29
|
+
"@agoric/smart-wallet": "0.5.4-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
30
|
+
"@agoric/vat-data": "0.5.3-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
31
|
+
"@agoric/vats": "0.15.2-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
32
|
+
"@agoric/zoe": "0.26.3-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
33
|
+
"@endo/bundle-source": "^3.4.2",
|
|
34
|
+
"@endo/captp": "^4.4.2",
|
|
35
|
+
"@endo/eventual-send": "^1.2.7",
|
|
36
|
+
"@endo/far": "^1.1.8",
|
|
37
|
+
"@endo/init": "^1.1.6",
|
|
38
|
+
"@endo/marshal": "^1.6.1",
|
|
39
|
+
"@endo/promise-kit": "^1.1.7",
|
|
40
|
+
"@endo/stream": "^1.2.7",
|
|
41
41
|
"import-meta-resolve": "^2.2.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@agoric/deploy-script-support": "0.10.4-upgrade-
|
|
45
|
-
"@agoric/governance": "0.10.4-upgrade-
|
|
46
|
-
"@agoric/inter-protocol": "0.16.2-upgrade-
|
|
47
|
-
"@agoric/orchestration": "0.1.1-upgrade-
|
|
48
|
-
"@agoric/store": "0.9.3-upgrade-
|
|
49
|
-
"@agoric/swing-store": "0.9.2-upgrade-
|
|
50
|
-
"@agoric/swingset-liveslots": "0.10.3-upgrade-
|
|
51
|
-
"@agoric/time": "0.3.3-upgrade-
|
|
52
|
-
"@endo/errors": "^1.2.
|
|
44
|
+
"@agoric/deploy-script-support": "0.10.4-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
45
|
+
"@agoric/governance": "0.10.4-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
46
|
+
"@agoric/inter-protocol": "0.16.2-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
47
|
+
"@agoric/orchestration": "0.1.1-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
48
|
+
"@agoric/store": "0.9.3-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
49
|
+
"@agoric/swing-store": "0.9.2-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
50
|
+
"@agoric/swingset-liveslots": "0.10.3-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
51
|
+
"@agoric/time": "0.3.3-upgrade-18-dev-d7c994b.0+d7c994b",
|
|
52
|
+
"@endo/errors": "^1.2.7",
|
|
53
53
|
"ava": "^5.3.0",
|
|
54
54
|
"c8": "^9.1.0"
|
|
55
55
|
},
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"workerThreads": false
|
|
80
80
|
},
|
|
81
81
|
"typeCoverage": {
|
|
82
|
-
"atLeast":
|
|
82
|
+
"atLeast": 82.43
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "d7c994b8d33c0cd22b257f3e33b579588ab6c6d8"
|
|
85
85
|
}
|
|
@@ -36,6 +36,7 @@ const starsOraclesProposalBuilder = async powers => {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
39
40
|
export default async (homeP, endowments) => {
|
|
40
41
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
41
42
|
await writeCoreEval('add-STARS', starsVaultProposalBuilder);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-env node */
|
|
2
2
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
3
3
|
|
|
4
4
|
import { getManifestForAddAssetToVault } from '@agoric/inter-protocol/src/proposals/addAssetToVault.js';
|
|
@@ -103,6 +103,7 @@ export const psmProposalBuilder = async (
|
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
106
107
|
export default async (homeP, endowments) => {
|
|
107
108
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
108
109
|
|
|
@@ -112,7 +113,10 @@ export default async (homeP, endowments) => {
|
|
|
112
113
|
|
|
113
114
|
await writeCoreEval('gov-add-collateral', defaultProposalBuilder);
|
|
114
115
|
await writeCoreEval('gov-start-psm', opts =>
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
psmProposalBuilder({
|
|
117
|
+
...opts,
|
|
118
|
+
// @ts-expect-error XXX makeInstallCache types
|
|
119
|
+
wrapInstall: tool.wrapInstall,
|
|
120
|
+
}),
|
|
117
121
|
);
|
|
118
122
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-env node */
|
|
2
2
|
/**
|
|
3
3
|
* @file can be run with `agoric deploy` after a chain is running (depends on
|
|
4
4
|
* chain state) Only works with "local" chain and not sim-chain b/c it needs
|
|
@@ -184,6 +184,7 @@ export const defaultProposalBuilder = async (
|
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
187
188
|
export default async (homeP, endowments) => {
|
|
188
189
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
189
190
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-env node */
|
|
2
2
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
3
3
|
|
|
4
4
|
import { getManifestForInviteCommittee } from '@agoric/inter-protocol/src/proposals/committee-proposal.js';
|
|
@@ -36,6 +36,7 @@ export const defaultProposalBuilder = async (
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
39
40
|
export default async (homeP, endowments) => {
|
|
40
41
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
41
42
|
await writeCoreEval('gov-invite-committee', defaultProposalBuilder);
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
* - A3P_INTEGRATION
|
|
10
|
+
* - BOOTSTRAP_TEST
|
|
11
|
+
*
|
|
12
|
+
* Example:
|
|
13
|
+
* agoric run replace-electorate-core.js MAINNET
|
|
14
|
+
*/
|
|
15
|
+
/* global process */
|
|
16
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
17
|
+
import { getManifestForReplaceAllElectorates } from '@agoric/inter-protocol/src/proposals/replaceElectorate.js';
|
|
18
|
+
|
|
19
|
+
const configurations = {
|
|
20
|
+
MAINNET: {
|
|
21
|
+
committeeName: 'Economic Committee',
|
|
22
|
+
voterAddresses: {
|
|
23
|
+
'Chloe White': 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
|
|
24
|
+
'Chris Berg': 'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
|
|
25
|
+
'Joe Clark': 'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
|
|
26
|
+
},
|
|
27
|
+
highPrioritySendersConfig: {
|
|
28
|
+
addressesToAdd: [],
|
|
29
|
+
addressesToRemove: [
|
|
30
|
+
'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
|
|
31
|
+
'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
|
|
32
|
+
'agoric1el6zqs8ggctj5vwyukyk4fh50wcpdpwgugd5l5',
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
DEVNET: {
|
|
37
|
+
committeeName: 'Economic Committee',
|
|
38
|
+
voterAddresses: {
|
|
39
|
+
gov1: 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce',
|
|
40
|
+
gov2: 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang',
|
|
41
|
+
gov4: 'agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s',
|
|
42
|
+
},
|
|
43
|
+
highPrioritySendersConfig: {
|
|
44
|
+
addressesToAdd: ['agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s'],
|
|
45
|
+
addressesToRemove: ['agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
A3P_INTEGRATION: {
|
|
49
|
+
committeeName: 'Economic Committee',
|
|
50
|
+
voterAddresses: {
|
|
51
|
+
gov1: 'agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q',
|
|
52
|
+
gov2: 'agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277',
|
|
53
|
+
gov4: 'agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy',
|
|
54
|
+
},
|
|
55
|
+
highPrioritySendersConfig: {
|
|
56
|
+
addressesToAdd: ['agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy'],
|
|
57
|
+
addressesToRemove: ['agoric1ydzxwh6f893jvpaslmaz6l8j2ulup9a7x8qvvq'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
BOOTSTRAP_TEST: {
|
|
61
|
+
committeeName: 'Economic Committee',
|
|
62
|
+
voterAddresses: {
|
|
63
|
+
gov1: 'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
|
|
64
|
+
gov2: 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
|
|
65
|
+
gov3: 'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
|
|
66
|
+
},
|
|
67
|
+
highPrioritySendersConfig: {
|
|
68
|
+
addressesToAdd: [],
|
|
69
|
+
addressesToRemove: [
|
|
70
|
+
'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
|
|
71
|
+
'agoric1el6zqs8ggctj5vwyukyk4fh50wcpdpwgugd5l5',
|
|
72
|
+
'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const { keys } = Object;
|
|
79
|
+
const Usage = `agoric run replace-electorate-core.js ${keys(configurations).join(' | ')}`;
|
|
80
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
81
|
+
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
82
|
+
const config = configurations[opts.variant];
|
|
83
|
+
if (!config) {
|
|
84
|
+
console.error(Usage);
|
|
85
|
+
process.exit(1);
|
|
86
|
+
}
|
|
87
|
+
return harden({
|
|
88
|
+
sourceSpec: '@agoric/inter-protocol/src/proposals/replaceElectorate.js',
|
|
89
|
+
getManifestCall: [
|
|
90
|
+
getManifestForReplaceAllElectorates.name,
|
|
91
|
+
{
|
|
92
|
+
...config,
|
|
93
|
+
economicCommitteeRef: publishRef(
|
|
94
|
+
install(
|
|
95
|
+
'@agoric/governance/src/committee.js',
|
|
96
|
+
'../bundles/bundle-committee.js',
|
|
97
|
+
),
|
|
98
|
+
),
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
105
|
+
export default async (homeP, endowments) => {
|
|
106
|
+
const { scriptArgs } = endowments;
|
|
107
|
+
const variant = scriptArgs?.[0];
|
|
108
|
+
console.log('replace-committee', scriptArgs, variant);
|
|
109
|
+
|
|
110
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
111
|
+
|
|
112
|
+
await writeCoreEval(`replace-committee-${variant}`, (utils, opts) =>
|
|
113
|
+
defaultProposalBuilder(utils, { ...opts, variant }),
|
|
114
|
+
);
|
|
115
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
main: {
|
|
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
|
+
};
|
|
38
|
+
|
|
39
|
+
const { keys } = Object;
|
|
40
|
+
const Usage = `agoric run updatePriceFeed.js ${keys(configurations).join(' | ')}`;
|
|
41
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
42
|
+
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
43
|
+
const config = configurations[opts.variant];
|
|
44
|
+
if (!config) {
|
|
45
|
+
console.error(Usage);
|
|
46
|
+
throw Error(Usage);
|
|
47
|
+
}
|
|
48
|
+
return harden({
|
|
49
|
+
sourceSpec: '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js',
|
|
50
|
+
getManifestCall: [
|
|
51
|
+
getManifestForPriceFeeds.name,
|
|
52
|
+
{
|
|
53
|
+
...config,
|
|
54
|
+
priceAggregatorRef: publishRef(
|
|
55
|
+
install(
|
|
56
|
+
'@agoric/inter-protocol/src/price/fluxAggregatorContract.js',
|
|
57
|
+
'../bundles/bundle-fluxAggregatorKit.js',
|
|
58
|
+
),
|
|
59
|
+
),
|
|
60
|
+
scaledPARef: publishRef(
|
|
61
|
+
install(
|
|
62
|
+
'@agoric/zoe/src/contracts/scaledPriceAuthority.js',
|
|
63
|
+
'../bundles/bundle-scaledPriceAuthority.js',
|
|
64
|
+
),
|
|
65
|
+
),
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
72
|
+
export default async (homeP, endowments) => {
|
|
73
|
+
const { scriptArgs } = endowments;
|
|
74
|
+
const variant = scriptArgs?.[0];
|
|
75
|
+
console.log('updatePriceFeeds', scriptArgs, variant);
|
|
76
|
+
|
|
77
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
78
|
+
|
|
79
|
+
await writeCoreEval(`gov-price-feeds-${variant}`, (utils, opts) =>
|
|
80
|
+
defaultProposalBuilder(utils, { ...opts, variant }),
|
|
81
|
+
);
|
|
82
|
+
};
|
|
@@ -20,6 +20,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
23
24
|
export default async (homeP, endowments) => {
|
|
24
25
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
25
26
|
await writeCoreEval(startBasicFlows.name, defaultProposalBuilder);
|
|
@@ -9,7 +9,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
9
9
|
{
|
|
10
10
|
installKeys: {
|
|
11
11
|
stakeIca: publishRef(
|
|
12
|
-
install('@agoric/orchestration/src/examples/
|
|
12
|
+
install('@agoric/orchestration/src/examples/stake-ica.contract.js'),
|
|
13
13
|
),
|
|
14
14
|
},
|
|
15
15
|
},
|
|
@@ -17,6 +17,7 @@ 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
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('start-stakeAtom', defaultProposalBuilder);
|
|
@@ -10,13 +10,14 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
10
10
|
{
|
|
11
11
|
installKeys: {
|
|
12
12
|
stakeBld: publishRef(
|
|
13
|
-
install('@agoric/orchestration/src/examples/
|
|
13
|
+
install('@agoric/orchestration/src/examples/stake-bld.contract.js'),
|
|
14
14
|
),
|
|
15
15
|
},
|
|
16
16
|
},
|
|
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
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('start-stakeBld', defaultProposalBuilder);
|
|
@@ -9,7 +9,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
9
9
|
{
|
|
10
10
|
installKeys: {
|
|
11
11
|
stakeIca: publishRef(
|
|
12
|
-
install('@agoric/orchestration/src/examples/
|
|
12
|
+
install('@agoric/orchestration/src/examples/stake-ica.contract.js'),
|
|
13
13
|
),
|
|
14
14
|
},
|
|
15
15
|
},
|
|
@@ -17,6 +17,7 @@ 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
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('start-stakeOsmo', defaultProposalBuilder);
|
|
@@ -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
|
+
};
|
|
@@ -17,6 +17,7 @@ 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
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('gov-pegasus', defaultProposalBuilder);
|
|
@@ -27,6 +27,7 @@ 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
32
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
32
33
|
await writeCoreEval('start-game1', game1ProposalBuilder);
|
|
@@ -22,6 +22,7 @@ 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
27
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
27
28
|
await writeCoreEval('upgrade-wallet-factory', defaultProposalBuilder);
|
|
@@ -28,6 +28,7 @@ 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
33
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
33
34
|
await writeCoreEval('upgrade-walletFactory', defaultProposalBuilder);
|
|
@@ -17,6 +17,7 @@ const starsVaultProposalBuilder = async powers => {
|
|
|
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
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('add-STARS-collateral', starsVaultProposalBuilder);
|
|
@@ -16,6 +16,7 @@ const stars2VaultProposalBuilder = async powers => {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
19
20
|
export default async (homeP, endowments) => {
|
|
20
21
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
21
22
|
await writeCoreEval('add-STARS2-collateral', stars2VaultProposalBuilder);
|
|
@@ -13,9 +13,6 @@ const chainInfo = {
|
|
|
13
13
|
counterparty: {
|
|
14
14
|
client_id: '07-tendermint-2',
|
|
15
15
|
connection_id: 'connection-1',
|
|
16
|
-
prefix: {
|
|
17
|
-
key_prefix: '',
|
|
18
|
-
},
|
|
19
16
|
},
|
|
20
17
|
state: 3 /* IBCConnectionState.STATE_OPEN */,
|
|
21
18
|
transferChannel: {
|
|
@@ -44,6 +41,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
44
41
|
],
|
|
45
42
|
});
|
|
46
43
|
|
|
44
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
47
45
|
export default async (homeP, endowments) => {
|
|
48
46
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
49
47
|
await writeCoreEval('revise-chain-info', defaultProposalBuilder);
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file This is for use in tests in a3p-integration
|
|
3
|
+
* Unlike most builder scripts, this one includes the proposal exports as well.
|
|
4
|
+
*/
|
|
5
|
+
import {
|
|
6
|
+
deeplyFulfilledObject,
|
|
7
|
+
makeTracer,
|
|
8
|
+
NonNullish,
|
|
9
|
+
} from '@agoric/internal';
|
|
10
|
+
import { E, Far } from '@endo/far';
|
|
11
|
+
|
|
12
|
+
/// <reference types="@agoric/vats/src/core/types-ambient"/>
|
|
13
|
+
/**
|
|
14
|
+
* @import {Installation, Instance} from '@agoric/zoe/src/zoeService/utils.js';
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const trace = makeTracer('FixBuggySA', true);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @import {start as StartFn} from '@agoric/orchestration/src/examples/send-anywhere.contract.js';
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @param {BootstrapPowers & {
|
|
25
|
+
* instance: {
|
|
26
|
+
* consume: {
|
|
27
|
+
* sendAnywhere: Instance<StartFn>;
|
|
28
|
+
* };
|
|
29
|
+
* };
|
|
30
|
+
* }} powers
|
|
31
|
+
* @param {...any} rest
|
|
32
|
+
*/
|
|
33
|
+
export const fixSendAnywhere = async (
|
|
34
|
+
{
|
|
35
|
+
consume: {
|
|
36
|
+
agoricNames,
|
|
37
|
+
board,
|
|
38
|
+
chainStorage,
|
|
39
|
+
chainTimerService,
|
|
40
|
+
contractKits,
|
|
41
|
+
cosmosInterchainService,
|
|
42
|
+
localchain,
|
|
43
|
+
},
|
|
44
|
+
instance: instances,
|
|
45
|
+
},
|
|
46
|
+
{ options: { sendAnywhereRef } },
|
|
47
|
+
) => {
|
|
48
|
+
trace(fixSendAnywhere.name);
|
|
49
|
+
|
|
50
|
+
const saInstance = await instances.consume.sendAnywhere;
|
|
51
|
+
trace('saInstance', saInstance);
|
|
52
|
+
const saKit = await E(contractKits).get(saInstance);
|
|
53
|
+
|
|
54
|
+
const marshaller = await E(board).getReadonlyMarshaller();
|
|
55
|
+
|
|
56
|
+
// This apparently pointless wrapper is to maintain structural parity
|
|
57
|
+
// with the buggy core-eval's wrapper to make lookup() hang.
|
|
58
|
+
const agoricNamesResolves = Far('agoricNames that resolves', {
|
|
59
|
+
lookup: async (...args) => {
|
|
60
|
+
return E(agoricNames).lookup(...args);
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const privateArgs = await deeplyFulfilledObject(
|
|
65
|
+
harden({
|
|
66
|
+
agoricNames: agoricNamesResolves,
|
|
67
|
+
localchain,
|
|
68
|
+
marshaller,
|
|
69
|
+
orchestrationService: cosmosInterchainService,
|
|
70
|
+
storageNode: E(NonNullish(await chainStorage)).makeChildNode(
|
|
71
|
+
'sendAnywhere',
|
|
72
|
+
),
|
|
73
|
+
timerService: chainTimerService,
|
|
74
|
+
}),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
trace('upgrading...');
|
|
78
|
+
await E(saKit.adminFacet).upgradeContract(
|
|
79
|
+
sendAnywhereRef.bundleID,
|
|
80
|
+
privateArgs,
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
trace('done');
|
|
84
|
+
};
|
|
85
|
+
harden(fixSendAnywhere);
|
|
86
|
+
|
|
87
|
+
export const getManifestForValueVow = ({ restoreRef }, { sendAnywhereRef }) => {
|
|
88
|
+
console.log('sendAnywhereRef', sendAnywhereRef);
|
|
89
|
+
return {
|
|
90
|
+
manifest: {
|
|
91
|
+
[fixSendAnywhere.name]: {
|
|
92
|
+
consume: {
|
|
93
|
+
agoricNames: true,
|
|
94
|
+
board: true,
|
|
95
|
+
chainStorage: true,
|
|
96
|
+
chainTimerService: true,
|
|
97
|
+
cosmosInterchainService: true,
|
|
98
|
+
localchain: true,
|
|
99
|
+
|
|
100
|
+
contractKits: true,
|
|
101
|
+
},
|
|
102
|
+
installation: {
|
|
103
|
+
consume: { sendAnywhere: true },
|
|
104
|
+
},
|
|
105
|
+
instance: {
|
|
106
|
+
consume: { sendAnywhere: true },
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
installations: {
|
|
111
|
+
sendAnywhere: restoreRef(sendAnywhereRef),
|
|
112
|
+
},
|
|
113
|
+
options: {
|
|
114
|
+
sendAnywhereRef,
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
120
|
+
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
121
|
+
harden({
|
|
122
|
+
// Somewhat unorthodox, source the exports from this builder module
|
|
123
|
+
sourceSpec: '@agoric/builders/scripts/testing/fix-buggy-sendAnywhere.js',
|
|
124
|
+
getManifestCall: [
|
|
125
|
+
'getManifestForValueVow',
|
|
126
|
+
{
|
|
127
|
+
sendAnywhereRef: publishRef(
|
|
128
|
+
install(
|
|
129
|
+
'@agoric/orchestration/src/examples/send-anywhere.contract.js',
|
|
130
|
+
),
|
|
131
|
+
),
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
137
|
+
export default async (homeP, endowments) => {
|
|
138
|
+
// import dynamically so the module can work in CoreEval environment
|
|
139
|
+
const dspModule = await import('@agoric/deploy-script-support');
|
|
140
|
+
const { makeHelpers } = dspModule;
|
|
141
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
142
|
+
await writeCoreEval(fixSendAnywhere.name, defaultProposalBuilder);
|
|
143
|
+
};
|
|
@@ -91,6 +91,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
91
91
|
getManifestCall: [getManifest.name],
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
94
95
|
export default async (homeP, endowments) => {
|
|
95
96
|
// import dynamically so the module can work in CoreEval environment
|
|
96
97
|
const dspModule = await import('@agoric/deploy-script-support');
|