@agoric/builders 0.1.1-dev-4542cd0.0 → 0.1.1-dev-a67502b.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-4542cd0.0+4542cd0",
3
+ "version": "0.1.1-dev-a67502b.0+a67502b",
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-4542cd0.0+4542cd0",
27
- "@agoric/internal": "0.3.3-dev-4542cd0.0+4542cd0",
28
- "@agoric/notifier": "0.6.3-dev-4542cd0.0+4542cd0",
29
- "@agoric/smart-wallet": "0.5.4-dev-4542cd0.0+4542cd0",
30
- "@agoric/vat-data": "0.5.3-dev-4542cd0.0+4542cd0",
31
- "@agoric/vats": "0.15.2-dev-4542cd0.0+4542cd0",
32
- "@agoric/zoe": "0.26.3-dev-4542cd0.0+4542cd0",
26
+ "@agoric/ertp": "0.16.3-dev-a67502b.0+a67502b",
27
+ "@agoric/internal": "0.3.3-dev-a67502b.0+a67502b",
28
+ "@agoric/notifier": "0.6.3-dev-a67502b.0+a67502b",
29
+ "@agoric/smart-wallet": "0.5.4-dev-a67502b.0+a67502b",
30
+ "@agoric/vat-data": "0.5.3-dev-a67502b.0+a67502b",
31
+ "@agoric/vats": "0.15.2-dev-a67502b.0+a67502b",
32
+ "@agoric/zoe": "0.26.3-dev-a67502b.0+a67502b",
33
33
  "@endo/bundle-source": "^3.4.2",
34
34
  "@endo/captp": "^4.4.2",
35
35
  "@endo/eventual-send": "^1.2.7",
@@ -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-4542cd0.0+4542cd0",
45
- "@agoric/governance": "0.10.4-dev-4542cd0.0+4542cd0",
46
- "@agoric/inter-protocol": "0.16.2-dev-4542cd0.0+4542cd0",
47
- "@agoric/orchestration": "0.1.1-dev-4542cd0.0+4542cd0",
48
- "@agoric/store": "0.9.3-dev-4542cd0.0+4542cd0",
49
- "@agoric/swing-store": "0.9.2-dev-4542cd0.0+4542cd0",
50
- "@agoric/swingset-liveslots": "0.10.3-dev-4542cd0.0+4542cd0",
51
- "@agoric/time": "0.3.3-dev-4542cd0.0+4542cd0",
44
+ "@agoric/deploy-script-support": "0.10.4-dev-a67502b.0+a67502b",
45
+ "@agoric/governance": "0.10.4-dev-a67502b.0+a67502b",
46
+ "@agoric/inter-protocol": "0.16.2-dev-a67502b.0+a67502b",
47
+ "@agoric/orchestration": "0.1.1-dev-a67502b.0+a67502b",
48
+ "@agoric/store": "0.9.3-dev-a67502b.0+a67502b",
49
+ "@agoric/swing-store": "0.9.2-dev-a67502b.0+a67502b",
50
+ "@agoric/swingset-liveslots": "0.10.3-dev-a67502b.0+a67502b",
51
+ "@agoric/time": "0.3.3-dev-a67502b.0+a67502b",
52
52
  "@endo/errors": "^1.2.7",
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": "4542cd0302f33a03388cd74d24b41c0d2af86cf4"
84
+ "gitHead": "a67502b4ce6edcc5ceca0621ab9979f388f5f64f"
85
85
  }
@@ -16,40 +16,20 @@
16
16
  import { makeHelpers } from '@agoric/deploy-script-support';
17
17
  import { getManifestForReplaceAllElectorates } from '@agoric/inter-protocol/src/proposals/replaceElectorate.js';
18
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
19
  const configurations = {
39
20
  MAINNET: {
40
21
  committeeName: 'Economic Committee',
41
- // UNTIL https://github.com/Agoric/agoric-sdk/issues/10194
42
22
  voterAddresses: {
43
- gov1: 'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
44
- gov2: 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
45
- gov3: 'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
23
+ 'Chloe White': 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
24
+ 'Chris Berg': 'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
25
+ 'Joe Clark': 'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
46
26
  },
47
27
  highPrioritySendersConfig: {
48
28
  addressesToAdd: [],
49
29
  addressesToRemove: [
50
- 'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
30
+ 'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
31
+ 'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
51
32
  'agoric1el6zqs8ggctj5vwyukyk4fh50wcpdpwgugd5l5',
52
- 'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
53
33
  ],
54
34
  },
55
35
  },
@@ -69,10 +49,12 @@ const configurations = {
69
49
  committeeName: 'Economic Committee',
70
50
  voterAddresses: {
71
51
  gov1: 'agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q',
52
+ gov2: 'agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277',
53
+ gov4: 'agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy',
72
54
  },
73
55
  highPrioritySendersConfig: {
74
- addressesToAdd: [],
75
- addressesToRemove: ['agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277'],
56
+ addressesToAdd: ['agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy'],
57
+ addressesToRemove: ['agoric1ydzxwh6f893jvpaslmaz6l8j2ulup9a7x8qvvq'],
76
58
  },
77
59
  },
78
60
  BOOTSTRAP_TEST: {
@@ -95,21 +77,39 @@ const configurations = {
95
77
 
96
78
  const { keys } = Object;
97
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
+ };
98
103
 
99
104
  /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
100
105
  export default async (homeP, endowments) => {
101
106
  const { scriptArgs } = endowments;
102
107
  const variant = scriptArgs?.[0];
103
- const config = configurations[variant];
104
- if (!config) {
105
- console.error(Usage);
106
- process.exit(1);
107
- }
108
- console.log('replace-committee', scriptArgs, config);
108
+ console.log('replace-committee', scriptArgs, variant);
109
109
 
110
110
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
111
111
 
112
112
  await writeCoreEval(`replace-committee-${variant}`, (utils, opts) =>
113
- defaultProposalBuilder(utils, { ...opts, ...config }),
113
+ defaultProposalBuilder(utils, { ...opts, variant }),
114
114
  );
115
115
  };