@agoric/fast-usdc 0.1.1-dev-5fb1074.0 → 0.1.1-dev-a67bf28.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/settler.js +12 -1
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-a67bf28.0+a67bf28",
|
|
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-a67bf28.0+a67bf28",
|
|
27
|
+
"@agoric/vats": "0.15.2-dev-a67bf28.0+a67bf28",
|
|
28
|
+
"@agoric/zone": "0.2.3-dev-a67bf28.0+a67bf28",
|
|
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-a67bf28.0+a67bf28",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-a67bf28.0+a67bf28",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-a67bf28.0+a67bf28",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-a67bf28.0+a67bf28",
|
|
40
|
+
"@agoric/notifier": "0.6.3-dev-a67bf28.0+a67bf28",
|
|
41
|
+
"@agoric/orchestration": "0.1.1-dev-a67bf28.0+a67bf28",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-a67bf28.0+a67bf28",
|
|
43
|
+
"@agoric/vat-data": "0.5.3-dev-a67bf28.0+a67bf28",
|
|
44
|
+
"@agoric/vow": "0.1.1-dev-a67bf28.0+a67bf28",
|
|
45
|
+
"@agoric/zoe": "0.26.3-dev-a67bf28.0+a67bf28",
|
|
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": "a67bf2862935b4187f423813cfa327c0fea187b8"
|
|
86
86
|
}
|
package/src/exos/settler.js
CHANGED
|
@@ -339,7 +339,18 @@ export const prepareSettler = (
|
|
|
339
339
|
*/
|
|
340
340
|
forward(txHash, fullValue, EUD) {
|
|
341
341
|
const { settlementAccount, intermediateRecipient } = this.state;
|
|
342
|
-
|
|
342
|
+
|
|
343
|
+
const dest = (() => {
|
|
344
|
+
try {
|
|
345
|
+
return chainHub.makeChainAddress(EUD);
|
|
346
|
+
} catch (e) {
|
|
347
|
+
log('⚠️ forward transfer failed!', e, txHash);
|
|
348
|
+
statusManager.forwarded(txHash, false);
|
|
349
|
+
return null;
|
|
350
|
+
}
|
|
351
|
+
})();
|
|
352
|
+
if (!dest) return;
|
|
353
|
+
|
|
343
354
|
const txfrV = E(settlementAccount).transfer(
|
|
344
355
|
dest,
|
|
345
356
|
AmountMath.make(USDC, fullValue),
|