@cfxlabsinc/b2b-services
    Preparing search index...

    Keeps one Tatum ADDRESS_EVENT alert per (address, network) on this stage, posting to deliveryUrl. Tatum's own listing is the record: nothing is stored. Alerts on any other url are not ours and are left alone.

    Index
    instance: (...args: []) => TatumAlertMirrorService = ...

    The process default: TATUM_ALERT_DELIVERY_URL is read at each run, and the process key ENVIRONMENT as the stage (unset or unknown is local, which writes nothing).

    • Creates, or adopts from the listing, the alerts of one new address. It lists only when Tatum refuses a create, as it does a duplicate.

      Parameters

      • __namedParameters: { walletAddressId: number }

      Returns Promise<
          | { ok: true; value: void }
          | {
              error:
                  | NotDeployed
                  | MirrorIncomplete
                  | ServiceError<"WALLET_ADDRESS_NOT_WATCHED">;
              ok: false;
          },
      >

    • Diffs the wanted pairs against our listed alerts: deletes ours no pair wants and every twin past the first on one address, then creates what is missing, starting after after and coming round to the pairs before it. Once budget is spent it returns complete: false and where it stopped. Only a call that attempted every alert reports refusals, together, as TATUM_ALERT_MIRROR_INCOMPLETE. A local run calls Tatum not at all.

      Parameters

      • __namedParameters: Progress & Budget = {}

      Returns Promise<
          | { ok: true; value: Reconciled }
          | { error: NotDeployed | MirrorIncomplete; ok: false },
      >