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 +17 -17
- package/src/commands/oracle.js +8 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agoric",
|
|
3
|
-
"version": "0.19.1-dev-
|
|
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-
|
|
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-
|
|
33
|
-
"@agoric/assert": "0.6.1-dev-
|
|
34
|
-
"@agoric/cache": "0.3.1-dev-
|
|
35
|
-
"@agoric/casting": "0.4.1-dev-
|
|
36
|
-
"@agoric/cosmic-proto": "0.3.1-dev-
|
|
37
|
-
"@agoric/ertp": "0.16.1-dev-
|
|
38
|
-
"@agoric/inter-protocol": "0.14.1-dev-
|
|
39
|
-
"@agoric/internal": "0.3.1-dev-
|
|
40
|
-
"@agoric/smart-wallet": "0.5.1-dev-
|
|
41
|
-
"@agoric/store": "0.9.1-dev-
|
|
42
|
-
"@agoric/swingset-vat": "0.32.1-dev-
|
|
43
|
-
"@agoric/vats": "0.14.1-dev-
|
|
44
|
-
"@agoric/zoe": "0.26.1-dev-
|
|
45
|
-
"@agoric/zone": "0.2.1-dev-
|
|
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": "
|
|
91
|
+
"gitHead": "4a0bf28cfbdaa4475b44332182f28ae948684f98"
|
|
92
92
|
}
|
package/src/commands/oracle.js
CHANGED
|
@@ -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
|
-
|
|
149
|
-
const offer =
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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',
|