agoric 0.21.2-dev-4e35598.0 → 0.21.2-dev-59858c6.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,12 +1,12 @@
1
1
  {
2
2
  "name": "agoric",
3
- "version": "0.21.2-dev-4e35598.0+4e35598",
3
+ "version": "0.21.2-dev-59858c6.0+59858c6",
4
4
  "description": "Manage the Agoric Javascript smart contract platform",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
7
7
  "bin": {
8
- "agoric": "src/entrypoint.js",
9
- "agops": "src/bin-agops.js"
8
+ "agops": "src/bin-agops.js",
9
+ "agoric": "src/entrypoint.js"
10
10
  },
11
11
  "exports": {
12
12
  "./src/entrypoint.js": "./src/entrypoint.js",
@@ -25,33 +25,33 @@
25
25
  "test:xs": "exit 0",
26
26
  "integration-test": "ava --config .ava-integration-test.config.js",
27
27
  "lint-fix": "yarn lint:eslint --fix",
28
- "lint": "run-s --continue-on-error lint:*",
29
- "lint:types": "tsc",
30
- "lint:eslint": "eslint ."
28
+ "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
29
+ "lint:types": "yarn run -T tsc",
30
+ "lint:eslint": "yarn run -T eslint ."
31
31
  },
32
32
  "devDependencies": {
33
- "@agoric/cosmic-swingset": "0.41.4-dev-4e35598.0+4e35598",
34
- "@agoric/deploy-script-support": "0.10.4-dev-4e35598.0+4e35598",
33
+ "@agoric/cosmic-swingset": "0.41.4-dev-59858c6.0+59858c6",
34
+ "@agoric/deploy-script-support": "0.10.4-dev-59858c6.0+59858c6",
35
35
  "ava": "^5.3.0",
36
36
  "c8": "^10.1.2"
37
37
  },
38
38
  "dependencies": {
39
- "@agoric/access-token": "0.4.22-dev-4e35598.0+4e35598",
40
- "@agoric/cache": "0.3.3-dev-4e35598.0+4e35598",
41
- "@agoric/casting": "0.4.3-dev-4e35598.0+4e35598",
42
- "@agoric/client-utils": "0.1.1-dev-4e35598.0+4e35598",
43
- "@agoric/cosmic-proto": "0.4.1-dev-4e35598.0+4e35598",
44
- "@agoric/ertp": "0.16.3-dev-4e35598.0+4e35598",
45
- "@agoric/governance": "0.10.4-dev-4e35598.0+4e35598",
46
- "@agoric/inter-protocol": "0.16.2-dev-4e35598.0+4e35598",
47
- "@agoric/internal": "0.3.3-dev-4e35598.0+4e35598",
48
- "@agoric/network": "0.1.1-dev-4e35598.0+4e35598",
49
- "@agoric/smart-wallet": "0.5.4-dev-4e35598.0+4e35598",
50
- "@agoric/store": "0.9.3-dev-4e35598.0+4e35598",
51
- "@agoric/swingset-vat": "0.32.3-dev-4e35598.0+4e35598",
52
- "@agoric/vats": "0.15.2-dev-4e35598.0+4e35598",
53
- "@agoric/zoe": "0.26.3-dev-4e35598.0+4e35598",
54
- "@agoric/zone": "0.2.3-dev-4e35598.0+4e35598",
39
+ "@agoric/access-token": "0.4.22-dev-59858c6.0+59858c6",
40
+ "@agoric/cache": "0.3.3-dev-59858c6.0+59858c6",
41
+ "@agoric/casting": "0.4.3-dev-59858c6.0+59858c6",
42
+ "@agoric/client-utils": "0.1.1-dev-59858c6.0+59858c6",
43
+ "@agoric/cosmic-proto": "0.4.1-dev-59858c6.0+59858c6",
44
+ "@agoric/ertp": "0.16.3-dev-59858c6.0+59858c6",
45
+ "@agoric/governance": "0.10.4-dev-59858c6.0+59858c6",
46
+ "@agoric/inter-protocol": "0.16.2-dev-59858c6.0+59858c6",
47
+ "@agoric/internal": "0.3.3-dev-59858c6.0+59858c6",
48
+ "@agoric/network": "0.1.1-dev-59858c6.0+59858c6",
49
+ "@agoric/smart-wallet": "0.5.4-dev-59858c6.0+59858c6",
50
+ "@agoric/store": "0.9.3-dev-59858c6.0+59858c6",
51
+ "@agoric/swingset-vat": "0.32.3-dev-59858c6.0+59858c6",
52
+ "@agoric/vats": "0.15.2-dev-59858c6.0+59858c6",
53
+ "@agoric/zoe": "0.26.3-dev-59858c6.0+59858c6",
54
+ "@agoric/zone": "0.2.3-dev-59858c6.0+59858c6",
55
55
  "@cosmjs/crypto": "^0.33.0",
56
56
  "@cosmjs/encoding": "^0.33.0",
57
57
  "@cosmjs/math": "^0.33.0",
@@ -101,5 +101,5 @@
101
101
  "typeCoverage": {
102
102
  "atLeast": 79.15
103
103
  },
104
- "gitHead": "4e35598f3381fbd4515b86d3e20976bb91cab43a"
104
+ "gitHead": "59858c604ef933b32b9f899dfac62519e4d2d619"
105
105
  }
@@ -108,12 +108,30 @@ export const gettingStartedWorkflowTest = async (t, options = {}) => {
108
108
  });
