@xyo-network/xl1-cli-lib 1.15.16 → 1.15.17
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/dist/node/index.mjs
CHANGED
|
@@ -528,9 +528,10 @@ var initHealthEndpoints = /* @__PURE__ */ __name((params) => {
|
|
|
528
528
|
|
|
529
529
|
// src/orchestration/initServices.ts
|
|
530
530
|
import { assertEx as assertEx18 } from "@xylabs/assert";
|
|
531
|
-
import { asAddress as asAddress2
|
|
531
|
+
import { asAddress as asAddress2 } from "@xylabs/hex";
|
|
532
532
|
import { isDefined as isDefined14 } from "@xylabs/typeof";
|
|
533
533
|
import { initTelemetry, startupSpanAsync as startupSpanAsync8, StepSizes, validateHydratedBlockState } from "@xyo-network/chain-sdk";
|
|
534
|
+
import { PayloadBuilder as PayloadBuilder7 } from "@xyo-network/payload-builder";
|
|
534
535
|
import { readPayloadMapFromStore } from "@xyo-network/xl1-protocol-sdk";
|
|
535
536
|
import { CompletedStepRewardAddressValidatorFactory, DerivedReceiveAddressValidatorFactory, SelfSignerValidator, TransactionTransfersValidatorFactory } from "@xyo-network/xl1-validation";
|
|
536
537
|
import { Semaphore } from "async-mutex";
|
|
@@ -1550,7 +1551,7 @@ var initServices = /* @__PURE__ */ __name(async (context) => {
|
|
|
1550
1551
|
DerivedReceiveAddressValidatorFactory(allowedRewardEscrowAccountSigners, "reward-escrow")
|
|
1551
1552
|
])
|
|
1552
1553
|
];
|
|
1553
|
-
const [pendingTransactionsService, rewardService, chainIterator
|
|
1554
|
+
const [pendingTransactionsService, rewardService, chainIterator] = await Promise.all([
|
|
1554
1555
|
startupSpanAsync8("PendingTransactions", () => initPendingTransactions({
|
|
1555
1556
|
name: "PendingTransactionsService",
|
|
1556
1557
|
chainArchivist,
|
|
@@ -1571,7 +1572,9 @@ var initServices = /* @__PURE__ */ __name(async (context) => {
|
|
|
1571
1572
|
chainMap,
|
|
1572
1573
|
head,
|
|
1573
1574
|
...initParams
|
|
1574
|
-
}))
|
|
1575
|
+
}))
|
|
1576
|
+
]);
|
|
1577
|
+
const [balanceService] = await Promise.all([
|
|
1575
1578
|
startupSpanAsync8("BalanceService", () => initBalanceService({
|
|
1576
1579
|
name: "BalanceService",
|
|
1577
1580
|
context: {
|
|
@@ -1579,7 +1582,9 @@ var initServices = /* @__PURE__ */ __name(async (context) => {
|
|
|
1579
1582
|
store: {
|
|
1580
1583
|
chainMap
|
|
1581
1584
|
},
|
|
1582
|
-
head:
|
|
1585
|
+
// head: () => ZERO_HASH,
|
|
1586
|
+
// head: () => head._hash,
|
|
1587
|
+
head: /* @__PURE__ */ __name(async () => PayloadBuilder7.hash(await chainIterator.head()), "head"),
|
|
1583
1588
|
chainId,
|
|
1584
1589
|
summaryMap: balanceSummaryMap
|
|
1585
1590
|
},
|
|
@@ -1592,7 +1597,9 @@ var initServices = /* @__PURE__ */ __name(async (context) => {
|
|
|
1592
1597
|
store: {
|
|
1593
1598
|
chainMap
|
|
1594
1599
|
},
|
|
1595
|
-
head:
|
|
1600
|
+
// head: () => ZERO_HASH,
|
|
1601
|
+
// head: () => head._hash,
|
|
1602
|
+
head: /* @__PURE__ */ __name(async () => PayloadBuilder7.hash(await chainIterator.head()), "head"),
|
|
1596
1603
|
chainId,
|
|
1597
1604
|
summaryMap: transferSummaryMap
|
|
1598
1605
|
},
|
|
@@ -1824,7 +1831,7 @@ var waitForHostPort = /* @__PURE__ */ __name((host, port) => {
|
|
|
1824
1831
|
|
|
1825
1832
|
// src/runCLI.ts
|
|
1826
1833
|
var config;
|
|
1827
|
-
var version = isDefined17("1.15.
|
|
1834
|
+
var version = isDefined17("1.15.16") ? "1.15.16" : "unknown";
|
|
1828
1835
|
var getContextFromConfig = /* @__PURE__ */ __name((config3) => {
|
|
1829
1836
|
const logger = initLogger(config3);
|
|
1830
1837
|
const orchestrator = new Orchestrator(logger);
|