@agoric/deploy-script-support 0.10.4-u15.0 → 0.10.4-u16.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/README.md CHANGED
@@ -1,4 +1,108 @@
1
1
  # Deploy Script Support
2
2
 
3
- Import this code in your dapp deploy scripts to more easily install and
4
- interact with Zoe contracts.
3
+ To install code on chain or in the a3p-integration environment, you'll have to
4
+ generate a proposal, and write a script to build the core proposal. The
5
+ proposals have limited access to bootstrap powers, described by their manifests.
6
+
7
+ There are collections of proposals in .../vats/src/proposals,
8
+ smart-wallet/src/proposals, orchestration/src/proposals, pegasus/src/proposals.
9
+
10
+ The overall format is a proposalBuilder script (There are several in
11
+ .../builders/scripts/vats/) which has a default export that passes resources to
12
+ the proposal. The resources include bundled source code and string-value
13
+ parameters. The ProposalBuilder specifies (as an import string) the proposal
14
+ it uses, identifies the "manifest", (which associates permissions to access
15
+ powers in the bootstrap space with functions to be called), and builds bundles
16
+ of source code needed by the proposal.
17
+
18
+ `.../builders/scripts/vats/upgradeVaults.js` is a canonical example. It says the
19
+ proposal to run is '@agoric/inter-protocol/src/proposals/upgrade-vaults.js',
20
+ lists the manifest there as `'getManifestForUpgradeVaults'`, and directs the
21
+ creation of a bundle from
22
+ '@agoric/inter-protocol/src/vaultFactory/vaultFactory.js', which will be made
23
+ available to the proposal as `vaultsRef` in options.
24
+
25
+ `upgrade-vaults.js` defines `getManifestForUpgradeVaults()`, which returns a
26
+ `manifest` that says `upgradeVaults()` should be executed, and specifies what
27
+ powers it should have access to.
28
+
29
+ ### Proposal
30
+
31
+ The proposal is called with `(powers, options)` available. The manifest
32
+ detailing the powers that will be used is usually in the same file, and
33
+ conventionally provided by a function named `getManifestForFoo`. The manifest
34
+ needs to have a unique name, since it will be referenced by name from the
35
+ script. The usual format is
36
+ ```js
37
+ export const foo = async (
38
+ {
39
+ consume: {
40
+ ...
41
+ },
42
+ brands: {
43
+ ...
44
+ }
45
+ },
46
+ options,
47
+ ) => {
48
+ const { fooRef } = options;
49
+ // do the things using powers and options
50
+ };
51
+
52
+ export const getManifestForFoo = (powers, options) => {
53
+ manifest: {
54
+ [foo.name]: {
55
+ consume: {
56
+ ...
57
+ },
58
+ options,
59
+ )};
60
+ ```
61
+
62
+ `manifest` contains descriptions of powers to be provided to the proposals.
63
+
64
+ **TODO** what happens with the `installations` in [`startPsm.js`](https://github.com/Agoric/agoric-sdk/blob/b13743a2cccf0cb63a412b54384435596d4e81ea/packages/inter-protocol/src/proposals/startPSM.js#L496)?
65
+
66
+ `options` allows the proposal to be provided with arbitray other powerful
67
+ objects.
68
+
69
+ ### proposalBuilder Script
70
+
71
+ The script describes how to build the core proposal. For
72
+ `agoric-3-proposals` and uploading to the chain, the script must be named in the
73
+ `CoreProposalSteps` section in
74
+ [`app.go`](https://github.com/Agoric/agoric-sdk/blob/b13743a2cccf0cb63a412b54384435596d4e81ea/golang/cosmos/app/app.go#L881),
75
+ and its `defaultProposalBuilder` will be invoked directly.
76
+
77
+ Script files should export `defaultProposalBuilder` and a `default` function
78
+ that invokes `writeCoreProposal` one or more times to generate sets of files
79
+ describing the proposal.
80
+
81
+ ```js
82
+ export const defaultProposalBuilder = ({ publishRef, install }) => {
83
+ return harden({
84
+ sourceSpec: '@agoric/vats/src/proposals/foo.js',
85
+ getManifestCall: [
86
+ 'getManifestForFoo',
87
+ {
88
+ fooRef: publishRef(install('@agoric/...')),
89
+ ...otherParams,
90
+ },
91
+ ],
92
+ });
93
+ };
94
+ `
95
+ export default async (homeP, endowments) => {
96
+ const { writeCoreProposal } = await makeHelpers(homeP, endowments);
97
+ await writeCoreProposal('proposalName', defaultProposalBuilder);
98
+ };
99
+ ```
100
+
101
+ The first element of `getManifestCall` is interpreted as the name of a proposal.
102
+ The second element of `getManifestCall` produces the `options` argument passed
103
+ to the proposal. (`fooRef` in the example above). A common thing to want to pass
104
+ in options is a reference to code to be installed on-chain. The `fooRef` example
105
+ above shows how. `publishRef(install(<path>))` is built from sources in the
106
+ sdk, and passed as a `bundleRef`, which contains a `bundleID` suitable for
107
+ passing to Zoe (for contracts) or `vatAdminService` (for non-contract vat code).
108
+
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@agoric/deploy-script-support",
3
- "version": "0.10.4-u15.0",
3
+ "version": "0.10.4-u16.0",
4
4
  "description": "Helpers and other support for writing deploy scripts",
5
5
  "type": "module",
6
6
  "main": "src/helpers.js",
7
7
  "engines": {
8
- "node": ">=14.15.0"
8
+ "node": "^18.12 || ^20.9"
9
9
  },
10
10
  "scripts": {
11
11
  "build": "exit 0",
@@ -13,7 +13,7 @@
13
13
  "test:xs": "exit 0",
14
14
  "lint-fix": "yarn lint:eslint --fix",
15
15
  "lint:eslint": "eslint .",
16
- "lint:types": "tsc -p jsconfig.json",
16
+ "lint:types": "tsc",
17
17
  "lint": "run-s --continue-on-error lint:*"
18
18
  },
19
19
  "repository": {
@@ -34,39 +34,45 @@
34
34
  },
35
35
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
36
36
  "dependencies": {
37
- "@agoric/assert": "^0.6.1-u11wf.0",
38
- "@agoric/ertp": "^0.16.3-u14.0",
39
- "@agoric/import-manager": "^0.3.12-u14.0",
40
- "@agoric/internal": "^0.4.0-u14.0",
41
- "@agoric/notifier": "^0.6.3-u14.0",
42
- "@agoric/store": "^0.9.3-u14.0",
43
- "@agoric/zoe": "^0.26.3-u15.0",
44
- "@endo/base64": "0.2.31",
45
- "@endo/bundle-source": "2.5.2-upstream-rollup",
46
- "@endo/far": "0.2.18",
47
- "@endo/marshal": "0.8.5",
48
- "@endo/nat": "4.1.27",
49
- "@endo/promise-kit": "0.2.56",
50
- "@endo/zip": "0.2.31"
37
+ "@agoric/assert": "^0.6.1-u16.0",
38
+ "@agoric/ertp": "^0.16.3-u16.0",
39
+ "@agoric/import-manager": "^0.3.12-u16.0",
40
+ "@agoric/internal": "^0.4.0-u16.0",
41
+ "@agoric/notifier": "^0.7.0-u16.0",
42
+ "@agoric/store": "^0.9.3-u16.0",
43
+ "@agoric/time": "^0.3.3-u16.0",
44
+ "@agoric/zoe": "^0.26.3-u16.0",
45
+ "@endo/base64": "^1.0.5",
46
+ "@endo/bundle-source": "^3.2.3",
47
+ "@endo/far": "^1.1.2",
48
+ "@endo/marshal": "^1.5.0",
49
+ "@endo/nat": "^5.0.7",
50
+ "@endo/promise-kit": "^1.1.2",
51
+ "@endo/zip": "^1.0.5"
51
52
  },
52
53
  "devDependencies": {
53
- "@agoric/vats": "^0.15.2-u15.0",
54
- "@endo/init": "0.5.56",
55
- "ava": "^5.2.0",
54
+ "@agoric/vats": "^0.16.0-u16.0",
55
+ "@endo/init": "^1.1.2",
56
+ "ava": "^5.3.0",
56
57
  "import-meta-resolve": "^2.2.1"
57
58
  },
58
59
  "files": [
59
60
  "src",
60
- "NEWS.md",
61
- "exported.js"
61
+ "NEWS.md"
62
62
  ],
63
63
  "ava": {
64
64
  "files": [
65
- "test/**/test-*.js"
65
+ "test/**/*.test.*"
66
+ ],
67
+ "require": [
68
+ "@endo/init/debug.js"
66
69
  ]
67
70
  },
68
71
  "publishConfig": {
69
72
  "access": "public"
70
73
  },
71
- "gitHead": "734e8635002e01b3e27477e93998dda942c7fae8"
74
+ "typeCoverage": {
75
+ "atLeast": 81.63
76
+ },
77
+ "gitHead": "bbdf652c3f413381cb352a8a360db1063974fafd"
72
78
  }
@@ -1,6 +1,10 @@
1
1
  // @ts-check
2
2
  const t = 'makeCoreProposalBehavior';
3
3
 
4
+ /**
5
+ * @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
6
+ */
7
+
4
8
  /**
5
9
  * TODO import these from @agoric/vats when the types are better managed
6
10
  *
@@ -9,7 +13,7 @@ const t = 'makeCoreProposalBehavior';
9
13
  */
10
14
 
11
15
  /**
12
- * @typedef {import('./externalTypes.js').ManifestBundleRef} ManifestBundleRef
16
+ * @import {ManifestBundleRef} from './externalTypes.js'
13
17
  * @typedef {[methodName: string, ...args: unknown[]]} FlatMethargs
14
18
  * @typedef {Record<string, Record<string, unknown>>} Manifest
15
19
  */
@@ -20,7 +24,7 @@ const t = 'makeCoreProposalBehavior';
20
24
  * They are merged with all of the manifest getter's permits to produce the
21
25
  * total permits needed by the resulting core proposal (such as might be---and
22
26
  * generally are---written into a *-permit.json file).
23
- * @see {@link ./writeCoreProposal.js}
27
+ * @see {@link ./writeCoreEvalParts.js}
24
28
  */
25
29
  export const permits = {
26
30
  consume: { agoricNamesAdmin: t, vatAdminSvc: t, zoe: t },
@@ -55,18 +59,27 @@ export const makeCoreProposalBehavior = ({
55
59
  }) => {
56
60
  const { entries, fromEntries } = Object;
57
61
 
58
- // deeplyFulfilled is a bit overkill for what we need.
62
+ /**
63
+ * Given an object whose properties may be promise-valued, return a promise
64
+ * for an analogous object in which each such value has been replaced with its
65
+ * fulfillment.
66
+ * This is a non-recursive form of endo `deeplyFulfilled`.
67
+ *
68
+ * @template T
69
+ * @param {{[K in keyof T]: (T[K] | Promise<T[K]>)}} obj
70
+ * @returns {Promise<T>}
71
+ */
59
72
  const shallowlyFulfilled = async obj => {
60
73
  if (!obj) {
61
74
  return obj;
62
75
  }
63
- const ents = await Promise.all(
76
+ const awaitedEntries = await Promise.all(
64
77
  entries(obj).map(async ([key, valueP]) => {
65
78
  const value = await valueP;
66
79
  return [key, value];
67
80
  }),
68
81
  );
69
- return fromEntries(ents);
82
+ return fromEntries(awaitedEntries);
70
83
  };
71
84
 
72
85
  const makeRestoreRef = (vatAdminSvc, zoe) => {
@@ -93,7 +106,7 @@ export const makeCoreProposalBehavior = ({
93
106
  // HOWEVER, do note that this function is invoked with at least the *union* of powers
94
107
  // required by individual moduleBehaviors declared by the manifest getter, which is
95
108
  // necessary so it can use `runModuleBehaviors` to provide the appropriate subset to
96
- // each one (see ./writeCoreProposal.js).
109
+ // each one (see ./writeCoreEvalParts.js).
97
110
  // Handle `powers` with the requisite care.
98
111
  const {
99
112
  consume: { vatAdminSvc, zoe, agoricNamesAdmin },
@@ -143,7 +156,7 @@ export const makeCoreProposalBehavior = ({
143
156
  ...manifestGetterArgs,
144
157
  );
145
158
 
146
- // Await references in the options or installations.
159
+ // Await promises in the returned options and installations records.
147
160
  const [options, installations] = await Promise.all(
148
161
  [rawOptions, rawInstallations].map(shallowlyFulfilled),
149
162
  );
@@ -9,12 +9,6 @@ export {};
9
9
  * origin. We are migrating away from using plain strings, for consistency.
10
10
  */
11
11
 
12
- /**
13
- * @typedef ProposalResult
14
- * @property {string} sourceSpec
15
- * @property {[exportedGetManifest: string, ...manifestArgs: any[]]} getManifestCall
16
- */
17
-
18
12
  /**
19
13
  * @typedef {{fileName?: string} & ({ bundleName: string } | { bundleID: string}) } ManifestBundleRef
20
14
  */
@@ -34,12 +28,22 @@ export {};
34
28
  */
35
29
 
36
30
  /**
37
- * @callback ProposalBuilder
31
+ * @typedef CoreEvalDescriptor
32
+ * @property {string} sourceSpec import specifier for a module
33
+ * @property {[manifestGetterName: string, ...manifestGetterArgs: any[]]} getManifestCall
34
+ * the name of a function exported by the module and arguments to invoke it
35
+ * with in order to get a manifest (a Record that associates functions to be
36
+ * invoked and permits defining bootstrap-space powers they will have access
37
+ * to, see {@link ../README.md} and {@link runModuleBehaviors})
38
+ */
39
+
40
+ /**
41
+ * @callback CoreEvalBuilder
38
42
  * @param {{
39
43
  * publishRef: PublishBundleRef,
40
44
  * install: InstallEntrypoint,
41
45
  * wrapInstall?: <T extends InstallEntrypoint>(f: T) => T }
42
46
  * } powers
43
47
  * @param {...any} args
44
- * @returns {Promise<ProposalResult>}
48
+ * @returns {Promise<CoreEvalDescriptor>}
45
49
  */
@@ -156,7 +156,7 @@ export const extractCoreProposalBundles = async (
156
156
  const thisProposalSequence = getSequenceForProposal(key);
157
157
  const initPath = findModule(dirname, module);
158
158
  const initDir = path.dirname(initPath);
159
- /** @type {Record<string, import('./externalTypes.js').ProposalBuilder>} */
159
+ /** @type {Record<string, import('./externalTypes.js').CoreEvalBuilder>} */
160
160
  const ns = await import(initPath);
161
161
  const install = (srcSpec, bundlePath) => {
162
162
  const absoluteSrc = findModule(initDir, srcSpec);
@@ -185,8 +185,6 @@ export const extractCoreProposalBundles = async (
185
185
  /** @type {import('./externalTypes.js').PublishBundleRef} */
186
186
  const publishRef = async handleP => {
187
187
  const handle = await handleP;
188
- // eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error -- https://github.com/Agoric/agoric-sdk/issues/4620 */
189
- // @ts-ignore xxx types
190
188
  bundleHandleToAbsolutePaths.has(handle) ||
191
189
  Fail`${handle} not in installed bundles`;
192
190
  return handle;
package/src/helpers.js CHANGED
@@ -1,5 +1,7 @@
1
1
  // @ts-check
2
- import '@agoric/zoe/exported.js';
2
+
3
+ /// <reference path="../../zoe/exported.js" />
4
+
3
5
  import { E } from '@endo/far';
4
6
  import bundleSource from '@endo/bundle-source';
5
7
 
@@ -15,7 +17,7 @@ import { makeSaveIssuer } from './saveIssuer.js';
15
17
  import { makeGetBundlerMaker } from './getBundlerMaker.js';
16
18
  import { assertOfferResult } from './assertOfferResult.js';
17
19
  import { installInPieces } from './installInPieces.js';
18
- import { makeWriteCoreProposal } from './writeCoreProposal.js';
20
+ import { makeWriteCoreEval } from './writeCoreEvalParts.js';
19
21
 
20
22
  export * from '@agoric/internal/src/node/createBundles.js';
21
23
 
@@ -135,8 +137,16 @@ export const makeHelpers = async (homePromise, endowments) => {
135
137
  get getBundlerMaker() {
136
138
  return makeGetBundlerMaker(homePromise, { bundleSource, lookup });
137
139
  },
140
+ /** @returns {import('./writeCoreEvalParts.js').WriteCoreEval} */
141
+ get writeCoreEval() {
142
+ return makeWriteCoreEval(homePromise, endowments, {
143
+ getBundleSpec: deps.cacheAndGetBundleSpec,
144
+ getBundlerMaker: helpers.getBundlerMaker,
145
+ });
146
+ },
147
+ /** @deprecated use writeCoreEval */
138
148
  get writeCoreProposal() {
139
- return makeWriteCoreProposal(homePromise, endowments, {
149
+ return makeWriteCoreEval(homePromise, endowments, {
140
150
  getBundleSpec: deps.cacheAndGetBundleSpec,
141
151
  getBundlerMaker: helpers.getBundlerMaker,
142
152
  });
package/src/install.js CHANGED
@@ -3,20 +3,11 @@ import './externalTypes.js';
3
3
 
4
4
  import { E } from '@endo/far';
5
5
 
6
- /** @typedef {import('@agoric/deploy-script-support/src/externalTypes').Petname} Petname */
7
-
8
- /**
9
- * @callback BundleSource
10
- * @param {string} startFilename - the filepath to start the bundling from
11
- * @param {ModuleFormat | BundleOptions} [moduleFormat]
12
- * @param {object} [powers]
13
- * @param {ReadFn} [powers.read]
14
- * @param {CanonicalFn} [powers.canonical]
15
- */
6
+ /** @import {Petname} from '@agoric/deploy-script-support/src/externalTypes.js' */
16
7
 
17
8
  // XXX board is Board but specifying that leads to type errors with imports which aren't worth fixing right now
18
9
  /**
19
- * @param {BundleSource} bundleSource
10
+ * @param {typeof import('@endo/bundle-source')['default']} bundleSource
20
11
  * @param {ERef<ZoeService>} zoe
21
12
  * @param {ERef<import('./startInstance.js').InstallationManager>} installationManager
22
13
  * @param {ERef<any>} board
package/src/offer.js CHANGED
@@ -4,7 +4,7 @@ import { assert } from '@agoric/assert';
4
4
  // Avoid pulling in too many dependencies like notifiers
5
5
  import { AmountMath } from '@agoric/ertp/src/amountMath.js';
6
6
 
7
- /** @typedef {import('@agoric/deploy-script-support/src/externalTypes').Petname} Petname */
7
+ /** @import {Petname} from '@agoric/deploy-script-support/src/externalTypes.js' */
8
8
 
9
9
  /**
10
10
  * @typedef {object} OfferHelperConfig
@@ -19,7 +19,7 @@ import { AmountMath } from '@agoric/ertp/src/amountMath.js';
19
19
  * @param {ERef<any>} walletAdmin - an internal type of the
20
20
  * wallet, not defined here
21
21
  * @param {ERef<ZoeService>} zoe
22
- * @param {ERef<Purse<'set'>>} zoeInvitationPurse
22
+ * @param {ERef<Purse<'set', InvitationDetails>>} zoeInvitationPurse
23
23
  */
24
24
  export const makeOfferAndFindInvitationAmount = (
25
25
  walletAdmin,
@@ -28,7 +28,7 @@ export const makeOfferAndFindInvitationAmount = (
28
28
  ) => {
29
29
  /**
30
30
  * @param {Record<string, any>} invitationDetailsCriteria
31
- * @returns {Promise<Amount<'set'>>} invitationAmount
31
+ * @returns {Promise<InvitationAmount>} invitationAmount
32
32
  */
33
33
  const findInvitationAmount = async invitationDetailsCriteria => {
34
34
  const invitationAmount = await E(zoeInvitationPurse).getCurrentAmount();
@@ -114,9 +114,8 @@ export const makeOfferAndFindInvitationAmount = (
114
114
  } = config;
115
115
 
116
116
  const invitationToUse = getInvitation(invitation, partialInvitationDetails);
117
- const invitationDetails = await E(zoe).getInvitationDetails(
118
- invitationToUse,
119
- );
117
+ const invitationDetails =
118
+ await E(zoe).getInvitationDetails(invitationToUse);
120
119
  const payments = withdrawPayments(proposal, paymentsWithPursePetnames);
121
120
 
122
121
  const seat = E(zoe).offer(invitationToUse, proposal, payments);
package/src/saveIssuer.js CHANGED
@@ -1,12 +1,12 @@
1
1
  // @ts-check
2
2
  import { E } from '@endo/far';
3
3
 
4
- /** @typedef {import('@agoric/deploy-script-support/src/externalTypes').Petname} Petname */
4
+ /** @import {Petname} from '@agoric/deploy-script-support/src/externalTypes.js' */
5
5
 
6
6
  /**
7
7
  * @param {ERef<any>} walletAdmin - an internal type of the
8
8
  * wallet, not defined here
9
- * @param {ERef<import('./startInstance').IssuerManager>} issuerManager
9
+ * @param {ERef<import('./startInstance.js').IssuerManager>} issuerManager
10
10
  */
11
11
  export const makeSaveIssuer = (walletAdmin, issuerManager) => {
12
12
  /**
@@ -2,7 +2,7 @@
2
2
  import { assert } from '@agoric/assert';
3
3
  import { E, passStyleOf } from '@endo/far';
4
4
 
5
- /** @typedef {import('@agoric/deploy-script-support/src/externalTypes').Petname} Petname */
5
+ /** @import {Petname} from '@agoric/deploy-script-support/src/externalTypes.js' */
6
6
 
7
7
  /**
8
8
  * @template T
@@ -100,9 +100,8 @@ export const makeStartInstance = (
100
100
  `creatorInvitation must be defined to be deposited`,
101
101
  );
102
102
  console.log(`-- Adding Invitation for: ${instancePetname}`);
103
- const invitationAmount = await E(zoeInvitationPurse).deposit(
104
- creatorInvitation,
105
- );
103
+ const invitationAmount =
104
+ await E(zoeInvitationPurse).deposit(creatorInvitation);
106
105
  console.log(`- Created Contract Instance: ${instancePetname}`);
107
106
 
108
107
  const creatorInvitationDetails = invitationAmount.value[0];
@@ -5,28 +5,48 @@ import { deeplyFulfilled } from '@endo/marshal';
5
5
 
6
6
  import { createBundles } from '@agoric/internal/src/node/createBundles.js';
7
7
  import { defangAndTrim, mergePermits, stringify } from './code-gen.js';
8
- import { makeCoreProposalBehavior, permits } from './coreProposalBehavior.js';
8
+ import {
9
+ makeCoreProposalBehavior,
10
+ permits as defaultPermits,
11
+ } from './coreProposalBehavior.js';
9
12
 
10
13
  /**
11
- * @callback WriteCoreProposal
12
- * @param {string} filePrefix
13
- * @param {import('./externalTypes.js').ProposalBuilder} proposalBuilder
14
- * @returns {Promise<void>}
14
+ * @import {CoreEvalDescriptor} from './externalTypes.js';
15
+ */
16
+
17
+ /**
18
+ * @typedef CoreEvalPlan
19
+ * @property {string} name
20
+ * @property {string} permit
21
+ * @property {string} script
22
+ * @property {{entrypoint: string, bundleID: string, fileName: string}[]} bundles
23
+ */
24
+
25
+ /**
26
+ * @callback WriteCoreEval write to disk the files needed for a CoreEval (js code to`${filePrefix}.js`, permits to `${filePrefix}-permit.json`, an overall
27
+ * summary to `${filePrefix}-plan.json), plus whatever bundles bundles the code loads)
28
+ * see CoreEval in {@link '/golang/cosmos/x/swingset/types/swingset.pb.go'}
29
+ * @param {string} filePrefix name on disk
30
+ * @param {import('./externalTypes.js').CoreEvalBuilder} builder
31
+ * @returns {Promise<CoreEvalPlan>}
15
32
  */