109
109
  }
110
110
 
111
- function yarn(args) {
112
- return pspawnStdout('yarn', args, {
111
+ /**
112
+ * @param {string[]} args
113
+ * @returns {{childProcess?: import('child_process').ChildProcess} & Promise<void>}
114
+ */
115
+ function yarn(...args) {
116
+ const ps = pspawnStdout('yarn', args, {
113
117
  stdio: ['ignore', 'pipe', 'inherit'],
114
118
  env: { ...process.env },
115
119
  detached: true,
116
120
  });
121
+ /** @type {{childProcess?: import('child_process').ChildProcess} & Promise<void>} */
122
+ const p = new Promise((resolve, reject) => {
123
+ ps.then(code => {
124
+ if (code !== 0) {
125
+ reject(
126
+ new Error(`yarn ${args.join(' ')} failed with exit code ${code}`),
127
+ );
128
+ } else {
129
+ resolve();
130
+ }
131
+ }).catch(reject);
132
+ });
133
+ p.childProcess = ps.childProcess;
134
+ return p;
117
135
  }
118
136
 
119
137
  const olddir = process.cwd();
@@ -170,12 +188,12 @@ export const gettingStartedWorkflowTest = async (t, options = {}) => {
170
188
  } else {
171
189
  // ==============
172
190
  // yarn install
173
- t.is(await yarn(['install', ...installOptions]), 0, 'yarn install works');
191
+ await yarn('install', ...installOptions);
174
192
  }
175
193
 
176
194
  // ==============
177
195
  // yarn start:docker
178
- t.is(await yarn(['start:docker']), 0, 'yarn start:docker works');
196
+ await yarn('start:docker');
179
197
 
180
198
  // ==============
181
199
  // wait for the chain to start
@@ -205,11 +223,11 @@ export const gettingStartedWorkflowTest = async (t, options = {}) => {
205
223
 
206
224
  // ==============
207
225
  // yarn start:contract
208
- t.is(await yarn(['start:contract']), 0, 'yarn start:contract works');
226
+ await yarn('start:contract');
209
227
 
210
228
  // ==============
211
229
  // yarn start:ui
212
- const startUiP = yarn(['start:ui']);
230
+ const startUiP = yarn('start:ui');
213
231
  finalizers.push(() => pkill(startUiP.childProcess, 'SIGINT'));
214
232
  const uiListening = makePromiseKit();
215
233
  let retries = 0;