@agoric/builders 0.1.1-dev-feae722.0 → 0.1.1-dev-fdb7004.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/builders",
3
- "version": "0.1.1-dev-feae722.0+feae722",
3
+ "version": "0.1.1-dev-fdb7004.0+fdb7004",
4
4
  "description": "Build scripts for proposals to an Agoric chain",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -23,13 +23,13 @@
23
23
  "author": "Agoric",
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@agoric/ertp": "0.16.3-dev-feae722.0+feae722",
27
- "@agoric/internal": "0.3.3-dev-feae722.0+feae722",
28
- "@agoric/notifier": "0.6.3-dev-feae722.0+feae722",
29
- "@agoric/smart-wallet": "0.5.4-dev-feae722.0+feae722",
30
- "@agoric/vat-data": "0.5.3-dev-feae722.0+feae722",
31
- "@agoric/vats": "0.15.2-dev-feae722.0+feae722",
32
- "@agoric/zoe": "0.26.3-dev-feae722.0+feae722",
26
+ "@agoric/ertp": "0.16.3-dev-fdb7004.0+fdb7004",
27
+ "@agoric/internal": "0.3.3-dev-fdb7004.0+fdb7004",
28
+ "@agoric/notifier": "0.6.3-dev-fdb7004.0+fdb7004",
29
+ "@agoric/smart-wallet": "0.5.4-dev-fdb7004.0+fdb7004",
30
+ "@agoric/vat-data": "0.5.3-dev-fdb7004.0+fdb7004",
31
+ "@agoric/vats": "0.15.2-dev-fdb7004.0+fdb7004",
32
+ "@agoric/zoe": "0.26.3-dev-fdb7004.0+fdb7004",
33
33
  "@endo/bundle-source": "^3.4.0",
34
34
  "@endo/captp": "^4.3.0",
35
35
  "@endo/eventual-send": "^1.2.5",
@@ -41,14 +41,14 @@
41
41
  "import-meta-resolve": "^2.2.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@agoric/deploy-script-support": "0.10.4-dev-feae722.0+feae722",
45
- "@agoric/governance": "0.10.4-dev-feae722.0+feae722",
46
- "@agoric/inter-protocol": "0.16.2-dev-feae722.0+feae722",
47
- "@agoric/orchestration": "0.1.1-dev-feae722.0+feae722",
48
- "@agoric/store": "0.9.3-dev-feae722.0+feae722",
49
- "@agoric/swing-store": "0.9.2-dev-feae722.0+feae722",
50
- "@agoric/swingset-liveslots": "0.10.3-dev-feae722.0+feae722",
51
- "@agoric/time": "0.3.3-dev-feae722.0+feae722",
44
+ "@agoric/deploy-script-support": "0.10.4-dev-fdb7004.0+fdb7004",
45
+ "@agoric/governance": "0.10.4-dev-fdb7004.0+fdb7004",
46
+ "@agoric/inter-protocol": "0.16.2-dev-fdb7004.0+fdb7004",
47
+ "@agoric/orchestration": "0.1.1-dev-fdb7004.0+fdb7004",
48
+ "@agoric/store": "0.9.3-dev-fdb7004.0+fdb7004",
49
+ "@agoric/swing-store": "0.9.2-dev-fdb7004.0+fdb7004",
50
+ "@agoric/swingset-liveslots": "0.10.3-dev-fdb7004.0+fdb7004",
51
+ "@agoric/time": "0.3.3-dev-fdb7004.0+fdb7004",
52
52
  "@endo/errors": "^1.2.5",
53
53
  "ava": "^5.3.0",
54
54
  "c8": "^9.1.0"
@@ -81,5 +81,5 @@
81
81
  "typeCoverage": {
82
82
  "atLeast": 82.43
83
83
  },
84
- "gitHead": "feae7225840c6f8b89d5d49f78d37391f6b41035"
84
+ "gitHead": "fdb7004d82a051641c93ea75d08dfed12d3aa834"
85
85
  }
@@ -0,0 +1,113 @@
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
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
20
+ export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
21
+ return harden({
22
+ sourceSpec: '@agoric/inter-protocol/src/proposals/replaceElectorate.js',
23
+ getManifestCall: [
24
+ getManifestForReplaceAllElectorates.name,
25
+ {
26
+ ...opts,
27
+ economicCommitteeRef: publishRef(
28
+ install(
29
+ '@agoric/governance/src/committee.js',
30
+ '../bundles/bundle-committee.js',
31
+ ),
32
+ ),
33
+ },
34
+ ],
35
+ });
36
+ };
37
+
38
+ const configurations = {
39
+ MAINNET: {
40
+ committeeName: 'Economic Committee',
41
+ // UNTIL https://github.com/Agoric/agoric-sdk/issues/10194
42
+ voterAddresses: {
43
+ gov1: 'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
44
+ gov2: 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
45
+ gov3: 'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
46
+ },
47
+ highPrioritySendersConfig: {
48
+ addressesToAdd: [],
49
+ addressesToRemove: [
50
+ 'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
51
+ 'agoric1el6zqs8ggctj5vwyukyk4fh50wcpdpwgugd5l5',
52
+ 'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
53
+ ],
54
+ },
55
+ },
56
+ DEVNET: {
57
+ committeeName: 'Economic Committee',
58
+ // TODO: Update the addresses after confirmation
59
+ voterAddresses: {
60
+ gov1: 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce',
61
+ gov2: 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang',
62
+ },
63
+ highPrioritySendersConfig: {
64
+ addressesToAdd: [],
65
+ addressesToRemove: ['agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h'],
66
+ },
67
+ },
68
+ A3P_INTEGRATION: {
69
+ committeeName: 'Economic Committee',
70
+ voterAddresses: {
71
+ gov1: 'agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q',
72
+ },
73
+ highPrioritySendersConfig: {
74
+ addressesToAdd: [],
75
+ addressesToRemove: ['agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277'],
76
+ },
77
+ },
78
+ BOOTSTRAP_TEST: {
79
+ committeeName: 'Economic Committee',
80
+ voterAddresses: {
81
+ gov1: 'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
82
+ gov2: 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
83
+ gov3: 'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
84
+ },
85
+ highPrioritySendersConfig: {
86
+ addressesToAdd: [],
87
+ addressesToRemove: [
88
+ 'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
89
+ 'agoric1el6zqs8ggctj5vwyukyk4fh50wcpdpwgugd5l5',
90
+ 'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
91
+ ],
92
+ },
93
+ },
94
+ };
95
+
96
+ const { keys } = Object;
97
+ const Usage = `agoric run replace-electorate-core.js ${keys(configurations).join(' | ')}`;
98
+ export default async (homeP, endowments) => {
99
+ const { scriptArgs } = endowments;
100
+ const variant = scriptArgs?.[0];
101
+ const config = configurations[variant];
102
+ if (!config) {
103
+ console.error(Usage);
104
+ process.exit(1);
105
+ }
106
+ console.log('replace-committee', scriptArgs, config);
107
+
108
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
109
+
110
+ await writeCoreEval(`replace-committee-${variant}`, (utils, opts) =>
111
+ defaultProposalBuilder(utils, { ...opts, ...config }),
112
+ );
113
+ };