agoric 0.21.2-dev-d8a109e.0 → 0.21.2-dev-963ebe1.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 +20 -20
- package/src/commands/oracle.js +9 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agoric",
|
|
3
|
-
"version": "0.21.2-dev-
|
|
3
|
+
"version": "0.21.2-dev-963ebe1.0+963ebe1",
|
|
4
4
|
"description": "Manage the Agoric Javascript smart contract platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.js",
|
|
@@ -29,29 +29,29 @@
|
|
|
29
29
|
"lint:eslint": "eslint ."
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@agoric/cosmic-swingset": "0.41.4-dev-
|
|
33
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
32
|
+
"@agoric/cosmic-swingset": "0.41.4-dev-963ebe1.0+963ebe1",
|
|
33
|
+
"@agoric/deploy-script-support": "0.10.4-dev-963ebe1.0+963ebe1",
|
|
34
34
|
"ava": "^5.3.0",
|
|
35
35
|
"c8": "^10.1.2",
|
|
36
36
|
"dd-trace": "^4.11.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@agoric/access-token": "0.4.22-dev-
|
|
40
|
-
"@agoric/cache": "0.3.3-dev-
|
|
41
|
-
"@agoric/casting": "0.4.3-dev-
|
|
42
|
-
"@agoric/client-utils": "0.1.1-dev-
|
|
43
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
44
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
45
|
-
"@agoric/governance": "0.10.4-dev-
|
|
46
|
-
"@agoric/inter-protocol": "0.16.2-dev-
|
|
47
|
-
"@agoric/internal": "0.3.3-dev-
|
|
48
|
-
"@agoric/network": "0.1.1-dev-
|
|
49
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-dev-
|
|
51
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
52
|
-
"@agoric/vats": "0.15.2-dev-
|
|
53
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
54
|
-
"@agoric/zone": "0.2.3-dev-
|
|
39
|
+
"@agoric/access-token": "0.4.22-dev-963ebe1.0+963ebe1",
|
|
40
|
+
"@agoric/cache": "0.3.3-dev-963ebe1.0+963ebe1",
|
|
41
|
+
"@agoric/casting": "0.4.3-dev-963ebe1.0+963ebe1",
|
|
42
|
+
"@agoric/client-utils": "0.1.1-dev-963ebe1.0+963ebe1",
|
|
43
|
+
"@agoric/cosmic-proto": "0.4.1-dev-963ebe1.0+963ebe1",
|
|
44
|
+
"@agoric/ertp": "0.16.3-dev-963ebe1.0+963ebe1",
|
|
45
|
+
"@agoric/governance": "0.10.4-dev-963ebe1.0+963ebe1",
|
|
46
|
+
"@agoric/inter-protocol": "0.16.2-dev-963ebe1.0+963ebe1",
|
|
47
|
+
"@agoric/internal": "0.3.3-dev-963ebe1.0+963ebe1",
|
|
48
|
+
"@agoric/network": "0.1.1-dev-963ebe1.0+963ebe1",
|
|
49
|
+
"@agoric/smart-wallet": "0.5.4-dev-963ebe1.0+963ebe1",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-963ebe1.0+963ebe1",
|
|
51
|
+
"@agoric/swingset-vat": "0.32.3-dev-963ebe1.0+963ebe1",
|
|
52
|
+
"@agoric/vats": "0.15.2-dev-963ebe1.0+963ebe1",
|
|
53
|
+
"@agoric/zoe": "0.26.3-dev-963ebe1.0+963ebe1",
|
|
54
|
+
"@agoric/zone": "0.2.3-dev-963ebe1.0+963ebe1",
|
|
55
55
|
"@confio/relayer": "^0.11.3",
|
|
56
56
|
"@cosmjs/crypto": "^0.32.3",
|
|
57
57
|
"@cosmjs/encoding": "^0.32.3",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"typeCoverage": {
|
|
103
103
|
"atLeast": 77.54
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "963ebe1ef4878501359342bc3357f81fe52ce860"
|
|
106
106
|
}
|
package/src/commands/oracle.js
CHANGED
|
@@ -207,11 +207,10 @@ export const makeOracleCommand = (logger, io = {}) => {
|
|
|
207
207
|
s => s.split('.'),
|
|
208
208
|
)
|
|
209
209
|
.action(async opts => {
|
|
210
|
-
const {
|
|
211
|
-
await rpcTools();
|
|
210
|
+
const { readPublished, lookupPriceAggregatorInstance } = await rpcTools();
|
|
212
211
|
const instance = lookupPriceAggregatorInstance(opts.pair);
|
|
213
212
|
|
|
214
|
-
const offerId = await findOracleCap(instance, opts.from,
|
|
213
|
+
const offerId = await findOracleCap(instance, opts.from, readPublished);
|
|
215
214
|
if (!offerId) {
|
|
216
215
|
console.error('No continuing ids found');
|
|
217
216
|
}
|
|
@@ -272,8 +271,12 @@ export const makeOracleCommand = (logger, io = {}) => {
|
|
|
272
271
|
* }}
|
|
273
272
|
*/ { pair, keys, price },
|
|
274
273
|
) => {
|
|
275
|
-
const {
|
|
276
|
-
|
|
274
|
+
const {
|
|
275
|
+
readLatestHead,
|
|
276
|
+
readPublished,
|
|
277
|
+
networkConfig,
|
|
278
|
+
lookupPriceAggregatorInstance,
|
|
279
|
+
} = await rpcTools();
|
|
277
280
|
const wutil = await makeWalletUtils({ fetch, delay }, networkConfig);
|
|
278
281
|
const unitPrice = scaleDecimals(price);
|
|
279
282
|
|
|
@@ -338,7 +341,7 @@ export const makeOracleCommand = (logger, io = {}) => {
|
|
|
338
341
|
adminOfferIds[from] = await findOracleCap(
|
|
339
342
|
instance,
|
|
340
343
|
from,
|
|
341
|
-
|
|
344
|
+
readPublished,
|
|
342
345
|
);
|
|
343
346
|
if (!adminOfferIds[from]) {
|
|
344
347
|
console.error(
|