@agoric/fast-usdc 0.1.1-dev-d711f8f.0 → 0.1.1-dev-214eb2a.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 +15 -15
- package/src/exos/transaction-feed.js +13 -14
- package/src/start-fast-usdc.core.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/fast-usdc",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-214eb2a.0+214eb2a",
|
|
4
4
|
"description": "CLI and library for Fast USDC product",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"lint:eslint": "eslint ."
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
27
|
-
"@agoric/vats": "0.15.2-dev-
|
|
28
|
-
"@agoric/zone": "0.2.3-dev-
|
|
26
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-214eb2a.0+214eb2a",
|
|
27
|
+
"@agoric/vats": "0.15.2-dev-214eb2a.0+214eb2a",
|
|
28
|
+
"@agoric/zone": "0.2.3-dev-214eb2a.0+214eb2a",
|
|
29
29
|
"@fast-check/ava": "^2.0.1",
|
|
30
30
|
"ava": "^5.3.0",
|
|
31
31
|
"c8": "^10.1.2",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"ts-blank-space": "^0.4.4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/client-utils": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
41
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
44
|
-
"@agoric/vow": "0.1.1-dev-
|
|
45
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
36
|
+
"@agoric/client-utils": "0.1.1-dev-214eb2a.0+214eb2a",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-214eb2a.0+214eb2a",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-214eb2a.0+214eb2a",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-214eb2a.0+214eb2a",
|
|
40
|
+
"@agoric/notifier": "0.6.3-dev-214eb2a.0+214eb2a",
|
|
41
|
+
"@agoric/orchestration": "0.1.1-dev-214eb2a.0+214eb2a",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-214eb2a.0+214eb2a",
|
|
43
|
+
"@agoric/vat-data": "0.5.3-dev-214eb2a.0+214eb2a",
|
|
44
|
+
"@agoric/vow": "0.1.1-dev-214eb2a.0+214eb2a",
|
|
45
|
+
"@agoric/zoe": "0.26.3-dev-214eb2a.0+214eb2a",
|
|
46
46
|
"@cosmjs/proto-signing": "^0.32.4",
|
|
47
47
|
"@cosmjs/stargate": "^0.32.4",
|
|
48
48
|
"@endo/base64": "^1.0.9",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "214eb2a2cb94c8b8365ea8ccd0fc505f34ef3914"
|
|
86
86
|
}
|
|
@@ -209,20 +209,19 @@ export const prepareTransactionFeedKit = (zone, zcf) => {
|
|
|
209
209
|
let lastEvidence;
|
|
210
210
|
for (const store of found) {
|
|
211
211
|
const next = store.get(txHash);
|
|
212
|
-
if (lastEvidence) {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
212
|
+
if (lastEvidence && !keyEQ(lastEvidence, next)) {
|
|
213
|
+
// Ignore conflicting evidence, but treat it as an error
|
|
214
|
+
// because it should never happen and needs to be prevented
|
|
215
|
+
// from happening again.
|
|
216
|
+
trace(
|
|
217
|
+
'🚨 conflicting evidence for',
|
|
218
|
+
txHash,
|
|
219
|
+
':',
|
|
220
|
+
lastEvidence,
|
|
221
|
+
'!=',
|
|
222
|
+
next,
|
|
223
|
+
);
|
|
224
|
+
Fail`conflicting evidence for ${quote(txHash)}`;
|
|
226
225
|
}
|
|
227
226
|
lastEvidence = next;
|
|
228
227
|
}
|
|
@@ -59,6 +59,7 @@ const POOL_METRICS = 'poolMetrics';
|
|
|
59
59
|
* }} FastUSDCCorePowers
|
|
60
60
|
*
|
|
61
61
|
* @typedef {StartedInstanceKitWithLabel & {
|
|
62
|
+
* publicFacet: StartedInstanceKit<FastUsdcSF>['publicFacet'];
|
|
62
63
|
* creatorFacet: StartedInstanceKit<FastUsdcSF>['creatorFacet'];
|
|
63
64
|
* privateArgs: StartParams<FastUsdcSF>['privateArgs'];
|
|
64
65
|
* }} FastUSDCKit
|