agoric 0.19.1-dev-fb2c249.0 → 0.19.1-dev-4a0bf28.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",
3
- "version": "0.19.1-dev-fb2c249.0+fb2c249",
3
+ "version": "0.19.1-dev-4a0bf28.0+4a0bf28",
4
4
  "description": "Manage the Agoric Javascript smart contract platform",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -24,25 +24,25 @@
24
24
  "lint:eslint": "eslint ."
25
25
  },
26
26
  "devDependencies": {
27
- "@agoric/deploy-script-support": "0.10.1-dev-fb2c249.0+fb2c249",
27
+ "@agoric/deploy-script-support": "0.10.1-dev-4a0bf28.0+4a0bf28",
28
28
  "ava": "^5.2.0",
29
29
  "c8": "^7.13.0"
30
30
  },
31
31
  "dependencies": {
32
- "@agoric/access-token": "0.4.22-dev-fb2c249.0+fb2c249",
33
- "@agoric/assert": "0.6.1-dev-fb2c249.0+fb2c249",
34
- "@agoric/cache": "0.3.1-dev-fb2c249.0+fb2c249",
35
- "@agoric/casting": "0.4.1-dev-fb2c249.0+fb2c249",
36
- "@agoric/cosmic-proto": "0.3.1-dev-fb2c249.0+fb2c249",
37
- "@agoric/ertp": "0.16.1-dev-fb2c249.0+fb2c249",
38
- "@agoric/inter-protocol": "0.14.1-dev-fb2c249.0+fb2c249",
39
- "@agoric/internal": "0.3.1-dev-fb2c249.0+fb2c249",
40
- "@agoric/smart-wallet": "0.5.1-dev-fb2c249.0+fb2c249",
41
- "@agoric/store": "0.9.1-dev-fb2c249.0+fb2c249",
42
- "@agoric/swingset-vat": "0.32.1-dev-fb2c249.0+fb2c249",
43
- "@agoric/vats": "0.14.1-dev-fb2c249.0+fb2c249",
44
- "@agoric/zoe": "0.26.1-dev-fb2c249.0+fb2c249",
45
- "@agoric/zone": "0.2.1-dev-fb2c249.0+fb2c249",
32
+ "@agoric/access-token": "0.4.22-dev-4a0bf28.0+4a0bf28",
33
+ "@agoric/assert": "0.6.1-dev-4a0bf28.0+4a0bf28",
34
+ "@agoric/cache": "0.3.1-dev-4a0bf28.0+4a0bf28",
35
+ "@agoric/casting": "0.4.1-dev-4a0bf28.0+4a0bf28",
36
+ "@agoric/cosmic-proto": "0.3.1-dev-4a0bf28.0+4a0bf28",
37
+ "@agoric/ertp": "0.16.1-dev-4a0bf28.0+4a0bf28",
38
+ "@agoric/inter-protocol": "0.14.1-dev-4a0bf28.0+4a0bf28",
39
+ "@agoric/internal": "0.3.1-dev-4a0bf28.0+4a0bf28",
40
+ "@agoric/smart-wallet": "0.5.1-dev-4a0bf28.0+4a0bf28",
41
+ "@agoric/store": "0.9.1-dev-4a0bf28.0+4a0bf28",
42
+ "@agoric/swingset-vat": "0.32.1-dev-4a0bf28.0+4a0bf28",
43
+ "@agoric/vats": "0.14.1-dev-4a0bf28.0+4a0bf28",
44
+ "@agoric/zoe": "0.26.1-dev-4a0bf28.0+4a0bf28",
45
+ "@agoric/zone": "0.2.1-dev-4a0bf28.0+4a0bf28",
46
46
  "@confio/relayer": "^0.9.0",
47
47
  "@cosmjs/crypto": "^0.30.1",
48
48
  "@cosmjs/encoding": "^0.30.1",
@@ -88,5 +88,5 @@
88
88
  "timeout": "2m",
89
89
  "workerThreads": false
90
90
  },
91
- "gitHead": "fb2c24900340da870b85f4bb1dd132d8bf97e139"
91
+ "gitHead": "4a0bf28cfbdaa4475b44332182f28ae948684f98"
92
92
  }
@@ -4,6 +4,7 @@
4
4
  /* eslint-disable func-names */
5
5
  /* global fetch */
6
6
  import { Fail } from '@agoric/assert';
7
+ import { Offers } from '@agoric/inter-protocol/src/clientSupport.js';
7
8
  import { Nat } from '@endo/nat';
8
9
  import { Command } from 'commander';
9
10
  import { inspect } from 'util';
@@ -143,19 +144,15 @@ export const makeOracleCommand = logger => {
143
144
  .requiredOption('--price <number>', 'price', Number)
144
145
  .option('--roundId <number>', 'round', Number)
145
146
  .action(async function (opts) {
147
+ const { offerId } = opts;
146
148
  const unitPrice = scaleDecimals(opts.price);
147
149
  const roundId = 'roundId' in opts ? Nat(opts.roundId) : undefined;
148
- /** @type {import('@agoric/smart-wallet/src/offers.js').OfferSpec} */
149
- const offer = {
150
- id: opts.offerId,
151
- invitationSpec: {
152
- source: 'continuing',
153
- previousOffer: opts.oracleAdminAcceptOfferId,
154
- invitationMakerName: 'PushPrice',
155
- invitationArgs: harden([{ unitPrice, roundId }]),
156
- },
157
- proposal: {},
158
- };
150
+
151
+ const offer = Offers.fluxAggregator.PushPrice(
152
+ {},
153
+ { offerId, unitPrice, roundId },
154
+ opts.oracleAdminAcceptOfferId,
155
+ );
159
156
 
160
157
  outputAction({
161
158
  method: 'executeOffer',