@agoric/builders 0.1.1-dev-6388a00.0 → 0.1.1-dev-6466eec.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-6388a00.0+6388a00",
3
+ "version": "0.1.1-dev-6466eec.0+6466eec",
4
4
  "description": "Build scripts for proposals to an Agoric chain",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -23,14 +23,14 @@
23
23
  "author": "Agoric",
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@agoric/ertp": "0.16.3-dev-6388a00.0+6388a00",
27
- "@agoric/internal": "0.3.3-dev-6388a00.0+6388a00",
28
- "@agoric/network": "0.1.1-dev-6388a00.0+6388a00",
29
- "@agoric/notifier": "0.6.3-dev-6388a00.0+6388a00",
30
- "@agoric/smart-wallet": "0.5.4-dev-6388a00.0+6388a00",
31
- "@agoric/vat-data": "0.5.3-dev-6388a00.0+6388a00",
32
- "@agoric/vats": "0.15.2-dev-6388a00.0+6388a00",
33
- "@agoric/zoe": "0.26.3-dev-6388a00.0+6388a00",
26
+ "@agoric/ertp": "0.16.3-dev-6466eec.0+6466eec",
27
+ "@agoric/internal": "0.3.3-dev-6466eec.0+6466eec",
28
+ "@agoric/network": "0.1.1-dev-6466eec.0+6466eec",
29
+ "@agoric/notifier": "0.6.3-dev-6466eec.0+6466eec",
30
+ "@agoric/smart-wallet": "0.5.4-dev-6466eec.0+6466eec",
31
+ "@agoric/vat-data": "0.5.3-dev-6466eec.0+6466eec",
32
+ "@agoric/vats": "0.15.2-dev-6466eec.0+6466eec",
33
+ "@agoric/zoe": "0.26.3-dev-6466eec.0+6466eec",
34
34
  "@endo/bundle-source": "^3.0.1",
35
35
  "@endo/captp": "^4.0.1",
36
36
  "@endo/eventual-send": "^1.0.1",
@@ -42,14 +42,14 @@
42
42
  "import-meta-resolve": "^2.2.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@agoric/assert": "0.6.1-dev-6388a00.0+6388a00",
46
- "@agoric/deploy-script-support": "0.10.4-dev-6388a00.0+6388a00",
47
- "@agoric/governance": "0.10.4-dev-6388a00.0+6388a00",
48
- "@agoric/inter-protocol": "0.16.2-dev-6388a00.0+6388a00",
49
- "@agoric/store": "0.9.3-dev-6388a00.0+6388a00",
50
- "@agoric/swing-store": "0.9.2-dev-6388a00.0+6388a00",
51
- "@agoric/swingset-liveslots": "0.10.3-dev-6388a00.0+6388a00",
52
- "@agoric/time": "0.3.3-dev-6388a00.0+6388a00",
45
+ "@agoric/assert": "0.6.1-dev-6466eec.0+6466eec",
46
+ "@agoric/deploy-script-support": "0.10.4-dev-6466eec.0+6466eec",
47
+ "@agoric/governance": "0.10.4-dev-6466eec.0+6466eec",
48
+ "@agoric/inter-protocol": "0.16.2-dev-6466eec.0+6466eec",
49
+ "@agoric/store": "0.9.3-dev-6466eec.0+6466eec",
50
+ "@agoric/swing-store": "0.9.2-dev-6466eec.0+6466eec",
51
+ "@agoric/swingset-liveslots": "0.10.3-dev-6466eec.0+6466eec",
52
+ "@agoric/time": "0.3.3-dev-6466eec.0+6466eec",
53
53
  "ava": "^5.3.0",
54
54
  "c8": "^7.13.0"
55
55
  },
@@ -81,5 +81,5 @@
81
81
  "typeCoverage": {
82
82
  "atLeast": 67.05
83
83
  },
84
- "gitHead": "6388a002b53593f17a8d936d4e937efb7d065d97"
84
+ "gitHead": "6466eec6a8f591b098cd319f15e027a285d3d78d"
85
85
  }
@@ -0,0 +1,29 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /**
4
+ * @file
5
+ * `agoric run scripts/smart-wallet/build-wallet-factory2-upgrade.js`
6
+ * produces a proposal and permit file, as well as the necessary bundles. It
7
+ * also prints helpful instructions for copying the files and installing them.
8
+ */
9
+
10
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
11
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
12
+ harden({
13
+ sourceSpec:
14
+ '@agoric/smart-wallet/src/proposals/upgrade-wallet-factory2-proposal.js',
15
+ getManifestCall: [
16
+ 'getManifestForUpgradeWallet',
17
+ {
18
+ walletRef: publishRef(
19
+ // @ts-expect-error eslint is confused. The call is correct.
20
+ install('@agoric/smart-wallet/src/walletFactory.js'),
21
+ ),
22
+ },
23
+ ],
24
+ });
25
+
26
+ export default async (homeP, endowments) => {
27
+ const { writeCoreProposal } = await makeHelpers(homeP, endowments);
28
+ await writeCoreProposal('upgrade-wallet-factory', defaultProposalBuilder);
29
+ };