16
33
 
17
34
  /**
18
35
  *
19
36
  * @param {*} homeP
20
- * @param {*} endowments
37
+ * @param {{
38
+ * bundleSource: (path: string) => Promise<NodeModule>,
39
+ * pathResolve: (path: string) => string,
40
+ * }} endowments
21
41
  * @param {{
22
42
  * getBundlerMaker: () => Promise<import('./getBundlerMaker.js').BundleMaker>,
23
43
  * getBundleSpec: (...args: *) => Promise<import('./externalTypes.js').ManifestBundleRef>,
24
44
  * log?: typeof console.log,
25
45
  * writeFile?: typeof fs.promises.writeFile
26
46
  * }} io
27
- * @returns {WriteCoreProposal}
47
+ * @returns {WriteCoreEval}
28
48
  */
29
- export const makeWriteCoreProposal = (
49
+ export const makeWriteCoreEval = (
30
50
  homeP,
31
51
  endowments,
32
52
  {
@@ -49,16 +69,21 @@ export const makeWriteCoreProposal = (
49
69
  return bundlerCache;
50
70
  };
51
71
 
52
- const mergeProposalPermit = async (proposal, additionalPermits) => {
72
+ /**
73
+ *
74
+ * @param {CoreEvalDescriptor} coreEval
75
+ * @param {*} additionalPermits
76
+ */
77
+ const mergeEvalPermit = async (coreEval, additionalPermits) => {
53
78
  const {
54
79
  sourceSpec,
55
80
  getManifestCall: [manifestGetterName, ...manifestGetterArgs],
56
- } = proposal;
81
+ } = coreEval;
57
82
 
58
- const proposalNS = await import(pathResolve(sourceSpec));
83
+ const moduleNamespace = await import(pathResolve(sourceSpec));
59
84
 
60
85
  // We only care about the manifest, not any restoreRef calls.
61
- const { manifest } = await proposalNS[manifestGetterName](
86
+ const { manifest } = await moduleNamespace[manifestGetterName](
62
87
  harden({ restoreRef: x => `restoreRef:${x}` }),
63
88
  ...manifestGetterArgs,
64
89
  );
@@ -74,8 +99,8 @@ export const makeWriteCoreProposal = (
74
99
  /** @type {Promise<import('./externalTypes.js').ManifestBundleRef | undefined>} */ (
75
100
  Promise.resolve()
76
101
  );
77
- /** @type {WriteCoreProposal} */
78
- const writeCoreProposal = async (filePrefix, proposalBuilder) => {
102
+ /** @type {WriteCoreEval} */
103
+ const writeCoreEval = async (filePrefix, builder) => {
79
104
  /**
80
105
  *
81
106
  * @param {string} entrypoint
@@ -131,23 +156,23 @@ export const makeWriteCoreProposal = (
131
156
  return harden(ref);
132
157
  };
133
158
 
134
- // Create the proposal structure.
135
- const proposal = await deeplyFulfilled(
136
- harden(proposalBuilder({ publishRef, install })),
159
+ // Create the eval structure.
160
+ const evalDescriptor = await deeplyFulfilled(
161
+ harden(builder({ publishRef, install })),
137
162
  );
138
- const { sourceSpec, getManifestCall } = proposal;
163
+ const { sourceSpec, getManifestCall } = evalDescriptor;
139
164
  // console.log('created', { filePrefix, sourceSpec, getManifestCall });
140
165
 
141
166
  // Extract the top-level permit.
142
- const { permits: proposalPermit, manifest: customManifest } =
143
- await mergeProposalPermit(proposal, permits);
167
+ const { permits: evalPermits, manifest: customManifest } =
168
+ await mergeEvalPermit(evalDescriptor, defaultPermits);
144
169
 
145
170
  // Get an install
146
171
  const manifestBundleRef = await publishRef(install(sourceSpec));
147
172
 
148
173
  // console.log('writing', { filePrefix, manifestBundleRef, sourceSpec });
149
174
  const code = `\
150
- // This is generated by writeCoreProposal; please edit!
175
+ // This is generated by writeCoreEval; please edit!
151
176
  /* eslint-disable */
152
177
 
153
178
  const manifestBundleRef = ${stringify(manifestBundleRef)};
@@ -164,21 +189,19 @@ behavior;
164
189
 
165
190
  const trimmed = defangAndTrim(code);
166
191
 
167
- const proposalPermitJsonFile = `${filePrefix}-permit.json`;
168
- log(`creating ${proposalPermitJsonFile}`);
169
- await writeFile(
170
- proposalPermitJsonFile,
171
- JSON.stringify(proposalPermit, null, 2),
172
- );
192
+ const permitFile = `${filePrefix}-permit.json`;
193
+ log(`creating ${permitFile}`);
194
+ await writeFile(permitFile, JSON.stringify(evalPermits, null, 2));
173
195
 
174
- const proposalJsFile = `${filePrefix}.js`;
175
- log(`creating ${proposalJsFile}`);
176
- await writeFile(proposalJsFile, trimmed);
196
+ const codeFile = `${filePrefix}.js`;
197
+ log(`creating ${codeFile}`);
198
+ await writeFile(codeFile, trimmed);
177
199
 
200
+ /** @type {CoreEvalPlan} */
178
201
  const plan = {
179
202
  name: filePrefix,
180
- script: proposalJsFile,
181
- permit: proposalPermitJsonFile,
203
+ script: codeFile,
204
+ permit: permitFile,
182
205
  bundles,
183
206
  };
184
207
 
@@ -189,13 +212,16 @@ behavior;
189
212
 
190
213
  log(`\
191
214
  You can now run a governance submission command like:
192
- agd tx gov submit-proposal swingset-core-eval ${proposalPermitJsonFile} ${proposalJsFile} \\
193
- --title="Enable <something>" --description="Evaluate ${proposalJsFile}" --deposit=1000000ubld \\
215
+ agd tx gov submit-proposal swingset-core-eval ${permitFile} ${codeFile} \\
216
+ --title="Enable <something>" --description="Evaluate ${codeFile}" --deposit=1000000ubld \\
194
217
  --gas=auto --gas-adjustment=1.2
195
218
  Remember to install bundles before submitting the proposal:
196
219
  ${cmds.join('\n ')}
197
220
  `);
221
+ return plan;
198
222
  };
199
223
 
200
- return writeCoreProposal;
224
+ return writeCoreEval;
201
225
  };
226
+ /** @deprecated use makeWriteCoreEval */
227
+ export const makeWriteCoreProposal = makeWriteCoreEval;
package/CHANGELOG.md DELETED
@@ -1,599 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ### [0.10.4-u15.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.4-u14.1...@agoric/deploy-script-support@0.10.4-u15.0) (2024-04-20)
7
-
8
- **Note:** Version bump only for package @agoric/deploy-script-support
9
-
10
-
11
-
12
-
13
-
14
- ### [0.10.4-u14.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.4-u14.0...@agoric/deploy-script-support@0.10.4-u14.1) (2024-03-12)
15
-
16
- **Note:** Version bump only for package @agoric/deploy-script-support
17
-
18
-
19
-
20
-
21
-
22
- ### [0.10.4-u14.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.4-u13.0...@agoric/deploy-script-support@0.10.4-u14.0) (2024-02-27)
23
-
24
-
25
- ### Features
26
-
27
- * **deploy-script-support:** generalize `extractCoreProposalBundles` ([5de1e93](https://github.com/Agoric/agoric-sdk/commit/5de1e93747146a4c9cd4e3d3d77a0f43033c72fb))
28
- * **deploy-script-support:** Write out bundle file names in machine readable file ([2a68ca1](https://github.com/Agoric/agoric-sdk/commit/2a68ca148f637ca88c553b75834496ac6ebea841))
29
- * **extract-proposal:** organize proposals into steps ([eaa6b4f](https://github.com/Agoric/agoric-sdk/commit/eaa6b4fdc5c8ce5c377ac8ed2b88971f78641536))
30
- * better diagnostic for bad proposal ([19725e5](https://github.com/Agoric/agoric-sdk/commit/19725e5a132056a314d90975fffbb89053de8829))
31
-
32
-
33
-
34
- ### [0.10.4-u13.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.4-u12.0...@agoric/deploy-script-support@0.10.4-u13.0) (2023-12-07)
35
-
36
- **Note:** Version bump only for package @agoric/deploy-script-support
37
-
38
-
39
-
40
-
41
-
42
- ### [0.10.4-u12.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.4-u11wf.0...@agoric/deploy-script-support@0.10.4-u12.0) (2023-11-10)
43
-
44
- **Note:** Version bump only for package @agoric/deploy-script-support
45
-
46
-
47
-
48
-
49
-
50
- ### [0.10.4-u11wf.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.4-u11.0...@agoric/deploy-script-support@0.10.4-u11wf.0) (2023-09-23)
51
-
52
-
53
- ### Bug Fixes
54
-
55
- * **deploy-scripts-support:** correct bare module resolution ([f1e7109](https://github.com/Agoric/agoric-sdk/commit/f1e710937cd25fc261ca34c670c206fbaed583d3))
56
-
57
-
58
-
59
- ### [0.10.4-u11.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.3...@agoric/deploy-script-support@0.10.4-u11.0) (2023-08-24)
60
-
61
- **Note:** Version bump only for package @agoric/deploy-script-support
62
-
63
-
64
-
65
-
66
-
67
- ### [0.10.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.2...@agoric/deploy-script-support@0.10.3) (2023-06-09)
68
-
69
- **Note:** Version bump only for package @agoric/deploy-script-support
70
-
71
-
72
-
73
-
74
-
75
- ### [0.10.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.1...@agoric/deploy-script-support@0.10.2) (2023-06-02)
76
-
77
- **Note:** Version bump only for package @agoric/deploy-script-support
78
-
79
-
80
-
81
-
82
-
83
- ### [0.10.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.10.0...@agoric/deploy-script-support@0.10.1) (2023-05-24)
84
-
85
- **Note:** Version bump only for package @agoric/deploy-script-support
86
-
87
-
88
-
89
-
90
-
91
- ## [0.10.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.9.4...@agoric/deploy-script-support@0.10.0) (2023-05-19)
92
-
93
-
94
- ### Features
95
-
96
- * **core-proposals:** use bundle hash for label ([2eec093](https://github.com/Agoric/agoric-sdk/commit/2eec0939bd87bfcc48634ab75e2ba830cdb321e3))
97
- * **deploy-script-support:** Publish bundles to chain if possible ([e8209da](https://github.com/Agoric/agoric-sdk/commit/e8209daec69fc6fd60f5d865cf29271eb106a995))
98
- * **deploy-script-support:** reenable for `agoric run init-core.js` without `ag-solo` ([2b2bc96](https://github.com/Agoric/agoric-sdk/commit/2b2bc96780b00d9c964dba6e6c5de36acd4a83c6))
99
-
100
-
101
- ### Bug Fixes
102
-
103
- * **deploy-script-support:** avoid pulling in notifiers ([#7522](https://github.com/Agoric/agoric-sdk/issues/7522)) ([c73675d](https://github.com/Agoric/agoric-sdk/commit/c73675dad025b6600f0eafe9f8e768086e50b626))
104
- * **deploy-script-support:** update permits for `vatAdminSvc` ([73fef25](https://github.com/Agoric/agoric-sdk/commit/73fef256ab9abda1bda7e0619e8eee08c19f8883))
105
- * avoid using top-level `require` ([57ca2db](https://github.com/Agoric/agoric-sdk/commit/57ca2dbfbadb373f97d43b2fb4e90302c9149976))
106
- * change manifestInstallRef to manifestBundleRef ([4b87694](https://github.com/Agoric/agoric-sdk/commit/4b8769494eec1ce6bb5beda295389e8b982a9f37))
107
- * remove unused overridded restoreRef, fix default version ([7f1cd48](https://github.com/Agoric/agoric-sdk/commit/7f1cd488e2aa7f89473b2187016f7f0dcbc989e8))
108
- * rename makeEnactCoreProposalsFromBundleName to ..BundleRef ([7403f06](https://github.com/Agoric/agoric-sdk/commit/7403f06f58f0f50ecd154ad076a0a82317f3018b))
109
- * replace unsafe then with E.when ([#6684](https://github.com/Agoric/agoric-sdk/issues/6684)) ([d7a749e](https://github.com/Agoric/agoric-sdk/commit/d7a749eec4ddec9ba39bbc65434f03ec113cae7c))
110
- * replace zoe.install with zoe.installBundleID ([8a91b1b](https://github.com/Agoric/agoric-sdk/commit/8a91b1b06bf1a62c08156e595cf46f5194f73337)), closes [#6826](https://github.com/Agoric/agoric-sdk/issues/6826)
111
- * **deploy-script-support:** Use versioned bundleSource ([41af48e](https://github.com/Agoric/agoric-sdk/commit/41af48e0d44e0615a53d5e3fe9f019895a58f96d))
112
-
113
-
114
-
115
- ### [0.9.6](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.9.5...@agoric/deploy-script-support@0.9.6) (2023-02-17)
116
-
117
- **Note:** Version bump only for package @agoric/deploy-script-support
118
-
119
-
120
-
121
-
122
-
123
- ### [0.9.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.9.4...@agoric/deploy-script-support@0.9.5) (2022-12-14)
124
-
125
- **Note:** Version bump only for package @agoric/deploy-script-support
126
-
127
-
128
-
129
-
130
-
131
- ### [0.9.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.9.3...@agoric/deploy-script-support@0.9.4) (2022-10-18)
132
-
133
- **Note:** Version bump only for package @agoric/deploy-script-support
134
-
135
-
136
-
137
-
138
-
139
- ### [0.9.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.9.2...@agoric/deploy-script-support@0.9.3) (2022-10-08)
140
-
141
- **Note:** Version bump only for package @agoric/deploy-script-support
142
-
143
-
144
-
145
-
146
-
147
- ### [0.9.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.9.1...@agoric/deploy-script-support@0.9.2) (2022-10-05)
148
-
149
- **Note:** Version bump only for package @agoric/deploy-script-support
150
-
151
-
152
-
153
-
154
-
155
- ### [0.9.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.9.0...@agoric/deploy-script-support@0.9.1) (2022-09-20)
156
-
157
-
158
- ### Bug Fixes
159
-
160
- * Use new `||` assert style, but when TS confused use `if` instead ([#6174](https://github.com/Agoric/agoric-sdk/issues/6174)) ([94625d3](https://github.com/Agoric/agoric-sdk/commit/94625d38c3bb5333b00a69dd3086b1ac13490f62))
161
- * **deploy-script-helpers:** Update core proposal behavior test ([abeb52e](https://github.com/Agoric/agoric-sdk/commit/abeb52e6bd121d508b72662135926a1b405fc9c3))
162
-
163
-
164
-
165
- ## [0.9.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.8.0...@agoric/deploy-script-support@0.9.0) (2022-05-28)
166
-
167
-
168
- ### ⚠ BREAKING CHANGES
169
-
170
- * **extract-proposal:** insist on an explicit `entrypoint`
171
-
172
- ### Features
173
-
174
- * **core-proposal:** provide an `overrideManifest` to make the manifest explicit ([6557ecf](https://github.com/Agoric/agoric-sdk/commit/6557ecfb965fd668cf9538132e63a0419b86bd54))
175
- * **extract-proposal:** allow specifying module, entrypoint, args ([af712eb](https://github.com/Agoric/agoric-sdk/commit/af712eb979483e14bae765a018911b018d76b973))
176
-
177
-
178
- ### Bug Fixes
179
-
180
- * **extract-proposal:** insist on an explicit `entrypoint` ([02df38b](https://github.com/Agoric/agoric-sdk/commit/02df38b8a5ef96a78fd6ff7f5c20ffcdba161038))
181
-
182
-
183
-
184
- ## [0.8.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.7.0...@agoric/deploy-script-support@0.8.0) (2022-05-09)
185
-
186
-
187
- ### Features
188
-
189
- * **deploy-script-support:** persist option for installInPieces ([8241a0e](https://github.com/Agoric/agoric-sdk/commit/8241a0e0977a1ef2bbfd7e68197cb969bc80e1f1))
190
-
191
-
192
- ### Bug Fixes
193
-
194
- * **deploy-script-support:** permit agoricNamesAdmin for installation ([49b5e89](https://github.com/Agoric/agoric-sdk/commit/49b5e89e287b9f5e8ccc5cb7c26dea53c09c42de))
195
- * **extract-proposal:** avoid reiterating bundleHandles ([9a0886d](https://github.com/Agoric/agoric-sdk/commit/9a0886d7d96699cf5698bbe81820626e3ee8c64b))
196
- * **extract-proposal:** coreProposal source paths were leaked onto the chain ([acc6672](https://github.com/Agoric/agoric-sdk/commit/acc66729cfa8459ef549b96f6fbeed1d55a4be3f))
197
-
198
-
199
-
200
- ## [0.7.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.6.3...@agoric/deploy-script-support@0.7.0) (2022-04-18)
201
-
202
-
203
- ### ⚠ BREAKING CHANGES
204
-
205
- * consistent Node engine requirement (>=14.15.0)
206
-
207
- ### Features
208
-
209
- * **build-bundles:** create source bundles with helper ([732292a](https://github.com/Agoric/agoric-sdk/commit/732292acf817ab774dea3d15209c0b5a2b2e326d))
210
- * **deploy-script-support:** `getBundlerMaker` helper ([542786d](https://github.com/Agoric/agoric-sdk/commit/542786dfc7ef67ed718d8f1548d13dd45dbfc34f))
211
- * **deploy-script-support:** `installInPieces` interim implementation ([3db8233](https://github.com/Agoric/agoric-sdk/commit/3db823391f39d23e4dc42d8ca256bf9fa28466e7))
212
- * **deploy-script-support:** first cut at `writeCoreProposal` ([6129b38](https://github.com/Agoric/agoric-sdk/commit/6129b38201f80a4e195d4675981e693c06c8c547))
213
- * **deploy-script-support:** more `createBundles` work ([009b49f](https://github.com/Agoric/agoric-sdk/commit/009b49fc133ca9f6740bdebaec9baf7c549aec1f))
214
- * **deploy-script-support:** shell out to `bundle-source` ([18e8c88](https://github.com/Agoric/agoric-sdk/commit/18e8c88223da0f4ef6998e0bc0e39a7979dd317b))
215
- * **deploy-script-suppport:** e2e `writeCoreProposal` ([88a0cf7](https://github.com/Agoric/agoric-sdk/commit/88a0cf70c9078f0e9e2c46a6cc30bcb736e6e379))
216
- * implement the durable kind API ([56bad98](https://github.com/Agoric/agoric-sdk/commit/56bad985275787d18c34ac14b377a4d0348d699b)), closes [#4495](https://github.com/Agoric/agoric-sdk/issues/4495)
217
-
218
-
219
- ### Bug Fixes
220
-
221
- * **deploy-script-support:** `makeEnactCoreProposals` for bootstrap ([cbff644](https://github.com/Agoric/agoric-sdk/commit/cbff644eb379fd61f38a64cd09140439551a6e80))
222
- * **writeCoreProposal:** linearize the `installInPieces` calls ([a92a22a](https://github.com/Agoric/agoric-sdk/commit/a92a22a124e5cf18b677b3067bc59aa508e9d5f1))
223
- * **writeCoreProposal:** merge permits and less ambient authority ([f34f7b7](https://github.com/Agoric/agoric-sdk/commit/f34f7b72aa2827e0f12ba46a8500d3b259c910f9))
224
-
225
-
226
- ### Miscellaneous Chores
227
-
228
- * consistent Node engine requirement (>=14.15.0) ([ddc40fa](https://github.com/Agoric/agoric-sdk/commit/ddc40fa525f845ed900512c38b99f01458a3d131))
229
-
230
-
231
-
232
- ### [0.6.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.6.2...@agoric/deploy-script-support@0.6.3) (2022-02-24)
233
-
234
-
235
- ### Features
236
-
237
- * overhaul the virtual object API ([e40674b](https://github.com/Agoric/agoric-sdk/commit/e40674b0b19f29adde2f5e6a460bafb7340d42b6)), closes [#4606](https://github.com/Agoric/agoric-sdk/issues/4606)
238
-
239
-
240
-
241
- ### [0.6.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.6.1...@agoric/deploy-script-support@0.6.2) (2022-02-21)
242
-
243
-
244
- ### Features
245
-
246
- * implement persistent stores ([e1050b0](https://github.com/Agoric/agoric-sdk/commit/e1050b010e095b23547a38d48a12e5c8841a7466))
247
-
248
-
249
- ### Bug Fixes
250
-
251
- * Enhance TypeScript node_modules traversal depth ([000f738](https://github.com/Agoric/agoric-sdk/commit/000f73850d46dc7272b2399c06ad774dd3b8fe6e))
252
-
253
-
254
-
255
- ### [0.6.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.6.0...@agoric/deploy-script-support@0.6.1) (2021-12-22)
256
-
257
- **Note:** Version bump only for package @agoric/deploy-script-support
258
-
259
-
260
-
261
-
262
-
263
- ## [0.6.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.5.5...@agoric/deploy-script-support@0.6.0) (2021-12-02)
264
-
265
-
266
- ### ⚠ BREAKING CHANGES
267
-
268
- * **ERTP:** NatValues now only accept bigints, lower-case amountMath is removed, and AmountMath methods always follow the order of: brand, value
269
-
270
- * chore: fix up INPUT_VALIDATON.md
271
-
272
- * chore: address PR comments
273
-
274
- ### Miscellaneous Chores
275
-
276
- * **ERTP:** additional input validation and clean up ([#3892](https://github.com/Agoric/agoric-sdk/issues/3892)) ([067ea32](https://github.com/Agoric/agoric-sdk/commit/067ea32b069596202d7f8e7c5e09d5ea7821f6b2))
277
-
278
-
279
-
280
- ### [0.5.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.5.4...@agoric/deploy-script-support@0.5.5) (2021-10-13)
281
-
282
- **Note:** Version bump only for package @agoric/deploy-script-support
283
-
284
-
285
-
286
-
287
-
288
- ### [0.5.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.5.3...@agoric/deploy-script-support@0.5.4) (2021-09-23)
289
-
290
- **Note:** Version bump only for package @agoric/deploy-script-support
291
-
292
-
293
-
294
-
295
-
296
- ### [0.5.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.5.2...@agoric/deploy-script-support@0.5.3) (2021-09-15)
297
-
298
- **Note:** Version bump only for package @agoric/deploy-script-support
299
-
300
-
301
-
302
-
303
-
304
- ### [0.5.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.5.1...@agoric/deploy-script-support@0.5.2) (2021-08-21)
305
-
306
- **Note:** Version bump only for package @agoric/deploy-script-support
307
-
308
-
309
-
310
-
311
-
312
- ### [0.5.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.5.0...@agoric/deploy-script-support@0.5.1) (2021-08-18)
313
-
314
- **Note:** Version bump only for package @agoric/deploy-script-support
315
-
316
-
317
-
318
-
319
-
320
- ## [0.5.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.4.1...@agoric/deploy-script-support@0.5.0) (2021-08-17)
321
-
322
-
323
- ### ⚠ BREAKING CHANGES
324
-
325
- * make the run mint within Zoe, and give only the treasury the ability to create a ZCFMint with it
326
-
327
- * chore: change 'makeZoe' to 'makeZoeKit'
328
-
329
- * chore: add "shutdownZoeVat" argument to Zoe, and pass it to `makeIssuerKit` for invitation issuerKit and fee issuerKit
330
-
331
- * chore: manually lint-fix install-on-chain.js
332
-
333
- See https://github.com/Agoric/agoric-sdk/issues/3672 for the issue to fix the root problem
334
-
335
- * BREAKING CHANGE: create the RUN Mint within Zoe (#3647) ([48762aa](https://github.com/Agoric/agoric-sdk/commit/48762aa83a30eaa0a14b2fd87777456758594262)), closes [#3647](https://github.com/Agoric/agoric-sdk/issues/3647)
336
-
337
-
338
-
339
- ### [0.4.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.4.0...@agoric/deploy-script-support@0.4.1) (2021-08-16)
340
-
341
- **Note:** Version bump only for package @agoric/deploy-script-support
342
-
343
-
344
-
345
-
346
-
347
- ## [0.4.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.18...@agoric/deploy-script-support@0.4.0) (2021-08-15)
348
-
349
-
350
- ### ⚠ BREAKING CHANGES
351
-
352
- * **deploy-script-support:** Convert RESM to NESM (breaking)
353
-
354
- ### Code Refactoring
355
-
356
- * **deploy-script-support:** Convert RESM to NESM (breaking) ([0d59ac2](https://github.com/Agoric/agoric-sdk/commit/0d59ac2a1f748d8e3cc87b8cbb221b0188d729cc))
357
-
358
- ### 0.26.10 (2021-07-28)
359
-
360
-
361
-
362
- ## [0.3.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.18...@agoric/deploy-script-support@0.3.0) (2021-08-14)
363
-
364
-
365
- ### ⚠ BREAKING CHANGES
366
-
367
- * **deploy-script-support:** Convert RESM to NESM (breaking)
368
-
369
- ### Code Refactoring
370
-
371
- * **deploy-script-support:** Convert RESM to NESM (breaking) ([0d59ac2](https://github.com/Agoric/agoric-sdk/commit/0d59ac2a1f748d8e3cc87b8cbb221b0188d729cc))
372
-
373
- ### 0.26.10 (2021-07-28)
374
-
375
-
376
-
377
- ### [0.2.19](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.18...@agoric/deploy-script-support@0.2.19) (2021-07-28)
378
-
379
- **Note:** Version bump only for package @agoric/deploy-script-support
380
-
381
-
382
-
383
-
384
-
385
- ### [0.2.18](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.17...@agoric/deploy-script-support@0.2.18) (2021-07-01)
386
-
387
- **Note:** Version bump only for package @agoric/deploy-script-support
388
-
389
-
390
-
391
-
392
-
393
- ### [0.2.17](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.16...@agoric/deploy-script-support@0.2.17) (2021-07-01)
394
-
395
- **Note:** Version bump only for package @agoric/deploy-script-support
396
-
397
-
398
-
399
-
400
-
401
- ### [0.2.16](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.15...@agoric/deploy-script-support@0.2.16) (2021-06-28)
402
-
403
- **Note:** Version bump only for package @agoric/deploy-script-support
404
-
405
-
406
-
407
-
408
-
409
- ### [0.2.15](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.14...@agoric/deploy-script-support@0.2.15) (2021-06-25)
410
-
411
- **Note:** Version bump only for package @agoric/deploy-script-support
412
-
413
-
414
-
415
-
416
-
417
- ### [0.2.14](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.13...@agoric/deploy-script-support@0.2.14) (2021-06-24)
418
-
419
- **Note:** Version bump only for package @agoric/deploy-script-support
420
-
421
-
422
-
423
-
424
-
425
- ### [0.2.13](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.12...@agoric/deploy-script-support@0.2.13) (2021-06-24)
426
-
427
- **Note:** Version bump only for package @agoric/deploy-script-support
428
-
429
-
430
-
431
-
432
-
433
- ### [0.2.12](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.11...@agoric/deploy-script-support@0.2.12) (2021-06-23)
434
-
435
-
436
- ### Bug Fixes
437
-
438
- * **deploy-script-support:** Relax constraint on repository clone path ([6ec7a4d](https://github.com/Agoric/agoric-sdk/commit/6ec7a4d440cb60a54dbcd86c5e359bac1689e672))
439
-
440
-
441
-
442
- ### [0.2.11](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.10...@agoric/deploy-script-support@0.2.11) (2021-06-16)
443
-
444
- **Note:** Version bump only for package @agoric/deploy-script-support
445
-
446
-
447
-
448
-
449
-
450
- ### [0.2.10](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.9...@agoric/deploy-script-support@0.2.10) (2021-06-15)
451
-
452
-
453
- ### Bug Fixes
454
-
455
- * Pin ESM to forked version ([54dbb55](https://github.com/Agoric/agoric-sdk/commit/54dbb55d64d7ff7adb395bc4bd9d1461dd2d3c17))
456
-
457
-
458
-
459
- ## [0.2.9](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.8...@agoric/deploy-script-support@0.2.9) (2021-05-10)
460
-
461
- **Note:** Version bump only for package @agoric/deploy-script-support
462
-
463
-
464
-
465
-
466
-
467
- ## [0.2.8](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.7...@agoric/deploy-script-support@0.2.8) (2021-05-05)
468
-
469
- **Note:** Version bump only for package @agoric/deploy-script-support
470
-
471
-
472
-
473
-
474
-
475
- ## [0.2.7](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.6...@agoric/deploy-script-support@0.2.7) (2021-05-05)
476
-
477
-
478
- ### Bug Fixes
479
-
480
- * **deploy-script-support:** update to new vats package ([9de6ed1](https://github.com/Agoric/agoric-sdk/commit/9de6ed12dca1346912bb3255bbb48601ac09693e))
481
- * settle REMOTE_STYLE name ([#2900](https://github.com/Agoric/agoric-sdk/issues/2900)) ([3dc6638](https://github.com/Agoric/agoric-sdk/commit/3dc66385b85cb3e8a1056b8d6e64cd3e448c041f))
482
-
483
-
484
-
485
-
486
-
487
- ## [0.2.6](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.5...@agoric/deploy-script-support@0.2.6) (2021-04-22)
488
-
489
- **Note:** Version bump only for package @agoric/deploy-script-support
490
-
491
-
492
-
493
-
494
-
495
- ## [0.2.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.4...@agoric/deploy-script-support@0.2.5) (2021-04-18)
496
-
497
- **Note:** Version bump only for package @agoric/deploy-script-support
498
-
499
-
500
-
501
-
502
-
503
- ## [0.2.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.3...@agoric/deploy-script-support@0.2.4) (2021-04-16)
504
-
505
- **Note:** Version bump only for package @agoric/deploy-script-support
506
-
507
-
508
-
509
-
510
-
511
- ## [0.2.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.2...@agoric/deploy-script-support@0.2.3) (2021-04-14)
512
-
513
- **Note:** Version bump only for package @agoric/deploy-script-support
514
-
515
-
516
-
517
-
518
-
519
- ## [0.2.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.1...@agoric/deploy-script-support@0.2.2) (2021-04-13)
520
-
521
- **Note:** Version bump only for package @agoric/deploy-script-support
522
-
523
-
524
-
525
-
526
-
527
- ## [0.2.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.2.0...@agoric/deploy-script-support@0.2.1) (2021-04-07)
528
-
529
- **Note:** Version bump only for package @agoric/deploy-script-support
530
-
531
-
532
-
533
-
534
-
535
- # [0.2.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.1.1...@agoric/deploy-script-support@0.2.0) (2021-04-06)
536
-
537
-
538
- ### Bug Fixes
539
-
540
- * Many more tests use ses-ava ([#2733](https://github.com/Agoric/agoric-sdk/issues/2733)) ([d1e0f0f](https://github.com/Agoric/agoric-sdk/commit/d1e0f0fef8251f014b96ca7f3975efd37e1925f8))
541
- * update to depend on ses 0.12.5 ([#2718](https://github.com/Agoric/agoric-sdk/issues/2718)) ([08dbe0d](https://github.com/Agoric/agoric-sdk/commit/08dbe0db5ce06944dc92c710865e441a60b31b5b))
542
- * use ses-ava in SwingSet where possible ([#2709](https://github.com/Agoric/agoric-sdk/issues/2709)) ([85b674e](https://github.com/Agoric/agoric-sdk/commit/85b674e7942443219fa9828841cc7bd8ef909b47))
543
-
544
-
545
- ### Features
546
-
547
- * more logging for deploy helpers ([#2744](https://github.com/Agoric/agoric-sdk/issues/2744)) ([fe459fb](https://github.com/Agoric/agoric-sdk/commit/fe459fb6bd47638a2c3cb72c1150762fcce844c8))
548
-
549
-
550
-
551
-
552
-
553
- ## [0.1.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.1.0...@agoric/deploy-script-support@0.1.1) (2021-03-24)
554
-
555
-
556
- ### Bug Fixes
557
-
558
- * deploy-script-support tests ([#2677](https://github.com/Agoric/agoric-sdk/issues/2677)) ([0d1b1de](https://github.com/Agoric/agoric-sdk/commit/0d1b1deaffba124457ab50377e781b2185cc3098))
559
-
560
-
561
-
562
-
563
-
564
- # [0.1.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.0.3...@agoric/deploy-script-support@0.1.0) (2021-03-16)
565
-
566
-
567
- ### Bug Fixes
568
-
569
- * make separate 'test:xs' target, remove XS from 'test' target ([b9c1a69](https://github.com/Agoric/agoric-sdk/commit/b9c1a6987093fc8e09e8aba7acd2a1618413bac8)), closes [#2647](https://github.com/Agoric/agoric-sdk/issues/2647)
570
-
571
-
572
- ### Features
573
-
574
- * add static amountMath. Backwards compatible with old amountMath ([#2561](https://github.com/Agoric/agoric-sdk/issues/2561)) ([1620307](https://github.com/Agoric/agoric-sdk/commit/1620307ee1b45033032617cc14dfabfb338b0dc2))
575
-
576
-
577
-
578
-
579
-
580
- ## [0.0.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/deploy-script-support@0.0.2...@agoric/deploy-script-support@0.0.3) (2021-02-22)
581
-
582
- **Note:** Version bump only for package @agoric/deploy-script-support
583
-
584
-
585
-
586
-
587
-
588
- ## 0.0.2 (2021-02-16)
589
-
590
-
591
- ### Bug Fixes
592
-
593
- * review comments ([7db7e5c](https://github.com/Agoric/agoric-sdk/commit/7db7e5c4c569dfedff8d748dd58893218b0a2458))
594
-
595
-
596
-
597
-
598
-
599
- # Change Log
package/exported.js DELETED
@@ -1,3 +0,0 @@
1
- import '@endo/bundle-source/exported.js';
2
-
3
- import './src/externalTypes.js';