Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Relation

Index

Functions

Functions

process

  • process(options: { disableIndex?: boolean; exclude?: IdObject<"networks">[]; network: IdObject<"networks">; relationship: "ancestor" | "descendant" }): Process<Resource<"networks"> | undefined>
  • Issue GraphQL requests and eth_getBlockByNumber requests to determine if any existing Network resources are ancestor or descendant of the connected Network.

    Iteratively, this queries all possibly-related Networks for known historic block. For each possibly-related Network, issue a corresponding web3 request to determine if the known historic block is, in fact, the connected blockchain's record of the block at that historic height.

    This queries @truffle/db for possibly-related Networks in batches, keeping track of new candidates vs. what has already been tried.

    Parameters

    • options: { disableIndex?: boolean; exclude?: IdObject<"networks">[]; network: IdObject<"networks">; relationship: "ancestor" | "descendant" }
      • Optional disableIndex?: boolean
      • Optional exclude?: IdObject<"networks">[]
      • network: IdObject<"networks">
      • relationship: "ancestor" | "descendant"

    Returns Process<Resource<"networks"> | undefined>

Generated using TypeDoc