@xyo-network/xl1-rpc 1.26.27 → 1.26.29

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.
@@ -2705,72 +2705,6 @@ JsonRpcXyoRunner = __decorateClass([
2705
2705
  creatableProvider14()
2706
2706
  ], JsonRpcXyoRunner);
2707
2707
 
2708
- // src/provider/runner/NodeXyoRunner.ts
2709
- import { assertEx as assertEx4 } from "@xylabs/sdk-js";
2710
- import { asArchivistInstance } from "@xyo-network/sdk-js";
2711
- import {
2712
- XyoRunnerMoniker as XyoRunnerMoniker2
2713
- } from "@xyo-network/xl1-protocol-lib";
2714
- import {
2715
- AbstractCreatableProvider as AbstractCreatableProvider3,
2716
- creatableProvider as creatableProvider15,
2717
- SimpleMempoolRunner
2718
- } from "@xyo-network/xl1-protocol-sdk";
2719
- var NodeXyoRunner = class extends AbstractCreatableProvider3 {
2720
- moniker = NodeXyoRunner.defaultMoniker;
2721
- _mempoolRunner;
2722
- _pendingBlocksArchivist;
2723
- _pendingTransactionsArchivist;
2724
- get mempool() {
2725
- return this._mempoolRunner;
2726
- }
2727
- get node() {
2728
- return this.params.node;
2729
- }
2730
- get pendingBlocksArchivist() {
2731
- return this._pendingBlocksArchivist;
2732
- }
2733
- get pendingBlocksArchivistPath() {
2734
- return this.params.pendingBlocksArchivistPath ?? "XYOChain:Pending:Blocks";
2735
- }
2736
- get pendingTransactionsArchivist() {
2737
- return this._pendingTransactionsArchivist;
2738
- }
2739
- get pendingTransactionsArchivistPath() {
2740
- return this.params.pendingTransactionsArchivistPath ?? "XYOChain:Pending:Transactions";
2741
- }
2742
- async broadcastTransaction(transaction) {
2743
- const [txHash] = await this.mempool.submitTransactions([transaction]);
2744
- return txHash;
2745
- }
2746
- getArchivist = async (identifier) => {
2747
- const archivist = await this.node.resolve(identifier);
2748
- return assertEx4(asArchivistInstance(archivist), () => `Could not resolve ${identifier} to an archivist instance`);
2749
- };
2750
- async startHandler() {
2751
- await super.startHandler();
2752
- this._pendingTransactionsArchivist = assertEx4(
2753
- await this.getArchivist(this.pendingTransactionsArchivistPath),
2754
- () => `Could not resolve pending archivist at ${this.pendingTransactionsArchivistPath}`
2755
- );
2756
- this._pendingBlocksArchivist = assertEx4(
2757
- await this.getArchivist(this.pendingBlocksArchivistPath),
2758
- () => `Could not resolve pending archivist at ${this.pendingBlocksArchivistPath}`
2759
- );
2760
- this._mempoolRunner = assertEx4(await SimpleMempoolRunner.create({
2761
- context: this.context,
2762
- pendingTransactionsArchivist: this.pendingTransactionsArchivist,
2763
- pendingBlocksArchivist: this.pendingBlocksArchivist
2764
- }), () => "Failed to create SimpleMempoolRunner");
2765
- }
2766
- };
2767
- __publicField(NodeXyoRunner, "defaultMoniker", XyoRunnerMoniker2);
2768
- __publicField(NodeXyoRunner, "dependencies", []);
2769
- __publicField(NodeXyoRunner, "monikers", [XyoRunnerMoniker2]);
2770
- NodeXyoRunner = __decorateClass([
2771
- creatableProvider15()
2772
- ], NodeXyoRunner);
2773
-
2774
2708
  // src/provider/signer/JsonRpcXyoSigner.ts
2775
2709
  import { XyoSignerMoniker as XyoSignerMoniker2 } from "@xyo-network/xl1-protocol-lib";
2776
2710
 
@@ -2850,7 +2784,6 @@ export {
2850
2784
  NetworkStakingStepRewardsViewerRpcNamespace,
2851
2785
  NetworkStakingStepRewardsViewerRpcSchemas,
2852
2786
  NoArgsZod,
2853
- NodeXyoRunner,
2854
2787
  PostMessageBus,
2855
2788
  PostMessageRpcTransport,
2856
2789
  RpcXyoPermissions,