@agoric/builders 0.1.1-dev-b4480d8.0 → 0.1.1-dev-ad7ac3c.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-b4480d8.0+b4480d8",
3
+ "version": "0.1.1-dev-ad7ac3c.0+ad7ac3c",
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-b4480d8.0+b4480d8",
27
- "@agoric/internal": "0.3.3-dev-b4480d8.0+b4480d8",
28
- "@agoric/notifier": "0.6.3-dev-b4480d8.0+b4480d8",
29
- "@agoric/smart-wallet": "0.5.4-dev-b4480d8.0+b4480d8",
30
- "@agoric/vat-data": "0.5.3-dev-b4480d8.0+b4480d8",
31
- "@agoric/vats": "0.15.2-dev-b4480d8.0+b4480d8",
32
- "@agoric/zoe": "0.26.3-dev-b4480d8.0+b4480d8",
26
+ "@agoric/ertp": "0.16.3-dev-ad7ac3c.0+ad7ac3c",
27
+ "@agoric/internal": "0.3.3-dev-ad7ac3c.0+ad7ac3c",
28
+ "@agoric/notifier": "0.6.3-dev-ad7ac3c.0+ad7ac3c",
29
+ "@agoric/smart-wallet": "0.5.4-dev-ad7ac3c.0+ad7ac3c",
30
+ "@agoric/vat-data": "0.5.3-dev-ad7ac3c.0+ad7ac3c",
31
+ "@agoric/vats": "0.15.2-dev-ad7ac3c.0+ad7ac3c",
32
+ "@agoric/zoe": "0.26.3-dev-ad7ac3c.0+ad7ac3c",
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-b4480d8.0+b4480d8",
45
- "@agoric/governance": "0.10.4-dev-b4480d8.0+b4480d8",
46
- "@agoric/inter-protocol": "0.16.2-dev-b4480d8.0+b4480d8",
47
- "@agoric/orchestration": "0.1.1-dev-b4480d8.0+b4480d8",
48
- "@agoric/store": "0.9.3-dev-b4480d8.0+b4480d8",
49
- "@agoric/swing-store": "0.9.2-dev-b4480d8.0+b4480d8",
50
- "@agoric/swingset-liveslots": "0.10.3-dev-b4480d8.0+b4480d8",
51
- "@agoric/time": "0.3.3-dev-b4480d8.0+b4480d8",
44
+ "@agoric/deploy-script-support": "0.10.4-dev-ad7ac3c.0+ad7ac3c",
45
+ "@agoric/governance": "0.10.4-dev-ad7ac3c.0+ad7ac3c",
46
+ "@agoric/inter-protocol": "0.16.2-dev-ad7ac3c.0+ad7ac3c",
47
+ "@agoric/orchestration": "0.1.1-dev-ad7ac3c.0+ad7ac3c",
48
+ "@agoric/store": "0.9.3-dev-ad7ac3c.0+ad7ac3c",
49
+ "@agoric/swing-store": "0.9.2-dev-ad7ac3c.0+ad7ac3c",
50
+ "@agoric/swingset-liveslots": "0.10.3-dev-ad7ac3c.0+ad7ac3c",
51
+ "@agoric/time": "0.3.3-dev-ad7ac3c.0+ad7ac3c",
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": "b4480d8443ec4864a2deda7f67e186a7ff8e73ea"
84
+ "gitHead": "ad7ac3c0b5722cecd8bed5c3c554499a39a1d519"
85
85
  }
@@ -1,5 +1,3 @@
1
- /* global process */
2
-
3
1
  import { makeHelpers } from '@agoric/deploy-script-support';
4
2
  import { getManifestForPriceFeeds } from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js';
5
3
 
@@ -38,14 +36,21 @@ const configurations = {
38
36
  },
39
37
  };
40
38
 
39
+ const { keys } = Object;
40
+ const Usage = `agoric run updatePriceFeed.js ${keys(configurations).join(' | ')}`;
41
41
  /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
42
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
+ }
43
48
  return harden({
44
49
  sourceSpec: '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js',
45
50
  getManifestCall: [
46
51
  getManifestForPriceFeeds.name,
47
52
  {
48
- ...opts,
53
+ ...config,
49
54
  priceAggregatorRef: publishRef(
50
55
  install(
51
56
  '@agoric/inter-protocol/src/price/fluxAggregatorContract.js',
@@ -63,26 +68,15 @@ export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
63
68
  });
64
69
  };
65
70
 
66
- const { keys } = Object;
67
- const Usage = `agoric run updatePriceFeed.js ${keys(configurations).join(' | ')}`;
68
-
69
71
  /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
70
72
  export default async (homeP, endowments) => {
71
73
  const { scriptArgs } = endowments;
72
- assert(scriptArgs, 'expected script args endowment');
73
- const config = configurations[scriptArgs[0]];
74
- if (!config) {
75
- console.error(Usage);
76
- process.exit(1);
77
- }
78
- console.log('UPPrices', scriptArgs, config);
74
+ const variant = scriptArgs?.[0];
75
+ console.log('updatePriceFeeds', scriptArgs, variant);
79
76
 
80
77
  const { writeCoreEval } = await makeHelpers(homeP, endowments);
81
78
 
82
- const match = scriptArgs[0].match(/UNRELEASED_(.*)/);
83
- const variant = match ? match[1] : scriptArgs;
84
-
85
79
  await writeCoreEval(`gov-price-feeds-${variant}`, (utils, opts) =>
86
- defaultProposalBuilder(utils, { ...opts, ...config }),
80
+ defaultProposalBuilder(utils, { ...opts, variant }),
87
81
  );
88
82
  };