@agoric/zoe 0.26.3-dev-4989f26.0 → 0.26.3-dev-779b73d.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/bundles/bundle-contractFacet-js-meta.json +171 -171
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +10 -10
- package/src/contractSupport/priceAuthority.d.ts.map +1 -1
- package/src/contractSupport/priceAuthority.js +1 -0
- package/src/contracts/oracle.d.ts.map +1 -1
- package/src/contracts/oracle.js +2 -0
- package/tools/fakePriceAuthority.d.ts.map +1 -1
- package/tools/fakePriceAuthority.js +0 -2
- package/tools/manualTimer.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.26.3-dev-
|
|
3
|
+
"version": "0.26.3-dev-779b73d.0+779b73d",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/assert": "0.6.1-dev-
|
|
47
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
48
|
-
"@agoric/internal": "0.3.3-dev-
|
|
49
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-dev-
|
|
51
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
52
|
-
"@agoric/time": "0.3.3-dev-
|
|
53
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
46
|
+
"@agoric/assert": "0.6.1-dev-779b73d.0+779b73d",
|
|
47
|
+
"@agoric/ertp": "0.16.3-dev-779b73d.0+779b73d",
|
|
48
|
+
"@agoric/internal": "0.3.3-dev-779b73d.0+779b73d",
|
|
49
|
+
"@agoric/notifier": "0.6.3-dev-779b73d.0+779b73d",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-779b73d.0+779b73d",
|
|
51
|
+
"@agoric/swingset-vat": "0.32.3-dev-779b73d.0+779b73d",
|
|
52
|
+
"@agoric/time": "0.3.3-dev-779b73d.0+779b73d",
|
|
53
|
+
"@agoric/vat-data": "0.5.3-dev-779b73d.0+779b73d",
|
|
54
54
|
"@endo/bundle-source": "^2.5.1",
|
|
55
55
|
"@endo/captp": "^3.1.1",
|
|
56
56
|
"@endo/eventual-send": "^0.17.2",
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"publishConfig": {
|
|
127
127
|
"access": "public"
|
|
128
128
|
},
|
|
129
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "779b73d11992c1e00cfe99bfe3444081107a34a1"
|
|
130
130
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthority.d.ts","sourceRoot":"","sources":["priceAuthority.js"],"names":[],"mappings":"AA6DA;;;;;;;;;GASG;AACH;IAR+B,WAAW,EAA/B,OAAO,KAAK,CAAC;IACiB,QAAQ,EAAtC,KAAK,SAAS,OAAO,CAAC,CAAC;IACmC,KAAK,EAA/D,KAAK,OAAO,wBAAwB,EAAE,YAAY,CAAC;IAC5B,WAAW,EAAlC,gBAAgB;IACG,aAAa,EAAhC,MAAM,KAAK,CAAC;IACO,cAAc,EAAjC,MAAM,KAAK,CAAC;IACV,iBAAiB,
|
|
1
|
+
{"version":3,"file":"priceAuthority.d.ts","sourceRoot":"","sources":["priceAuthority.js"],"names":[],"mappings":"AA6DA;;;;;;;;;GASG;AACH;IAR+B,WAAW,EAA/B,OAAO,KAAK,CAAC;IACiB,QAAQ,EAAtC,KAAK,SAAS,OAAO,CAAC,CAAC;IACmC,KAAK,EAA/D,KAAK,OAAO,wBAAwB,EAAE,YAAY,CAAC;IAC5B,WAAW,EAAlC,gBAAgB;IACG,aAAa,EAAhC,MAAM,KAAK,CAAC;IACO,cAAc,EAAjC,MAAM,KAAK,CAAC;IACV,iBAAiB,CA8S7B;AAzUD,sEAiBG;qCA3CQ,MAAM,eACN,MAAM,KACJ,OAAO;2CAiBT,gBAAgB,KACd,QAAQ,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["oracle.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["oracle.js"],"names":[],"mappings":"6BAwGc,WAAW,YAAY,CAAC;0BACxB,YAAY;AAlG1B;;;;GAIG;AACH,2BAFW,GAAG;;;;;;;QAkDV,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;QAhBvB,iCAAiC;qBAArB,WAAW;QAgBvB,iCAAiC;mCAArB,WAAW;;GAwB1B"}
|
package/src/contracts/oracle.js
CHANGED
|
@@ -60,6 +60,7 @@ const start = async zcf => {
|
|
|
60
60
|
const publicFacet = Far('publicFacet', {
|
|
61
61
|
/** @param {OracleQuery} query */
|
|
62
62
|
async query(query) {
|
|
63
|
+
await null;
|
|
63
64
|
try {
|
|
64
65
|
assert(!revoked, revokedMsg);
|
|
65
66
|
const noFee = AmountMath.makeEmpty(feeBrand);
|
|
@@ -77,6 +78,7 @@ const start = async zcf => {
|
|
|
77
78
|
async makeQueryInvitation(query) {
|
|
78
79
|
/** @type {OfferHandler} */
|
|
79
80
|
const doQuery = async querySeat => {
|
|
81
|
+
await null;
|
|
80
82
|
try {
|
|
81
83
|
const fee = querySeat.getAmountAllocated('Fee', feeBrand);
|
|
82
84
|
const { requiredFee, reply } = await E(handler).onQuery(query, fee);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"AAsBA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,gDAHW,yBAAyB,GACvB,QAAQ,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"AAsBA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,gDAHW,yBAAyB,GACvB,QAAQ,cAAc,CAAC,CAoSnC;;mBAnTa,MAAM,KAAK,CAAC;oBACZ,MAAM,KAAK,CAAC;;;WAGZ,KAAK,OAAO,wBAAwB,EAAE,YAAY,CAAC"}
|
|
@@ -254,10 +254,8 @@ export async function makeFakePriceAuthority(options) {
|
|
|
254
254
|
async function* generateQuotes(amountIn, brandOut) {
|
|
255
255
|
let record = await ticker.getUpdateSince();
|
|
256
256
|
while (record.updateCount !== undefined) {
|
|
257
|
-
// eslint-disable-next-line no-await-in-loop
|
|
258
257
|
const { value: timestamp } = record; // = await E(timer).getCurrentTimestamp();
|
|
259
258
|
yield priceInQuote(amountIn, brandOut, timestamp);
|
|
260
|
-
// eslint-disable-next-line no-await-in-loop
|
|
261
259
|
record = await ticker.getUpdateSince(record.updateCount);
|
|
262
260
|
}
|
|
263
261
|
}
|
package/tools/manualTimer.js
CHANGED
|
@@ -94,8 +94,8 @@ const buildManualTimer = (log = nolog, startValue = 0n, options = {}) => {
|
|
|
94
94
|
|
|
95
95
|
const tickN = async (nTimes, msg) => {
|
|
96
96
|
nTimes >= 1 || Fail`invariant nTimes >= 1`;
|
|
97
|
+
await null;
|
|
97
98
|
for (let i = 0; i < nTimes; i += 1) {
|
|
98
|
-
// eslint-disable-next-line no-await-in-loop
|
|
99
99
|
await tick(msg);
|
|
100
100
|
}
|
|
101
101
|
};
|