@agoric/cosmic-swingset 0.41.4-dev-d7c994b.0 → 0.41.4-dev-745d557.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 +11 -11
- package/src/launch-chain.js +18 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmic-swingset",
|
|
3
|
-
"version": "0.41.4-dev-
|
|
3
|
+
"version": "0.41.4-dev-745d557.0+745d557",
|
|
4
4
|
"description": "Agoric's Cosmos blockchain integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/builders": "0.1.1-dev-
|
|
26
|
-
"@agoric/cosmos": "0.34.2-dev-
|
|
27
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/store": "0.9.3-dev-
|
|
30
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
31
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
32
|
-
"@agoric/telemetry": "0.6.3-dev-
|
|
33
|
-
"@agoric/vm-config": "0.1.1-dev-
|
|
25
|
+
"@agoric/builders": "0.1.1-dev-745d557.0+745d557",
|
|
26
|
+
"@agoric/cosmos": "0.34.2-dev-745d557.0+745d557",
|
|
27
|
+
"@agoric/deploy-script-support": "0.10.4-dev-745d557.0+745d557",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-745d557.0+745d557",
|
|
29
|
+
"@agoric/store": "0.9.3-dev-745d557.0+745d557",
|
|
30
|
+
"@agoric/swing-store": "0.9.2-dev-745d557.0+745d557",
|
|
31
|
+
"@agoric/swingset-vat": "0.32.3-dev-745d557.0+745d557",
|
|
32
|
+
"@agoric/telemetry": "0.6.3-dev-745d557.0+745d557",
|
|
33
|
+
"@agoric/vm-config": "0.1.1-dev-745d557.0+745d557",
|
|
34
34
|
"@endo/bundle-source": "^3.4.2",
|
|
35
35
|
"@endo/env-options": "^1.1.7",
|
|
36
36
|
"@endo/errors": "^1.2.7",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"typeCoverage": {
|
|
72
72
|
"atLeast": 80.55
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "745d5571dabd34e7be98bef46a99896fd1c0e0bf"
|
|
75
75
|
}
|
package/src/launch-chain.js
CHANGED
|
@@ -527,6 +527,8 @@ export async function launch({
|
|
|
527
527
|
inboundNum,
|
|
528
528
|
sender,
|
|
529
529
|
count: messages.length,
|
|
530
|
+
messages,
|
|
531
|
+
ack,
|
|
530
532
|
});
|
|
531
533
|
if (!mb.deliverInbound(sender, messages, ack)) {
|
|
532
534
|
return;
|
|
@@ -539,6 +541,7 @@ export async function launch({
|
|
|
539
541
|
type: 'cosmic-swingset-bridge-inbound',
|
|
540
542
|
inboundNum,
|
|
541
543
|
source,
|
|
544
|
+
body,
|
|
542
545
|
});
|
|
543
546
|
if (!bridgeInbound) throw Fail`bridgeInbound undefined`;
|
|
544
547
|
// console.log(`doBridgeInbound`);
|
|
@@ -547,7 +550,7 @@ export async function launch({
|
|
|
547
550
|
bridgeInbound(source, body);
|
|
548
551
|
}
|
|
549
552
|
|
|
550
|
-
async function installBundle(bundleJson) {
|
|
553
|
+
async function installBundle(bundleJson, inboundNum) {
|
|
551
554
|
let bundle;
|
|
552
555
|
try {
|
|
553
556
|
bundle = JSON.parse(bundleJson);
|
|
@@ -564,6 +567,13 @@ export async function launch({
|
|
|
564
567
|
|
|
565
568
|
const { endoZipBase64Sha512 } = bundle;
|
|
566
569
|
|
|
570
|
+
controller.writeSlogObject({
|
|
571
|
+
type: 'cosmic-swingset-install-bundle',
|
|
572
|
+
inboundNum,
|
|
573
|
+
endoZipBase64Sha512,
|
|
574
|
+
error,
|
|
575
|
+
});
|
|
576
|
+
|
|
567
577
|
if (installationPublisher === undefined) {
|
|
568
578
|
return;
|
|
569
579
|
}
|
|
@@ -645,7 +655,7 @@ export async function launch({
|
|
|
645
655
|
}
|
|
646
656
|
|
|
647
657
|
case ActionType.INSTALL_BUNDLE: {
|
|
648
|
-
p = installBundle(action.bundle);
|
|
658
|
+
p = installBundle(action.bundle, inboundNum);
|
|
649
659
|
break;
|
|
650
660
|
}
|
|
651
661
|
|
|
@@ -714,6 +724,12 @@ export async function launch({
|
|
|
714
724
|
// Then, update the timer device with the new external time, which might
|
|
715
725
|
// push work onto the kernel run-queue (if any timers were ready to wake).
|
|
716
726
|
const addedToQueue = timer.poll(blockTime);
|
|
727
|
+
controller.writeSlogObject({
|
|
728
|
+
type: 'cosmic-swingset-timer-poll',
|
|
729
|
+
blockHeight,
|
|
730
|
+
blockTime,
|
|
731
|
+
added: addedToQueue,
|
|
732
|
+
});
|
|
717
733
|
console.debug(
|
|
718
734
|
`polled; blockTime:${blockTime}, h:${blockHeight}; ADDED =`,
|
|
719
735
|
addedToQueue,
|